This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder