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
/** | |
* First attempt to make diagonal stripes | |
*/ | |
background: linear-gradient(0deg, black 0%, #E96447 30%); | |
background-size: 100px 100px; |
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
{exec} = require 'child_process' | |
fs = require 'fs' | |
lastChange = {} | |
global.coffee = [] | |
global.less = [] | |
# CONFIGURATION | |
coffee.push 'main' | |
less.push 'main' |
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
.icon(@i, @over:true) { | |
background-position: 0 @i*-@iconHeight; | |
} | |
.icon(@i, @over:true) when (@over) { | |
&:hover { | |
background-position: -@iconWidth @i*-@iconHeight; | |
} | |
} | |
.class1 { .icon(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
raf = 'RequestAnimationFrame' | |
window['r' + raf[1..]] ?= do -> | |
return R for pre in ['webkit', 'moz', 'ms', 'o'] when R = window[pre + raf] | |
# =.=.=.=.=.=.=.=.=.=.=.=.=.= | |
raf = 'RequestAnimationFrame'; | |
if (window[_name = 'r' + raf.slice(1)] == null) { | |
window[_name] = (function() { |
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
<?php | |
/* | |
Cadastros da Receita Federal do Brasil | |
* Cadastro de Pessoas Físicas - CPF | |
* Cadastro Nacional Pessoa Jurídica - CNPJ | |
Por Jean Carlo Emer | |
*/ |
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
#gradient { | |
.vertical(@startColor: #555, @endColor: #333, @colorStop: 100%) { | |
background-color: mix(@startColor, @endColor, 60%); | |
background-image: -moz-linear-gradient(top, @startColor, @endColor @colorStop); // FF 3.6+ | |
background-image: -ms-linear-gradient(top, @startColor, @endColor @colorStop); // IE10 | |
background-image: -webkit-gradient(linear, 0 0, 0 @colorStop, from(@startColor), to(@endColor)); // Android 2.3, Safari 4+, Chrome 2+ | |
background-image: -webkit-linear-gradient(top, @startColor, @endColor @colorStop); // Safari 5.1+, Chrome 10+ | |
background-image: -o-linear-gradient(top, @startColor, @endColor @colorStop); // Opera 11.10 | |
background-image: linear-gradient(top, @startColor, @endColor @colorStop); // The standard | |
} |
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
// thanks to http://www.mobify.com/ | |
var CSS = { | |
cache: {}, | |
prefixes: ['Webkit', 'Moz', 'O', 'ms', ''], | |
getProperty: function(name) { | |
var div, property; | |
if (typeof CSS.cache[name] !== 'undefined') { | |
return CSS.cache[name]; | |
} |
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
// .-. .-. .-. .-. | |
// Semantic.gs // for Stylus: http://learnboost.github.com/stylus/ | |
// .-. .-. .-. .-. | |
// Defaults which you can freely override | |
$columnwidth = 60 | |
$gutterwidth = 20 | |
$columns = 12 | |
gridwidth($c = $columns) |
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
var Robot = function(robot){ | |
robot.turnLeft(robot.angle % 90); | |
robot.turnGunRight(90); | |
robot.clone(); | |
this.direction = 1; | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(1); | |
if (robot.parentId) { |
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
var x = 2 | |
with ({x:3}) { | |
console.log(x) | |
} |
OlderNewer