sass在3.3引入map类型,它与JS的对象非常相似,它有两种定义模式。外面都是用小括号括括起来,每个键值对可以像JS那样与逗号分开。不同之后是,键名与键值之间的冒号不是 必须的不用对象的情况@charset "utf-8";//必须设置了这个才能编译有中文的注释//创建一个核心的颜色$bravo...
分类:
其他好文 时间:
2014-06-24 12:46:20
阅读次数:
290
var sp:Sprite=new Sprite(); sp.graphics.beginFill(0xffccdd); sp.graphics.drawRect(0,0,100,100); sp.graphics.beginFill(0x33eedd); sp.graphics.d...
分类:
其他好文 时间:
2014-06-24 12:13:29
阅读次数:
191
<?php function build_order_no(){ return date('Ymd').substr(implode(NULL, array_map('ord', str_split(substr(uniqid(), 7, 13), 1))), 0, 8); ...
分类:
Web程序 时间:
2014-06-24 11:59:06
阅读次数:
345
Hive 桶 分区 map array struct...
分类:
其他好文 时间:
2014-06-22 21:57:10
阅读次数:
184
题目链接:POJ 1573 Robot Motion
一个小模拟,很简单,按照提示一步步走就是了
#include
#include
#include
#include
#include
using namespace std;
int n = 0,m = 0,st = 0;
int map[10][20],dis[10][20];;...
分类:
其他好文 时间:
2014-06-22 18:14:23
阅读次数:
182
//初始化地图
MapView mMapView = (MapView) findViewById(R.id.map);
BaiduMap mBaidumap = mMapView.getMap();
//设定中心点坐标
LatLng cenpt = new LatLng(29.806651,121.606983);
//定义地...
分类:
移动开发 时间:
2014-06-22 15:04:14
阅读次数:
327
转发:大海巨浪Java库本身就有多种线程安全的容器和同步工具,其中同步容器包括两部分:一个是Vector和Hashtable。另外还有JDK1.2中加入的同步包装类,这些类都是由Collections.synchronizedXXX工厂方法。同步容器都是线程安全的,但是对于复合操作,缺有些缺点:① ...
分类:
编程语言 时间:
2014-06-22 12:54:50
阅读次数:
319
DFS太慢,用SCR好点点
Python 只有 22 行,其实可以更短,但是得排成很长很长的一行
while True:
table = [ [ 0 for j in range( 300 ) ] for i in range( 12 ) ]
table[0][0] = 1
boardsize, chessnum = map( int, raw_input().spli...
分类:
其他好文 时间:
2014-06-22 06:49:10
阅读次数:
239
from:unix高级环境编程
unix/linux中共享内存是最高效的ipc方式。
有几种使用方式:
1)mmap /dev/zero设备:
fd = open("/dev/zero", O_RDWR);
area = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
close(fd);
加入MAP_SHARE...
分类:
其他好文 时间:
2014-06-22 06:21:16
阅读次数:
215
blockhouses
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing ...
分类:
其他好文 时间:
2014-06-21 22:36:56
阅读次数:
316