This file contains hidden or 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) { |
This file contains hidden or 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) |
This file contains hidden or 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 hidden or 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'}) |
I use Source Code Pro for everything code related.
And Tomorrow Night Eighties as my go to color scheme.
My theme is Spacegray
10/05/2012- Foundation: Kevin Systrom (Instagram)@almirfilho@caiogondim17/05/2012- Foundation: Jack Dorsey (Twitter)@almirfilho@caiogondim@yurigoytacaz24/05/2012- Foundation: Dennis Crowley (Foursquare)@almirfilho@caiogondim@yurigoytacaz13/06/2012- WWDC 2012@almirfilho@caiogondim20/06/2012- The Internet Ep. 1 - Browser Wars@almirfilho@caiogondim@riosada28/06/2012- The Internet Ep. 2 - The Search@almirfilho@caiogondim@yurigoytacaz