Skip to content

Instantly share code, notes, and snippets.

Avatar

Myles Borins MylesBorins

View GitHub Profile
View meowcount.js
document.body.appendChild(document.createElement('script')).src='https://rawgit.com/tommoor/tinycon/master/tinycon.min.js';
document.body.appendChild(document.createElement('script')).src='//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js';
// select the target node
var target = document.querySelector('#chat-list');
var count = 0;
// create an observer instance
var observer = new MutationObserver(function(mutations) {
var message = mutations[0].addedNodes[0].getElementsByTagName('p')[0].innerHTML
View index.js
var stub = require('./stub');
stub.home().woops().maybe();
@MylesBorins
MylesBorins / gist:3961104
Created Oct 26, 2012
Install node on arm
View gist:3961104
First step...
sudo apt-get update && sudo apt-get upgrade
Go see a movie or write a novel
Follow instructions at https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
sudo apt-get install python-software-properties
Drink a beer while you wait
@MylesBorins
MylesBorins / avahi-daemon.conf
Created Nov 28, 2012
Default avahi-daemon.com
View avahi-daemon.conf
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
View 0001-Smell-Ya-Later-Anti-Feature.patch
From b716088dbc674ef205d68b90fd5b33266892974c Mon Sep 17 00:00:00 2001
From: Myles Borins <mborins@us.ibm.com>
Date: Sat, 28 Nov 2015 14:27:17 -0800
Subject: [PATCH] Smell Ya Later Anti-Feature
---
src/message.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/message.c b/src/message.c
View keybase.md

Keybase proof

I hereby claim:

  • I am thealphanerd on github.
  • I am thealphanerd (https://keybase.io/thealphanerd) on keybase.
  • I have a public key whose fingerprint is C4F0 DFFF 4E8C 1A82 3640 9D08 E73B C641 CC11 F4C8

To claim this, I am signing this object:

View test-regress-GH-123456.js
var http = require("https");
http.get("https://www.juvalis.de/", (res) => {
res.pipe(process.stdout);
});
View process-nextTick.js
var fs = require('fs');
function readSomething(path, cb) {
if (typeof path !== 'string') {
return process.nextTick(function () {
return cb('I should be second');
});
}
fs.readFile(path, cb);
}
View test-npm-test.js
'use strict';
var test = require('tap').test;
var rewire = require('rewire');
var npmTest = rewire('../lib/npm/test');
var authorName = npmTest.__get__('authorName');
test('npm.test() authorName:', function (t) {
View test-http-uncaught-exception.js
const common = require('../common');
const assert = require('assert');
const http = require('http');
process.on('uncaughtException', function(error) {
assert.ok(error);
server.close();
});