Skip to content

Instantly share code, notes, and snippets.

View danielfilho's full-sized avatar

Daniel danielfilho

  • Germany
  • 15:25 (UTC +01:00)
View GitHub Profile
@danielfilho
danielfilho / configs.json
Created September 14, 2012 19:07
Sublime Text 2 config file
{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"draw_white_space": "all",
"find_selected_text": true,
"font_size": 18.0,
"highlight_line": true,
"tab_size": 2,
"translateTabsToSpaces": true,
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
@events =
events: {}
on: (topic, handler, context = this) ->
(@events[topic] or= []).push {handler, context}
trigger: (topic, args...) ->
return unless @events[topic]?
handler.apply(context, args) for {handler, context} in @events[topic]
@danielfilho
danielfilho / sorteio-zofe-marcelduran.md
Last active December 13, 2015 17:18
Sorteio Zone Of Front-Enders e Marcel Duran!

Sorteio ZOFE + Marcel Duran

FAAAAAAAAAAAAAAAALA galera :D

O nosso convidado do episódio #5, que é front-end engineer do Twitter, nos passou um prêmio fantástico pra sortearmos entre nossos ouvintes.

É uma bolsa exclusiva do Twitter, com o logotipo "HACK" deles. E aí? Vai ficar de fora? Acho que não :)

Imagem

var __w = 1024,
__h = 768,
__left = (screen.width/2) - (__w/2),
__top = (screen.height/2) - (__h/2);
// Resize do popup
window.resizeTo(__w, __h);
// Centralizar tela
window.moveTo(__left, __top);
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
@danielfilho
danielfilho / Vagrantfile
Last active December 17, 2015 07:29 — forked from lorn/Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.define :master do |master_config|
master_config.vm.box = "precise64"
master_config.vm.network :hostonly, "192.168.10.50"
master_config.vm.host_name = "localhost.dev"
master_config.vm.provision :shell, :path => "bootstrap.sh"
/* jerev - 10/2012 - parallax.js
Be sure to require plugins.parallax, and place this file in lib/plugins/
Parallax usage
p = new Parallax();
p.add('path/to/image.ext', {distance: 1, y: 0})
p.add('path/to/other/image.ext', {distance: 5, y: 0})
p.move(speed);
{
"starstuff": {
"_user": "danielfilho",
"repos": [
{
"3456407": [
"front-end",
"bookmarks",
"links",
"no-code",

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:

@danielfilho
danielfilho / vaga-zofe-trampos.md
Last active February 9, 2018 07:00
formato de publicação de vaga para o ZOFE trampos -- http://zofe.com.br/trampos

desenvolvedor front-end jr

nome da empresa

(região da av. paulista, são paulo - sp || remoto)

  • regime: CLT
  • escolaridade: segundo grau completo
  • conhecimento necessário:
    • html (5)
  • css (5)