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
exports.Collection = class Posts extends Backbone.Collection | |
initialize: (models, options) => | |
@id = options.id | |
@activeDetails = false | |
@on "loadDetails", @loadDetails | |
@on "detailsLoaded", @logger | |
debug "initialized posts" | |
@fetch | |
beforeSend: () => | |
console.log "about to fetch..." |
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
app = {} | |
exports.setup = (newApp) -> | |
app = newApp | |
exports.routes = | |
"/": | |
get: (req, res, next) -> | |
res.redirect "/displays/ksl" | |
"/:param": | |
get: (req, res, next) -> | |
res.render "display" |
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
if dataSource | |
log "found data" | |
currentItem = externalData[dataSource.bind].current | |
if !currentItem? | |
break | |
else | |
renderData = currentItem.toJSON() | |
else if @model.get "default" | |
log "found default" | |
renderData = @model.get "default" |
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
twitter - | |
link- | |
<a href="https://twitter.com/vidpresso" class="twitter-follow-button" data-show-count="false">Follow @vidpresso</a> | |
setup- | |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | |
FB - |
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
-- switcher's setLayer args are (layername, shotname) | |
-- layername can be "text" (aka title) "foreground" "normal" "background" "audio" | |
-- Defaults for buttons | |
script button | |
on top(channelnumber) | |
my switcher's setLayer("normal", "cam" & channelnumber & "+cg") | |
my switcher's setLayer("foreground", "Blank Shot") | |
my switcher's go() |
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
module ApplicationHelper | |
blocks = Hash.new() | |
def block(name, *args) | |
value = nil | |
buffer = with_output_buffer { value = yield(*args) } | |
blocks[name] = buffer | |
puts blocks | |
buffer = "<a href='http://google.com'>yo</a>" | |
end | |
end |
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
#define @fetch in your initializer. | |
fetch: (options) -> | |
options.success = => | |
@fetching[@url] = undefined | |
options.error = => | |
@fetching[@url] = undefined | |
if JSON.stringify(@fetching[@url]) == JSON.stringify(options) | |
console.log "old fetch in progress for #{@url}" | |
else |
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
this.require.define({"outputs/view/test":function(exports,require,module){ | |
exports.awesome = function(){console.log("WOOO")} | |
console.log("required!") | |
}}) |
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
replaceMethod = function(entry) { | |
entry.parent.$el.fadeOut(250,function(){ | |
entry.parent.$el.html(entry.$el.html()); | |
entry.parent.$el.fadeIn(250); | |
}); | |
}; | |
exports.add = replaceMethod |
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
\x7b226964223a2233363235393233383637355f31303135313034323038323332333637365f37383130353935222c2266726f6d223a7b226e616d65223a2254696e61204c617772656e6365204c6563686c6572222c226964223a2231343032313330303532227d2c226d657373616765223a22486177616969222c2263616e5f72656d6f7665223a2266616c7365222c22637265617465645f74696d65223a22323031322d30372d30365430323a35303a31312b30303030222c226c696b655f636f756e74223a2231222c22757365725f6c696b6573223a2266616c7365222c226c696b6573223a2231227d |