- Good editor support.
- Good package management and distribution channels.
- Good interfaces.
- All modern goodies - Pattern matching, Tuple/Records, ?
- First-class Reactive interfaces.
- JSX (or any style XML-in-lang, first-class)
- Good interoperability.
- Quick to compile.
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
#include <poly/Log.h> | |
#include <TestFboChangeBuffer.h> | |
using namespace poly; | |
TestFboChangeBuffer::TestFboChangeBuffer() | |
:fbo(0) | |
,dx(0) | |
{ | |
tex[0] = 0; |
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 str = 'mvo ienroisjer http://bit.ly/sCraPeD apowi oiuo http://foo.com/bar/zoo fapowiep oit' | |
var regex = new RegExp('(?:(?:(?:https?|ftp|file)://|www\.|ftp\.)[-A-Z0-9+&@#/%?=~_|$!:,.;]*[-A-Z0-9+&@#/%=~_|$]\|((?:mailto:)?[A-Z0-9._%+-]+@[A-Z0-9._%-]+\.[A-Z]{2,4})\\b)|"(?:(?:https?|ftp|file)://|www\.|ftp\.)[^"\r\n]+"?|\'(?:(?:https?|ftp|file)://|www\.|ftp\.)[^\'\r\n]+\'?', 'gi') | |
, arr = str.match(regex) | |
console.log(arr) |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 George Stagas https://github.com/stagas | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
// common.js | |
exports.app = require('./app') | |
exports.db = require('./db') | |
// app.js | |
var common = require('./common') | |
var db = common.db | |
var app = module.exports = express() |
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 n = +(process.argv[2] || 10000) | |
var cp = require('child_process') | |
var child = cp.fork(__dirname + '/worker.js') | |
console.log('trying', n, 'messages') | |
var total = n | |
child.on('message', function () { | |
if (!--total) console.log('completed %d roundtrips', n - total) |
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 = foo = 'hello' |
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 EventEmitter = require('events').EventEmitter, | |
util = require('util'); | |
// TODO: | |
// * tags (BEGIN somehashhere\nsomehashhere data) | |
// * line numbers (begin somehash\nsomehash:12 data) | |
var Buffer = exports.Buffer = function (o) { | |
o = 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
// nextTick - by stagas / public domain | |
var nextTick = (function () { | |
var queue = []; | |
var dirty = false; | |
var fn; | |
var hasPostMessage = !!window.postMessage; | |
var messageName = 'nexttick'; | |
var trigger = (function () { | |
return hasPostMessage | |
? function trigger () { |
NewerOlder