- Alamo Square
- Anza Vista
- Ashbury Heights
- Balboa Park
- Balboa Terrace
- Bayview
- Belden Place
- Bernal Heights
- Buena Vista
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 browserify = require('./'); | |
var through = require('through2'); | |
var b = browserify('./test/entry/main'); | |
var spawn = require('child_process').spawn; | |
var wrap = b.pipeline.get('wrap'); | |
var n = spawn('node'); | |
var out = through(); |
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 Browserify = require('browserify'); | |
var Readable = require('stream').Readable; | |
function stringStream(content) { | |
var s = new Readable(); | |
s.push(content); | |
s.push(null); | |
return s; | |
} |
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
// anonymous function | |
numbers.map({ | |
(number: Int) -> Int in | |
let result = 3 * number | |
return result | |
}) | |
// implicit return for single statements | |
numbers.map({ number in 3 * number }) |
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 encodeData(data) { | |
var result = []; | |
forEach(data, function(value, key) { | |
if (isArray(value)) { | |
forEach(value, function(url) { | |
result.push(encodeURIComponent(key) + '[]=' + encodeURIComponent(url)); | |
}); | |
} else { | |
result.push(encodeURIComponent(key) + '=' + encodeURIComponent(value)); |
I hereby claim:
- I am terinjokes on github.
- I am terin (https://keybase.io/terin) on keybase.
- I have a public key whose fingerprint is B8DF 1BEF C55C 6A5A 6412 DF5D 5734 824F 6EE3 C823
To claim this, I am signing this object:
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 Readable = require('stream').Readable | |
module.exports = function string2Stream(string) { | |
var stream = new Readbale(); | |
stream._read = function() { | |
//todo: you might want to return data based on the 'size' parameter. | |
stream.push(string); | |
string = null; | |
} |
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
return require('util'); |
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 mdeps = require('module-deps'), | |
JSONStream = require('JSONStream'); | |
mdeps(__dirname + '/template.js', { | |
transformKey: ['browserify', 'transform'] | |
}) | |
.pipe(JSONStream.stringify()) | |
.pipe(process.stdout); |
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(fn) { | |
function setup($) { | |
return $.fn.extend(fn(jQuery)); | |
} | |
if (typeof exports === 'object') { | |
module.exports = setup; | |
} else { | |
setup(jQuery || Zepto); | |
} | |
}(function($) { |