10/05/2012
- Foundation: Kevin Systrom (Instagram)@almirfilho
@caiogondim
17/05/2012
- Foundation: Jack Dorsey (Twitter)@almirfilho
@caiogondim
@yurigoytacaz
24/05/2012
- Foundation: Dennis Crowley (Foursquare)@almirfilho
@caiogondim
@yurigoytacaz
13/06/2012
- WWDC 2012@almirfilho
@caiogondim
20/06/2012
- The Internet Ep. 1 - Browser Wars@almirfilho
@caiogondim
@riosada
28/06/2012
- The Internet Ep. 2 - The Search@almirfilho
@caiogondim
@yurigoytacaz
I use Source Code Pro for everything code related.
And Tomorrow Night Eighties as my go to color scheme.
My theme is Spacegray
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var Logdown = require('logdown') | |
var fooLogger = new Logdown({prefix: 'foo'}) | |
fooLogger.log('Lorem') | |
fooLogger.info('Lorem') | |
fooLogger.warn('Lorem') | |
var barLogger = new Logdown({prefix: 'bar'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isValidEmail(email) { | |
var input = document.createElement('input') | |
input.type = 'email' | |
input.value = email | |
return input.validity.valid | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const _ = require('./underscore') | |
const Benchmark = require('benchmark') | |
const debug = require('logdown')() | |
// Current | |
function fibonacci(n) { | |
return n < 2 ? n : fibonacci(n - 1) + fibonacci(n - 2) |
V8 optimization tips https://github.com/vhf/v8-bailout-reasons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function draw (canvas, video, overlay) { | |
window.requestAnimationFrame(() => draw(canvas, video, overlay)) | |
const context = canvas.getContext('2d') | |
const videoCompStyle = window.getComputedStyle(video) | |
const videoWidth = videoCompStyle.width.replace('px', '') | |
const videoHeight = videoCompStyle.height.replace('px', '') | |
context.drawImage(video, 0, 0, videoWidth, videoHeight) | |
clearTimeout(hideTimeout) | |
if (faces.length) { |