Skip to content

Instantly share code, notes, and snippets.

🐢
.

Jean Carlo Emer jcemer

🐢
.
Block or report user

Report or block jcemer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jcemer
jcemer / grid.styl
Created Sep 18, 2012
A semantic.gs working stylus file
View grid.styl
// .-. .-. .-. .-.
// Semantic.gs // for Stylus: http://learnboost.github.com/stylus/
// .-. .-. .-. .-.
// Defaults which you can freely override
$columnwidth = 60
$gutterwidth = 20
$columns = 12
gridwidth($c = $columns)
@jcemer
jcemer / CSS.js
Created Aug 6, 2012
Simple CSS prefixator, transform detection and translateX
View CSS.js
// 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];
}
@jcemer
jcemer / gist:3130835
Created Jul 17, 2012
Less gradient mixins
View gist:3130835
#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
}
@jcemer
jcemer / receita-federal.php
Created Jun 30, 2012
Receita Federal - CPF e CNPJ
View receita-federal.php
<?php
/*
Cadastros da Receita Federal do Brasil
* Cadastro de Pessoas Físicas - CPF
* Cadastro Nacional Pessoa Jurídica - CNPJ
Por Jean Carlo Emer
*/
@jcemer
jcemer / gist:2889003
Created Jun 7, 2012
Coffeescript #troll
View gist:2889003
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() {
@jcemer
jcemer / icon.less
Created May 26, 2012
LessCSS optional over background
View icon.less
.icon(@i, @over:true) {
background-position: 0 @i*-@iconHeight;
}
.icon(@i, @over:true) when (@over) {
&:hover {
background-position: -@iconWidth @i*-@iconHeight;
}
}
.class1 { .icon(2) }
@jcemer
jcemer / Cakefile
Created May 26, 2012 — forked from ricardobeat/Cakefile
Simple Cakefile for LESS + CoffeeScript with file watching
View Cakefile
{exec} = require 'child_process'
fs = require 'fs'
lastChange = {}
global.coffee = []
global.less = []
# CONFIGURATION
coffee.push 'main'
less.push 'main'
@jcemer
jcemer / dabblet.css
Created Jan 14, 2012
First attempt to make diagonal stripes
View dabblet.css
/**
* First attempt to make diagonal stripes
*/
background: linear-gradient(0deg, black 0%, #E96447 30%);
background-size: 100px 100px;
You can’t perform that action at this time.