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
= handlebars_template_named "edit-field" do | |
= hb %{ if isEditing } do | |
= hb %{ view BD.TextField valueBinding="value" } | |
= hb_else | |
= hb %{ if value } do | |
= hbb %{ value } | |
= hb_else | |
span.no-name empty | |
/ Outputs |
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
ownloadQueue = async.queue (photo, callback) -> | |
# Here we define the task handled by this concurrency-limiting queue. | |
downloadfile = photo.url | |
host = url.parse(downloadfile).hostname | |
filename = url.parse(downloadfile).pathname.split("/").pop() | |
filename = "./public/downloads/#{filename}" | |
photo.localFilename = filename | |
console.log "set photo.localFilename to #{photo.localFilename}" | |
theurl = http.createClient(80, host) | |
requestUrl = downloadfile |
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
DOWNLOAD_CONCURRENCY = 10 | |
# Data Structures | |
longPollRequests = [] | |
jobs = {} | |
downloadQueue = async.queue (photo, callback) -> | |
# Here we define the task handled by this concurrency-limiting queue. | |
downloadfile = photo.url | |
host = url.parse(downloadfile).hostname | |
filename = url.parse(downloadfile).pathname.split("/").pop() |
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
require "rake-pipeline-web-filters" | |
require "./remote-replace-filter" | |
# specify output, other configuration | |
input "app" do | |
match "slim/whatever.slim" do | |
tilt { |input| input.sub(/\.slim$/, '.html') } | |
copy "index.html" |
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
Emblem examples: | |
1) Text / property lookup / helpers | |
#bar.baz Raw text | |
#bar.baz | |
| Raw text | |
on multiple lines | |
with {{normal}} Handlebars syntax support | |
as well as raw <span>HTML</span> support. |
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
findTheThingWeWant = (things) -> | |
things.each (thing) ~> | |
return item if thing.isWhatWeWant |
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
// Version: v1.0.0-pre.2-318-g075ed98 | |
// Last commit: 075ed98 (2013-01-07 10:58:00 -0800) | |
(function() { | |
/*global __fail__*/ | |
/** | |
Ember Debug |
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 = (hash) -> Em.State.extend hash | |
TransitionTo = Em.State.transitionTo | |
C = null | |
Receivers.WithdrawController = Em.ObjectController.extend | |
receiverController: null | |
router: null | |
init: -> | |
@_super() |
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
start = content | |
content = statement* | |
statement | |
= html | |
/ mustache | |
html | |
= htmlMaybeBlock |
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
this.StringScanner = (function() { | |
var StringScanner; | |
StringScanner = (function() { | |
function StringScanner(str) { | |
this.str = str != null ? str : ''; | |
this.str = '' + this.str; | |
this.pos = 0; | |
this.lastMatch = { | |
reset: function() { |
OlderNewer