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
{ | |
"name": "Aldric Stormwind", | |
"description": "Aldric Stormwind is a human wizard known for his arcane mastery and scholarly pursuits.", | |
"type": "person", | |
"metadata": { | |
"race": "Human", | |
"age": 45, | |
"gender": "Male", | |
"occupation": "Wizard", | |
"socialStatus": "Comfortable", |
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
package todo | |
import ( | |
"encoding/json" | |
models "path/to/your/module/models" | |
"net/http" | |
) | |
// IndexHandler returns a todo list | |
func IndexHandler(w http.ResponseWriter, r *http.Request) { |
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
.container { | |
compose: row from './flex.css'; | |
} | |
@media (min-width: 768px) { | |
.container { | |
compose: column from './flex.css' | |
} | |
} |
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
$(document).scroll(function() { | |
var top = $(document).scrollTop(); | |
if (top > 300) { | |
alert('1') | |
} | |
else if (top > 600) { | |
alert('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 Base = require('ribcage-view') | |
var SubView = Base.extend({ | |
action: function () { | |
this.options.action() | |
} | |
}) | |
var View = Base.extend({ | |
foo: '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
var bind = require('lodash.bind') | |
var Base = require('ribcage-view') | |
window.foo = 'baz' | |
var SubThing = Base.extend({ | |
action: function () { | |
this.options.action() | |
} | |
}) |
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 atomify = require('atomify') | |
, path = require('path') | |
var opts = { | |
entry: path.join(__dirname, '..', 'app', 'index.js') | |
, debug: true | |
} | |
var str = '' | |
var runcount = 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
module.exports = function (path, opts) { | |
return function (err, src) { | |
if (!opts) opts = {} | |
if (!path) throw new Error('Path must be provided') | |
if (err) { | |
throw err |
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 Renderer = function () { | |
var self = this | |
, requestAnimationFrame = window.requestAnimationFrame || | |
window.mozRequestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.msRequestAnimationFrame | |
this.queue = {} | |
requestAnimationFrame(function () { |
NewerOlder