http://www.opensource.apple.com/source/launchd/launchd-328/launchd/src/launch.h http://www.opensource.apple.com/source/initng/initng-12/initng/src/launchctl.c
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
(ns a | |
(:require-macros [clojure.string :as alias])) | |
; this is fine | |
`xxx/name | |
; this throws clojure.lang.Symbol cannot be cast to clojure.lang.Namespace | |
`alias/name |
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
/* @flow */ | |
type T1 = {x : number}; | |
type T2 = {y : number}; | |
type T3 = T1 & T2; | |
function mergeAndDoStuff(t1 : T1, t2 : T2) : T3 { | |
const result = Object.assign({}, t1, t2); | |
console.log(result.info.toString()); // at one time, T1 contained info, but it was removed | |
return result; | |
} |
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
Proceed onto Highland Avenue 5.1 | |
Right onto Cherry Street 5.2 | |
Proceed onto Cherry Street 5.2 | |
Left onto Hall Street 5.3 | |
Proceed onto Hall Street 5.3 | |
Right onto Cedar Street 5.4 | |
Left onto Summer Street 5.4 | |
Proceed onto Summer Street 5.4 | |
Left onto Porter Street 5.5 | |
Right onto Crown Street 5.6 |
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 $ = require('nodobjc'); | |
$.framework('AppKit'); | |
function getNSData(data) { | |
var byteBuffer = new Buffer(data('length')); | |
data('getBytes', byteBuffer, 'length', byteBuffer.length); | |
return byteBuffer; | |
} | |
var toHtmlOpts = $.NSDictionary( |
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
module.exports = () => Promise.reject(new Error('invalid config')); |
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
const lines = str.trim().split('\n'); | |
const groups = []; | |
let input; | |
lines.forEach((line) => { | |
if (input) { | |
input.push(line); | |
if (line[line.length - 1] !== '\\') { | |
input = null; | |
} | |
} else if (line.startsWith('$ ')) { |
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 print = print || console.log; | |
var x = []; | |
for (var i = 0; i < 1000; i++) { | |
print(i); | |
x.push({"524288": 1}); | |
} |
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 reassign = loadWithNewGlobal({ | |
script: '(function (o, i) { o[i] = o[i]; })', | |
name: 'test.js' | |
}); | |
function test(i) { | |
var o = {}; | |
o[i] = true; | |
reassign(o, i); | |
print(JSON.stringify(o)); |
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 webpackUniversalModuleDefinition(root, factory) { | |
if(false && typeof exports === 'object' && typeof module === 'object') | |
module.exports = factory(require("fs"), require("path")); | |
else if(typeof define === 'function' && define.amd) | |
define(["fs", "path"], factory); | |
else if(typeof exports === 'object') | |
exports["sourceMap"] = factory(require("fs"), require("path")); | |
else | |
root["sourceMap"] = factory(root["fs"], root["path"]); | |
})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_11__) { |