Skip to content

Instantly share code, notes, and snippets.

View danielfilho's full-sized avatar

daniel filho danielfilho

View GitHub Profile
@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);

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:

front-end dev

leroy merlin

(região de interlagos, são paulo - sp)

  • # de vagas: 2
  • regime: CLT
  • escolaridade: 3º grau completo

Validação para cartão de crédito.

Bin e padrões para validação de cartão de crédito.

Bandeira Comeca com Máximo de número Máximo de número cvc
Visa 4 13,16 3
Mastercard 5 16 3
Diners 301,305,36,38 14,16 3

desenvolvedor front-end jr

Trendi

(região da berrini, são paulo - sp)

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

Desenvolvedor Front-end para Startup Agressora

Agrid

Belo Horizonte || Remoto

  • regime: PJ
  • conhecimento necessário:
    • html (5)
    • css (4)
  • javascript (3)

Screencapture and animated gifs

I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).

Capturing (Easy)

  1. Launch quicktime player
  2. do Screen recording

screen shot 2014-10-22 at 11 16 23 am

@danielfilho
danielfilho / upgrade.sh
Last active August 29, 2015 14:14 — forked from dserodio/upgrade.sh
if [ -z $1 ]
then
if [ "$OS" == "Darwin" ]
then
echo "Updating…"
brew update
echo "Upgrading…"
brew upgrade
else
sudo apt-get update
@danielfilho
danielfilho / httpdump
Last active August 29, 2015 14:16 — forked from peterc/httpdump
# Monitor HTTP requests being made from your machine with a one-liner..
# Replace "en1" below with your network interface's name (usually en0 or en1)
sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*"
# OR.. to be able to use as "httpdump" from anywhere, drop this into ~/.bash_profile:
# (again replace "en1" with correct network interface name)
alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*""
# All the above tested only on OS X.