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
var gulp = require('gulp'); | |
var shell = require('gulp-shell'); | |
gulp.task('init', function() { | |
return gulp.src('', { read: false }) | |
.pipe(shell('bower install', { | |
ignoreErrors: true | |
})); | |
}); |
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
$("a[href="#"]").click(function(e){e.preventDefault()}); |
I love Github, seriously, I really do. Also, my super coder friend Clark Kent loves too.
Some weeks ago, he decided to create a new project on Github called Krypton.
This project is incredible and as the time passed by more and more people started watching and forking it. Awesome!
Eu amo o Github, sério, eu amo mesmo. E não sou só eu, meu amigo super desenvolvedor Clark Kent ama também.
Algumas semanas atrás, ele decidiu criar um novo projeto no Github chamado Krypton.
Esse projeto era incrível e à medida que o tempo passava mais e mais pessoas começaram a acompanhar e forkar o projeto. Irado!
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
// definindo um namespace para evitar conflito com outros objetos | |
window.GLOBOESPORTECOM = window.GLOBOESPORTECOM || {}; | |
GLOBOESPORTECOM.APPS = GLOBOESPORTECOM.APPS || {}; | |
// protegendo o $ do jQuery em uma função anônima, | |
// prevenindo assim conflitos com outras libs que também usam $ | |
(function($){ | |
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
var videoCamera = new tracking.VideoCamera().hide().render().renderVideoCanvas(); | |
var t1 = videoCamera.track( | |
{ | |
type: 'color', | |
color: 'magenta', | |
onFound: function(track) { | |
var pixels = track.pixels; | |
for (var i = 0, len = pixels.length; i < len; i += 2) { |
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
var videoCamera = new tracking.VideoCamera().hide().render().renderVideoCanvas('#iphoneContainer'); | |
var plotCanvas = new tracking.Canvas().render(), | |
drawSegments = [], | |
eraseFound = false, | |
pencilFound = false, | |
segment = 0, | |
selectedElement = document.getElementById('selected'); | |
videoCamera.track({ |
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
var videoCamera = new tracking.VideoCamera().hide().render().renderVideoCanvas(), | |
ctx = videoCamera.canvas.context; | |
var t1 = videoCamera.track({ | |
type: 'color', | |
color: 'magenta', | |
onFound: function(track) { | |
var size = 60 - track.z; | |
ctx.strokeStyle = "rgb(255,0,255)"; | |
ctx.lineWidth = 3; |
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
AUI().ready('aui-carousel', function(A) { | |
var carousel = new A.Carousel({ | |
activeIndex: 'rand', | |
contentBox: '#demo', | |
intervalTime: 2, | |
height: 254, | |
width: 680 | |
}).render(); |
OlderNewer