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.Component.extend({ | |
isModelTwo: Ember.computed('model.id', function() { | |
return this.get('model.id') == 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
db = require('riak-js').getClient() | |
db | |
.add([['catalogs', 'politics']]) | |
.link({ bucket: 'books', keep: false }) | |
.map(function(value) { | |
// ejsLog('/tmp/mapreduce', JSON.stringify(value)); | |
value = Riak.mapValuesJson(value)[0]; | |
return [ | |
{ |
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 forms_lib = require('forms') | |
module.exports = function(forms) { | |
forms = forms || {}; | |
return function(req, res, next) { | |
if (!req.session) { | |
next(new Error("Forms middleware requires connect.session middleware to work properly")); | |
return; |
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
config = | |
vhosts: | |
'test1.domain.com': | |
directory: "/Users/mikeal/Documents/tmp" | |
'test2.domain.com': | |
proxy_pass: | |
port: 8888 | |
host: "localhost" | |
locations: |
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
#!/usr/bin/env node | |
var exec = require('child_process').exec, | |
sys = require('sys'), | |
fs = require('fs'), | |
p = JSON.parse(fs.readFileSync('./package.json').toString()), | |
libs = "" | |
for (prop in p.dependencies) { | |
libs += prop + '@"' + p.dependencies[prop] + '" ' |
NewerOlder