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
| /* | |
| __ ___ | |
| /\ \ __ /'___\ | |
| \ \ \ __ __ /\_\/\ \__/ __ __ | |
| \ \ \ __ /'__`\ /'_ `\/\ \ \ ,__\/\ \/\ \ | |
| \ \ \L\ \/\ __//\ \L\ \ \ \ \ \_/\ \ \_\ \ | |
| \ \____/\ \____\ \____ \ \_\ \_\ \/`____ \ | |
| \/___/ \/____/\/___L\ \/_/\/_/ `/___/> \ | |
| /\____/ /\___/ | |
| \_/__/ \/__/ |
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
| /* | |
| __ ___ | |
| /\ \ __ /'___\ | |
| \ \ \ __ __ /\_\/\ \__/ __ __ | |
| \ \ \ __ /'__`\ /'_ `\/\ \ \ ,__\/\ \/\ \ | |
| \ \ \L\ \/\ __//\ \L\ \ \ \ \ \_/\ \ \_\ \ | |
| \ \____/\ \____\ \____ \ \_\ \_\ \/`____ \ | |
| \/___/ \/____/\/___L\ \/_/\/_/ `/___/> \ | |
| /\____/ /\___/ | |
| \_/__/ \/__/ |
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 http = require("http"), https = require("https"); | |
| var commands = { | |
| "mono": function ( args, response ) { | |
| var r = args[0]; | |
| return https.get("https://embed.spotify.com/?uri=" + r, function(res) { | |
| var data = ""; res.on("data", function (v) { data += v; }) | |
| res.on("end", function () { | |
| var v = data | |
| .split('<ul id="content" class="content">')[1] |
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
| { | |
| "name": "GSPBizInt", | |
| "version": "0.0.1", | |
| "author": "Legify", | |
| "description": "Legify GSP BizInz.", | |
| "contributors": [ | |
| { "name": "Kenan Sulayman", "email": "kenan@legify.com" } | |
| ], | |
| "bin": { | |
| "GSPBizInt": "./pull.js" |
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
| /* | |
| __ ___ | |
| /\ \ __ /'___\ | |
| \ \ \ __ __ /\_\/\ \__/ __ __ | |
| \ \ \ __ /'__`\ /'_ `\/\ \ \ ,__\/\ \/\ \ | |
| \ \ \L\ \/\ __//\ \L\ \ \ \ \ \_/\ \ \_\ \ | |
| \ \____/\ \____\ \____ \ \_\ \_\ \/`____ \ | |
| \/___/ \/____/\/___L\ \/_/\/_/ `/___/> \ | |
| /\____/ /\___/ | |
| \_/__/ \/__/ |
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
| #!/usr/local/bin/node | |
| // Server, see https://gist.github.com/KenanSulayman/6195554 | |
| // readDirectory.js, see https://gist.github.com/KenanSulayman/6187951 | |
| /* | |
| __ ___ | |
| /\ \ __ /'___\ | |
| \ \ \ __ __ /\_\/\ \__/ __ __ | |
| \ \ \ __ /'__`\ /'_ `\/\ \ \ ,__\/\ \/\ \ |
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 nname = function (n) { | |
| var e = ((n/10) - ~~(n/10)) * 10; | |
| e = ( e - ~~e ) < .5 && ~~e || ( ~~e + 1 ); | |
| return n + (e === 1 && "st" || e === 2 && "nd" || e === 3 && "rd" || "th"); | |
| } |
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 net = require("net"); | |
| var fs = require("fs"); | |
| // turns off file caching | |
| var isFileServer = true; | |
| var nop = new Function; | |
| var http_ref = { | |
| 100: "Continue", |
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 pair = function (x, y) { | |
| return x << 16 & 0xffff0000 | y & 0x0000ffff; | |
| }; | |
| var depair = function (p) { | |
| return [p >> 16 & 0xFFFF, p & 0xFFFF] | |
| }; |
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
| // controller code | |
| var HID = require('node-hid'); | |
| var nop = new Function; | |
| var lru, op = { | |
| 0x4E: nop, | |
| 0x4B: nop, | |
| 0x3E: nop, | |
| 0x37: nop, |