Skip to content

Instantly share code, notes, and snippets.

View danielfilho's full-sized avatar

Daniel danielfilho

  • Germany
  • 14:02 (UTC +01:00)
View GitHub Profile
@danielfilho
danielfilho / dabblet.css
Created January 23, 2012 18:07
Untitled
@import url('http://fonts.googleapis.com/css?family=Rokkitt');
body{ margin:50px; }
ul, li{ margin:0; padding:0; list-style:none outside; font-family: 'Lucida Grande', 'Helvetica Neue', sans-serif; font-size:13px; }
li{ display:inline-block; }
li a {
display: inline-block;
background-color: #4D90FE;
background-image: -webkit-linear-gradient(top,#4d90fe,#4787ed);
background-image: -moz-linear-gradient(top,#4d90fe,#4787ed);
@danielfilho
danielfilho / Preferences.sublime-settings.js
Created March 14, 2012 15:40
Sublime Text 2 - User Preferences
{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"draw_white_space": "all",
"font_size": 15.0,
"tab_size": 2,
"find_selected_text": true,
"word_wrap": false
}
var callResults = function(url, query, limit, offset){
var dataURL = url + query +'?limit='+ limit +"&offset="+ offset;
$.getJSON(dataURL, function(data){
var template = $('#TPL_searchResults').html(),
rendered = Mustache.to_html(template, data);
$('ul#searchTPLWrapper').html(rendered);
});
}
@danielfilho
danielfilho / traducao-allen-cheung.txt
Created March 26, 2012 18:42
Porque Javascript é Prazeroso
Hoje li um post que Allen Cheung escreveu sobre o porque Javascript é prazeroso pra ele. Pedi autorização para traduzir para português e repassar, onde ele diz de forma didática, o porque.
<<< comeca aqui >>>
Eu, provavelmente, sou um pouco tendencioso – send um desenvolvedor front-end por alguns anos faz isso – mas eu realmente gosto de escrever Javascript. Recentemente me afastei da programação “pura” nos últimos meses, mas eu tive uma oportunidade na semana passada de voltar a algumas tarefas, e isso me recordou o quão divertido é mergulhar em nossa(Square) base de código front-end.
Sim, Javascript pode ser surpreendentemente elegante mesmo que completamente enfurecedor, e tudo isso na mesma linha de código; durante um bom tempo, era a piada da comunidade de programadores, o “primo pobre” que chega a ser mais feio que o mais bizarro do PHP e Perl. Hoje em dia, JS é uma linguagem sob os holofotes, e ter sido exposto gradativamente a mais desenvolvedores me faz feliz de ter ficado preso a linguagem, verru
@danielfilho
danielfilho / deployPresentations.php
Created March 27, 2012 03:02
Faz o deploy direto do Github
<?php `git pull`; ?>
@danielfilho
danielfilho / items.json
Created April 13, 2012 12:45
Product's json
{
"extratos": [
{
"descricao": "product A",
"anoCobranca": 2012,
"mesCobranca": 01,
"nomeMesCobranca": "Janeiro",
"diaUsoInicial": 1,
"diaUsoFinal": 30,
"valor": "236.81",
@danielfilho
danielfilho / dabblet.css
Created May 3, 2012 00:28 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
@danielfilho
danielfilho / print_github.js
Created July 28, 2012 00:37 — forked from robcowie/print_github.js
Github print styling bookmarlet
javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f=e.jQuery)%7C%7Cg%3Ef.fn.jquery%7C%7Ch(f))%7Bc=a.createElement(%22script%22);c.type=%22text/javascript%22;c.src=%22http://ajax.googleapis.com/ajax/libs/jquery/%22+g+%22/jquery.min.js%22;c.onload=c.onreadystatechange=function()%7Bif(!b&&(!(d=this.readyState)%7C%7Cd==%22loaded%22%7C%7Cd==%22complete%22))%7Bh((f=e.jQuery).noConflict(1),b=1);f(c).remove()%7D%7D;a.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,%221.3.2%22,function($,L)%7B$('%23header,%20.pagehead,%20.breadcrumb,%20.commit,%20.meta,%20%23footer,%20%23footer-push').remove();%20$('%23files,%20.file').css(%7B%22background%22:%22none%22,%20%22border%22:%22none%22%7D);%20$('link').removeAttr('media');%7D);
@danielfilho
danielfilho / data-markdown.user.js
Created August 17, 2012 13:29 — forked from paulirish/data-markdown.user.js
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@danielfilho
danielfilho / os-projects.md
Created September 10, 2012 02:57
A list of projects I've helped

My open-source trace

Projects I've created or maintain

Project About
mditor A mobile webapp markdown editor
color-grep An easy to use tool to capture a pixel color using only client-side technology
vewJS Video Element Watcher - A script to watch
Image Swipt Swipe between two images for comparison (touch enabled)