[
](http://nodejs.org/api/documentation.html#documentation_stability_index)
| define(['ko', 'q-reqwest', 'q-tils', 'aug'], function(ko, qr, qt, aug) { | |
| "use strict"; | |
| function propertyGetter(name) { | |
| return function(obj) { | |
| var prop = obj[name]; | |
| return (typeof prop === 'function' ? prop.call(obj) : prop); | |
| } | |
| } | |
| function propertyFilter(name, value) { |
| _vagrant_dirnames() { | |
| if [[ $COMP_CWORD > 1 ]]; then | |
| COMPREPLY=() | |
| return 1 | |
| fi | |
| local cur="${COMP_WORDS[COMP_CWORD]}" | |
| pushd ~/vagrant/ > /dev/null | |
| local opts=( $cur*/ ) | |
| popd > /dev/null | |
| if [[ "$opts" == "$cur*/" ]]; then |
| from lxml import etree | |
| def node_from_dict(tag, data=None): | |
| node = etree.Element(tag) | |
| if isinstance(data, dict): | |
| for key, value in data.items(): | |
| if isinstance(value, list): | |
| for v in value: | |
| node.append(node_from_dict(key, v)) |
| require('harmony-reflect'); | |
| var uniq = require('uniq'); | |
| var arrp = Array.prototype; | |
| function merge(obj, src) { | |
| Object.keys(src).forEach(function(name) { | |
| var value = src[name]; | |
| if (obj.hasOwnProperty(name)) { | |
| merge(obj[name], value); | |
| } else { |
| require('harmony-reflect'); | |
| var uniq = require('uniq'); | |
| var arrp = Array.prototype; | |
| function ext(obj) { | |
| var sources = arrp.slice.call(arguments, 1); | |
| sources.forEach(function(src) { | |
| src && Object.keys(src).forEach(function(name) { | |
| obj[name] = src[name]; | |
| }); |
| var DuplexStream = require('readable-stream').Duplex, | |
| // A duplex stream is a combination of a read stream and a write stream | |
| // For more on streams see http://nodeschool.io/#stream-adventure | |
| util = require('util') | |
| // The "util" module contains several node core utilities. | |
| // In this case we're just using its inheritance helpers. | |
| // See http://nodejs.org/api/util.html for API docs. | |
| function BufferList(callback) { | |
| // In JavaScript it is common to indicate that a function is a constructor by |
| var wildcard = typeof Symbol === 'undefined' ? true : Symbol.for('wildcard'); | |
| function _tokenize(key) { | |
| var tokens = []; | |
| for (var i = 0; i < key.length; i++) { | |
| var token = ''; | |
| if (key[i] === '*' && (i + 1 >= key.length || key[i + 1] === '.')) { | |
| tokens.push(wildcard); | |
| i++; | |
| continue; |
| #!/bin/bash | |
| NAME=webapp | |
| IPC=/var/run/naught/$NAME.ipc | |
| DESC="my application server" | |
| WORKERS=2 | |
| set -e | |
| case "$1" in | |
| start) |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Tree</title> | |
| <style id="jsbin-css"> | |
| .tree { | |
| width: 400px; | |
| margin: 15px 0; | |
| } |