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 mongoose = require('mongoose') | |
var assert = require('assert') | |
mongoose.connect('mongodb://localhost/mongotest') | |
var VideoSchema = new mongoose.Schema({ | |
title: String | |
, img: String | |
, timestamp: { type: Date, default: Date.now } | |
, viewCount: Number | |
, commentCount: 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
net.inet.ip.portrange.lowfirst: 1023 | |
net.inet.ip.portrange.lowlast: 600 | |
net.inet.ip.portrange.first: 49152 | |
net.inet.ip.portrange.last: 65535 | |
net.inet.ip.portrange.hifirst: 49152 | |
net.inet.ip.portrange.hilast: 65535 |
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 a = '1.000' | |
undefined | |
> +(a).toFixed(2) | |
TypeError: Object 1.000 has no method 'toFixed' | |
at repl:1:7 | |
at REPLServer.self.eval (repl.js:110:21) | |
at Interface.<anonymous> (repl.js:239:12) | |
at Interface.emit (events.js:95:17) | |
at Interface._onLine (readline.js:202:10) | |
at Interface._line (readline.js:531:8) |
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
<html> | |
<head> | |
<style> | |
p { | |
font-family: "Comic Sans", Times, serif; | |
font-size: 9px; | |
color: black; | |
} | |
</style> | |
</head> |
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() some stuff from npm (like you were using browserify) | |
// and then hit Rebuild to run it on the right | |
var xpy = 0.12345678 | |
var btc = 0.011 | |
var priceFormatted = Number(xpy * btc) | |
var price = Number(xpy * btc) | |
document.body.innerHTML = '<div>price: ' + price + | |
'</div><div>formatted: ' + priceFormatted + '</div>' | |
var goback = Number(+priceFormatted / btc).toFixed(8) |
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
"$basedir/..node-win32-x64/node.exe" "$@" | |
exit $? |
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
CM1 0.7.6 | |
ChartTime 0.1.0 | |
Company 1.1.0 | |
Couch-cleaner 0.0.1 | |
DateZ 0.0.6 | |
Faker 0.7.2 | |
Frenchpress 0.1.0 | |
JSONSelect 0.4.0 | |
JSONloops 0.1.0 | |
JSPP 0.1.2 |
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
'use strict'; | |
module.exports = {SocketListSend, SocketListReceive} | |
const EventEmitter = require('events').EventEmitter; | |
const util = require('util'); | |
// This object keep track of the socket there are sended | |
function SocketListSend(slave, key) { | |
EventEmitter.call(this); |
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
mv /tmp/ckproxy/{listener,listener_old} \ | |
&& socat -t100 -x -v UNIX-LISTEN:/tmp/ckproxy/listener,mode=777,reuseaddr,fork UNIX-CONNECT:/tmp/ckproxy/listener_old |
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
=== release test-tls-js-stream === | |
Path: parallel/test-tls-js-stream | |
write <Buffer 16 03 01 01 1f 01 00 01 1b 03 03 b2 79 cc 72 e8 cd 31 64 6a ce 14 51 9f 8a 14 a4 82 29 d3 76 40 07 aa 04 8b f2 75 2a ea cc 9f d8 00 00 80 c0 2f c0 2b ... > buffer | |
read <Buffer 16 03 03 00 41 02 00 00 3d 03 03 a9 72 9f 08 f7 1c 9f 14 05 25 87 cc 7c cf 2a 8a 68 f9 22 bf 8a ed 5d fc 51 1d ea a1 e8 22 96 1f 00 c0 2f 00 00 15 ff ... > | |
write <Buffer 16 03 03 00 46 10 00 00 42 41 04 cc 49 3c d1 ba 44 e9 6c 75 28 1f 07 60 8e a0 7c 25 be 23 b4 06 91 64 c4 a5 48 85 5e dc dc dd ab a7 ac ce f5 fb e3 3d ... > buffer | |
new client | |
read <Buffer 16 03 03 00 ca 04 00 00 c6 00 00 01 2c 00 c0 5c f9 32 37 d5 40 3d 6d 3e 9a 46 e9 ff d3 1a 2a 34 72 f8 ae ed 4f 47 17 3c 43 69 4d 49 21 70 f3 08 12 38 ... > | |
client secure | |
write <Buffer 17 03 03 00 1d 2c 99 57 1d 54 b9 aa d4 29 4c 4c 87 fc 49 7f 01 0a bf 66 fa 78 0d d9 e5 6b 8a ce d6 38> buffer | |
write <Buffer 15 03 03 00 1a 2c 99 57 1d 54 b9 aa d5 46 df 82 0d 15 e |
OlderNewer