This file contains hidden or 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
find . -name "*.erb" -exec sed -i "s/\t/ /g" {} \; |
This file contains hidden or 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
/** | |
@see http://tech.karbassi.com/2009/12/17/pure-javascript-flatten-array/ | |
// usage | |
var given = [[1, [2, [3, [4, [5, [6, [7, [8, [9, [0]]]]]]]]]]]; | |
var value = given.flatten(); | |
'value' => [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] | |
*/ | |
Array.prototype.flatten = function () { | |
var flat = [], | |
i = 0, |
This file contains hidden or 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
#!/bin/bash | |
## v1.0.6 | |
## this script will gernerate css stats | |
### example output | |
# CSS STATS | |
# ---------- | |
# Floats: 132 |
This file contains hidden or 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
git remote update --prune |
This file contains hidden or 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
/* | |
**param:** `$size` value of the whole size of the gradient | |
**param:** [`$direction`] value of the gradient direction. *default: left (horizontal)* | |
**param:** [`$color`] basic color value of the grid. *default: black* | |
**param:** [`$parts`] value of how many sub parts should be splitted the gradient. *default: 1* | |
*/ | |
@function gridGradient($size, $direction: left, $color: black, $parts: 10) { | |
$px : percentage(1px / $size); | |
$colColor : rgba($color, .2); | |
$middleColor : rgba($color, .1); |
This file contains hidden or 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
echo $PATH | awk -F":" '{for (i=1;i<=NF;i++){if (x[$i]++==0) print $i}}' |
This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
This file contains hidden or 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
/** | |
* How to prevent wrong grid indentation by offset boxed content | |
* GRID | |
*-------------------------------------------------- | |
* Default 940px grid | |
*/ | |
.mod-floated, .clearfix{ *zoom:1 } | |
.mod-floated:before, | |
.clearfix:before, | |
.mod-floated:after, |
This file contains hidden or 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 | |
*-------------------------------------------------- | |
* Default 940px grid | |
*/ | |
.clearfix{*zoom:1}.clearfix:before, | |
.clearfix:after{display:table;content:""} | |
.clearfix:after{clear:both} | |
[class*="span"]{float:left; margin-left:20px} | |
.span1{width:60px}.offset1{margin-left:100px}.span2{width:140px}.offset2{margin-left:180px}.span3{width:220px}.offset3{margin-left:260px}.span4{width:300px}.offset4{margin-left:340px}.span5{width:380px}.offset5{margin-left:420px}.span6{width:460px}.offset6{margin-left:500px}.span7{width:540px}.offset7{margin-left:580px}.span8{width:620px}.offset8{margin-left:660px}.span9{width:700px}.offset9{margin-left:740px}.span10{width:780px}.offset10{margin-left:820px}.span11{width:860px}.offset11{margin-left:900px}.span12{width:940px}.offset12{margin-left:980px} |
This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |