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
const animationFrame = timestamp => { | |
if (!this.startTime) { | |
this.startTime = timestamp; | |
} | |
this.delta = timestamp - this.startTime; | |
if (this.delta >= updateDiff) { | |
this.update(this.delta); | |
this.startTime = 0; |
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
import throttle from '../utils/throttle'; | |
export default (($) => { | |
const NAME = 'lazyload'; | |
const DEFAULTS = { | |
throttle: 1000, | |
offset: 200 | |
}; | |
class LazyLoad { |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' |
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
import emitter from '../utils/emitter'; | |
const foo = (element) => { | |
let result = element.querySelector('[data-all="result"]'); | |
let counter = 0; | |
emitter.on('counter', () => result.innerHTML = ++counter); | |
}; |
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
import postcss from 'postcss'; | |
import fs from 'fs'; | |
export default (glyphs) => { | |
let stylesheet = postcss.root(); | |
glyphs.forEach((glyph) => { |
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
$.fn[name] = function(options) { | |
options = options || {}; | |
return this.each(function() { | |
if (!$.data(this, name)) { | |
$.data(this, name, new name(this, options)) | |
} | |
}); | |
}; |
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
Show hidden characters
{ | |
"bitwise": true, | |
"browser": true, | |
"camelcase": true, | |
"curly": true, | |
"eqeqeq": true, | |
"esnext": true, | |
"globals": {}, | |
"immed": true, | |
"indent": 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
(function(){ | |
'use strict' | |
angular.module('app.module', []); | |
})(); |
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
.state('client.details', { | |
url: '/:idClient' | |
}) | |
// gera url /10 | |
.state('client.details.tasks', { | |
url:'/tasks' | |
}) | |
// gera url /10/tasks |
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() { | |
'use strict'; | |
angular.module('cbApp.service.clickbus', []) | |
.factory('clickbusApi', clickbusApi); | |
clickbusApi.$inject = ['$http', '$sessionStorage', 'parameters']; | |
function clickbusApi($http, $sessionStorage, parameters) { | |
return { |
NewerOlder