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: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 {
@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 / 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
@felippenardi
felippenardi / _readme.md
Last active November 28, 2016 09:34 — forked from larryxiao/_readme.md
Script to Install Tmux 2.0 on Ubuntu

Having trouble installing the latest stable version of tmux?

I know, official package for your OS/distro is outdated and you just want the newest version of tmux.

Well, this script should save you some time with that.

Prerequisities

  • gcc
@felippenardi
felippenardi / 0_reuse_code.js
Created June 19, 2016 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console