Skip to content

Instantly share code, notes, and snippets.

View lagden's full-sized avatar
🎯
Focusing

Thiago Magalhães lagden

🎯
Focusing
  • São Paulo
View GitHub Profile
@lagden
lagden / for1.js
Last active August 1, 2016 20:56
Benchmark cache length
function for1() {
'use strict';
const a = [];
for (let i = 0; i < 9999999; i++) {
a.push(i);
}
console.time('loop');
for (let c = 0; c < 1e3; c++) {
@lagden
lagden / index.html
Created July 17, 2013 15:37
A CodePen by Thiago Lagden.
<div class="sliderwrapper">
<a href="#xxx" class="seta esquerda rep" title="Anterior">Anterior</a>
<a href="#xxx" class="seta direita rep" title="Próximo">Próximo</a>
<ul id="theSlider" class="slider">
<li style="background-image: url(http://www.vale.com/brasil/pt/publishingimages/headers_home/header_gri_pt.jpg);">
<div class="caption">
<h1>
<a href="/pt/aboutvale/sustainability/paginas/default.aspx" target="_blank" title="Relatório de Sustentabilidade">Para nós, desenvolvimento sustentável é compartilhar valor. Conheça nosso Relatório de Sustentabilidade</a>
</h1>
</div>
## Get FFMpeg working on heroku by building binaries using vulcan
gem install vulcan
vulcan create foo
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
<div class="pr">
<select title="sample" class="Styled" name="sample">
<option value="">Selecione</option>
<option value="1">A</option>
<option value="2">B</option>
<option value="3">C</option>
</select>
</div>
@lagden
lagden / index.html
Created September 25, 2012 14:00
Just some practice creating a character from parts and animating them.
<div class="dude">
<div class="hip">
<div class="torso">
<div class="head"></div>
<div class="limb rt up">
<div class="limb dn"></div>
</div>
<div class="limb lt up">
<div class="yeahh">
<ul class="nav">
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
<li>e</li>
</ul>
</div>
<img src="http://farm4.static.flickr.com/3647/3320066629_c26343104f.jpg" alt="yeahh">
<!-- Carousel -->
<div class="the_slideshow" id="carouselHome">
<ul class="the_slider">
<li>
<a href="#ulala">
<img alt="yeahhh" width="500" height="200" class="" src="http://placekitten.com/g/500/200" />
</a>
</li>
<li>
<a href="#ulala">
@lagden
lagden / pr.md
Created August 14, 2012 05:17 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: