Skip to content

Instantly share code, notes, and snippets.

View felippenardi's full-sized avatar

Felippe Nardi felippenardi

View GitHub Profile
<script>
angular.directive('tj:focus', function(){
return function(scope, element){
element[0].focus();
};
});
</script>
<div>
<input type="text" ng:model="model" tj:focus />
@felippenardi
felippenardi / dabblet.css
Created October 11, 2013 15:01
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
tr {
border-width:1px 1px 1px 5px;
border-style: solid;
border-color:#fff;
}
tr:hover {
border-color: red;
@felippenardi
felippenardi / dabblet.css
Created October 11, 2013 15:29 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
tr {
border-width: 1px 0px 1px 0px;
border-style: solid;
border-color: #fff;
display: block;
}
tr:hover {
@felippenardi
felippenardi / dabblet.css
Created October 11, 2013 15:29 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
tr {
border-width: 1px 0px 1px 0px;
border-style: solid;
border-color: #fff;
display: block;
}
tr:hover {
@felippenardi
felippenardi / dabblet.css
Created October 11, 2013 15:29 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
tr {
border-width: 1px 0px 1px 0px;
border-style: solid;
border-color: #fff;
display: block;
}
tr:hover {
.button {
box-sizing: border-box;
background-color: #009DFF;
font-family: Lato, 'Helvetica Neue', Helvetica, Helvetica, Arial, sans-serif;
color: #FFF;
display: inline-block;
font-size: .9em;
padding-bottom: 0.5em;
padding-left: 0.8em;
padding-right: 0.8em;
@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
});