Skip to content

Instantly share code, notes, and snippets.

View felippenardi's full-sized avatar

Felippe Nardi felippenardi

View GitHub Profile
@mixin same($values...){
$length: length($values);
$value: nth($values, $length);
@for $i from 1 to $length{
#{nth($values, $i)}: $value;
}
}
//Usage:
@felippenardi
felippenardi / dabblet.css
Created July 24, 2014 01:49 — forked from LeaVerou/dabblet.css
(C)Leanest CSS spinner ever
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.progress {
display: inline-block;

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@felippenardi
felippenardi / exemploSpec.js
Last active August 29, 2015 14:06
AngularJS Aplicado: Syntax Jasmine
describe('Descrição do grupo de testes', function() {
beforeEach(function() {
// Roda antes de cada teste
});
afterEach(function() {
// Roda depois de cada teste
});
@felippenardi
felippenardi / conf.js
Created September 23, 2014 01:30
AngularJS Aplicado: Configuração mínima do protractor
exports.config = {
seleniumAddress:
'http://localhost:4444/wd/hub',
specs: ['spec.js']
}
@felippenardi
felippenardi / index.html
Created September 23, 2014 01:53
AngularJS Aplicado: Protractor element() como promessa
<div id='teste'>Hello World</div>
@felippenardi
felippenardi / hack
Last active August 29, 2015 14:16 — forked from Jermolene/hack
var tag="mytag";r="";$tw.wiki.each(function(t){if(t.hasTag(tag)){r=r+" "+(t.fields.text||"")}});r.trim().replace(/\s+/gi," ").split(" ").length
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Cmd Key CSS</title>
<style id="jsbin-css">
body {
background: #FFF;
margin: 40px;
}
@felippenardi
felippenardi / README.md
Last active August 29, 2015 14:21
Writing AngularJS Protractor Specs
@felippenardi
felippenardi / README.md
Created May 22, 2015 19:37
Docker Cheat Sheet

Kill all containers

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)