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
App.computed.union = function() { | |
var args, options, properties; | |
properties = a_slice.call(arguments); | |
args = properties.map((function(_this) { | |
return function(prop) { | |
return "" + prop; | |
}; | |
})(this)); |
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(){ | |
function useManifest(content){ | |
var tag; | |
var stylesheets = content.match(/\/css\/.*\.css/g); | |
for (var i=0; i<stylesheets.length; i++){ | |
tag = document.createElement('link'); | |
tag.href = stylesheets[i]; | |
tag.rel = "stylesheet"; | |
document.getElementsByTagName('head')[0].appendChild(tag); |
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
#! /bin/bash | |
# -*- shell-script -*- | |
margin=4 | |
# XPDF gives its y coordinates in terms of the standard PDF coordinate | |
# system, where (0,0) is the bottom left corner and y increases going | |
# up. But pdftocairo uses Cairo coordinates, in which (0,0) is the top | |
# left corner and y increases going down. We can use pdfinfo to get | |
# the page size to translate between these conventions. |
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 (global) { | |
"use strict"; | |
function empty(obj) { | |
var key; | |
for (key in obj) if (obj.hasOwnProperty(key)) return false; | |
return true; | |
} | |
var Ember = global.Ember, |
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
/** | |
* `Ember.MergedArray` is an array that observes multiple other arrays (called source arrays) for changes and includes | |
* all items from all source arrays in an efficient way. | |
* | |
* Usage: | |
* | |
* ```javascript | |
* var obj = Ember.Object.create({ | |
* people: [ | |
* { |
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
App = Ember.Application.create({ | |
customEvents: { | |
swipeLeft: 'swipeLeft', | |
swipeRight: 'swipeRight', | |
swipeLeftTwoFinger: 'swipeLeftTwoFinger', | |
swipeRightTwoFinger: 'swipeRightTwoFinger', | |
dragDown: 'dragDown', | |
dragUp: 'dragUp', | |
dragDownTwoFinger: 'dragDownTwoFinger', | |
dragUpTwoFinger: 'dragUpTwoFinger' |
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
amqp = require('amqplib') | |
whence = require('when') | |
class MessageBus | |
constructor: (@amqp) -> | |
if config.rabbit?.url?. | |
@connect() | |
else | |
@createFakeChannel() |
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 Ember from "ember"; | |
export default Ember.Helper.helper(function([content, group, contentGroupKey]) { | |
return content.filterBy(contentGroupKey, group); | |
}); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>OnDemand</key> | |
<false/> | |
<key>KeepAlive</key> | |
<true/> | |
OlderNewer