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
<?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
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
.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
{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
/** | |
* 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
var vm = require('vm') | |
var sandbox = {externalArray: [], externalArryConstructor: Array} | |
vm.createContext(sandbox) | |
console.log(vm.runInContext('externalArryConstructor == Array', sandbox)) | |
console.log(vm.runInContext('externalArray.constructor == Array', sandbox)) | |
console.log(sandbox.externalArray.constructor == Array) | |
console.log(vm.runInContext('externalArray.__proto__ == [].__proto__', sandbox)) |
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
module.exports = function (a, b) { | |
return a + b; | |
}; |
NewerOlder