This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$grid_width:66px; | |
$grid_space: 16px; | |
.grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6, .grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12 { | |
display: inline; | |
float: left; | |
position: relative; | |
margin-left: $grid_space / 2; | |
margin-right: $grid_space / 2; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This Grid system is following to use: | |
* | |
* edit your grid width and space width with your size | |
* | |
* use the following classes: | |
* "grid_$size" for a grid | |
* "no-pre-space" to delete the prefix space of the first grid_column | |
* "nosuff-space" to delete the suffix space of the last grid column | |
* "prefix_$size" to add a left padding before your grid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (!isResultOk) { | |
for (int x = 0; x <= maximumCells; i++) { | |
for (int y = 0; y <= maximumCells;) { | |
Random random = new Random(); | |
boolean a = random.nextBoolean(); | |
cell[x][y] = a; | |
} | |
isResultOk = checkResult(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": [ | |
{ | |
"title": "Timeline", | |
"icon": "images/icons/twitter_64.png", | |
"top": 145, | |
"left": 218, | |
"compID": "twitter", | |
"username": "stvnwrgs", | |
"backFill": "15", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": [ | |
{ | |
"title": "Wufoo Entry", | |
"icon": "images/icons/wufoo_64.png", | |
"top": 43, | |
"left": 140, | |
"compID": "wufoo_hook", | |
"subdomain": "elasticio", | |
"formID": "q7x3s5", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": [ | |
{ | |
"title": "Instagram", | |
"icon": "images/icons/instagram_64.png", | |
"top": 136, | |
"left": 182, | |
"compID": "instagram", | |
"id": "step_124" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Performs the actual DB query and populates the AR objects with the query result. | |
* This method is mainly internally used by other AR query methods. | |
* @param CDbCriteria $criteria the query criteria | |
* @param boolean $all whether to return all data | |
* @return mixed the AR objects populated with the query result | |
* @since 1.1.7 | |
*/ | |
protected function query($criteria,$all=false) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Send cookies for the socket.io handshake (sails.js) | |
// Based on https://gist.github.com/jfromaniello/4087861 | |
// Socket.io open ticket (started by jfromaniello): | |
// https://github.com/LearnBoost/socket.io-client/pull/512 | |
var io = require('socket.io-client'); | |
var request = require('request'); | |
var xhr = require('socket.io-client/node_modules/xmlhttprequest'); | |
var xhrOriginal = require('xmlhttprequest'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Show inserts and delets by users in a repo | |
* | |
* | |
**/ | |
perl -e 'foreach(`git shortlog -s -n`){'\ | |
'($c,$a)=$_=~/^\s*(\d+)\s*(.+?)\s*$/;$p=$m=0;'\ | |
'foreach(`git log --author="$a" --pretty=tformat: --numstat -C`)'\ | |
'{($pp,$mm)=$_=~/^\s*(\d+)\s+(\d+)/;$p+=$pp;$m+=$mm;}'\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
step1: res=$(curl -w "\n" 'https://discovery.etcd.io/new?size=3') => set var res = discovery url | |
step2: sed -i'' -e "s,discovery: \".*,discovery: \"$res\",g" coreos/etcd.yml; => replace | |
step3: rm coreos/etcd.yml-e; => remove to stupid backup file | |
res=$(curl -w "\n" 'https://discovery.etcd.io/new?size=3');sed -i'' -e "s,discovery: \".*,discovery: \"$res\",g" coreos/etcd.yml;rm coreos/etcd.yml-e; |
OlderNewer