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
Checking for program g++ or c++ : /usr/lib64/ccache/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for node path : not found | |
Checking for node prefix : ok /usr | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes |
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
[maciej@PC03 ~]$ mongo | |
MongoDB shell version: 1.8.0 | |
connecting to: test | |
> db.a.save([{a:1, b:2}, {a:4,b:5}]) | |
> | |
> db.a.find() | |
Thu Sep 15 02:04:44 mongo got signal 11 (Segmentation fault), stack trace: | |
Thu Sep 15 02:04:44 0x46a0ff 0x4611c4 0x3759435350 0x3771e4e63e 0x4f2dfa 0x4f11cf 0x3771eeae9e 0x3771ef5fcc 0x3771ec243c 0x3771ed3ae5 0x3771ed5772 0x3771e4dcb5 0x3771e4ddb2 0x3771e4de52 0x4f7326 0x466d57 0x45cb4e 0x375942139d 0x45f7b9 | |
mongo(_ZN5mongo15printStackTraceERSo+0x1f) [0x46a0ff] |
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
for (var i = 0; i < 1024 * 1024; i++) { | |
process.nextTick(function () { Math.sqrt(i) } ) | |
} |
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
require('./db_connect'); | |
var geocoder = require('geocoder'); | |
var cs = require('../cyberstride/mongoose'); | |
var AddressSchema = new Schema({ | |
name : {type: String, default : ''}, | |
street1 : {type: String, default : ''}, | |
street2 : {type: String, default : ''}, | |
city : {type: String, default : '', required: true}, | |
state : {type: String, required : true}, | |
zip : {type: String, default : ''}, |
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 assert = require('assert'), | |
EventEmitter2 = require('eventemitter2').EventEmitter2, | |
called = false; | |
var emitter = new EventEmitter2({ | |
wildcard: true, | |
verbose: true | |
}); | |
emitter.on('*.bar', function () { |
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
local TCP = require('tcp') | |
local PORT = 8080 | |
local server = TCP.create_server("127.0.0.1", PORT, function (client) | |
client:on("data", function (chunk) | |
p('server:client:on("data")', chunk) | |
assert(chunk == "ping") | |
client:write("pong", function (err) |
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 XMonad | |
import XMonad.Config.Gnome | |
import XMonad.Util.Run | |
import XMonad.Layout.NoBorders | |
main = do spawn "gnome-panel" | |
spawn "gnome-power-manager" | |
spawn "gnome-sound-applet" | |
spawn "nm-applet" | |
xmonad gnomeConfig { layoutHook = smartBorders (layoutHook gnomeConfig) } |
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
/* | |
* dispatch-test.js: Tests for the core dispatch method. | |
* | |
* (C) 2011, Nodejitsu Inc. | |
* MIT LICENSE | |
* | |
*/ | |
var assert = require('assert'), | |
vows = require('vows'), |
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 fs = require('fs'), | |
request = require('request'), | |
irc = require('irc'); | |
var config = JSON.parse(fs.readFileSync('config.json')); | |
var client = new irc.Client( | |
'irc.freenode.net', | |
'nerdfightBot', | |
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
var ansispan = function (str) { | |
} | |
ansispan.parse = function (str) { | |
// | |
// I'm terrible at writing parsers. | |
// | |
var matchingControl = null, | |
matchingData = null, | |
matchingText = null, |