Skip to content

Instantly share code, notes, and snippets.

View danielfilho's full-sized avatar

daniel filho danielfilho

View GitHub Profile
@danielfilho
danielfilho / README.markdown
Last active August 29, 2015 13:56
inject an external css

Como usar

  • Crie um servidor HTTP no diretório: css/
  • Rode na raiz do projeto: $ compass watch
  • Rode este snippet/bookmarklet no celular e aponte para o endereço do servidor de CSS da seguinte forma:

Caso seu IP na rede (a mesma que o celular está conectado) seja: 192.168.10.10 e seu servidor HTTP foi criado na porta 3333, o endereço que deverá entrar no celular é: http://192.168.10.10:3333/mediaqueries.css

Isso irá injetar a tag para o CSS mobile no final da tag <HEAD>, certificando que ele será a última regra de CSS carregada e irá sobrescrever as regras nativas.

@danielfilho
danielfilho / private.xml
Created February 17, 2014 21:17
Using KeyMap4MacBook (https://pqrs.org/macosx/keyremap4macbook/) to remap the Logitech R400 Presenter to work on Keynote
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>R400</productname>
<productid>0xc52d</productid>
@danielfilho
danielfilho / keybase.md
Created March 24, 2014 18:50
My proof for keybase.io :)

Keybase proof

I hereby claim:

  • I am danielfilho on github.
  • I am danielfilho (https://keybase.io/danielfilho) on keybase.
  • I have a public key whose fingerprint is D3C5 FEE9 3377 D073 5207 8CC7 B9D0 2867 EAC1 2B62

To claim this, I am signing this object:

@danielfilho
danielfilho / mbp.md
Last active August 29, 2015 14:00
MacBook Pro 8,1

VENDIDO

MacBook Pro 8,1 (Early 2011)

VENDIDO

Brazilian TLD Applicants

TLD Company
.ITAU Itau Unibanco Holding S.A.
.BRADESCO Banco Bradesco S.A.
.IPIRANGA Ipiranga Produtos de Petroleo S.A.
.BOM Núcleo de Informação e Coordenação do Ponto BR - NIC.br
.FINAL Núcleo de Informação e Coordenação do Ponto BR - NIC.br
.RIO Empresa Municipal de Informática SA - IPLANRIO
@danielfilho
danielfilho / hrdwr.js
Created June 21, 2014 03:52
If you're going to work with spark core and want to have an arduino for faster development in flaky wifi connections (or whatever reason), use the pin set as an object, so you can change everywhere at once, when switching devices.
var pins = {
spark: {
servo: 'D0',
button: 'D7',
red: 'A0',
green: 'A1',
blue: 'A4'
},
arduino: {
servo: 10,
<!DOCTYPE html>
<html>
<head>
<title>video</title>
<style>
.wraper { position: relative; }
.videoHolder, .cover { position: absolute; }
.videoHolder {
display: none;
z-index: 1;

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