Skip to content

Instantly share code, notes, and snippets.

View rickbutton's full-sized avatar
🏳️‍🌈
defund nypd

Rick Button rickbutton

🏳️‍🌈
defund nypd
View GitHub Profile
@rickbutton
rickbutton / 1_entry.mjs
Created March 23, 2022 21:17
node entry.mjs
import * as b from "./b.mjs";
throw new Error("foo has these exports: " + Object.getOwnPropertyNames(b));
@rickbutton
rickbutton / 01-rt-examples.js
Last active November 6, 2020 13:18
Record and Tuple Playground examples for NodeConf EU!
// Record and Tuple playground examples!
// helpers, please ignore :)
const log = console.log;
const error = console.error;
const logError = (thunk) => { try { thunk(); } catch (e) { error("Error: " + e.message); } };
// the fun part!
log("// record literals");

Keybase proof

I hereby claim:

  • I am rickbutton on github.
  • I am rickbutton (https://keybase.io/rickbutton) on keybase.
  • I have a public key ASB3QyQxB9YPbSloVgrBrbf8sT-usiZ6f49P3c-p_TN79wo

To claim this, I am signing this object:

/*! JointJS v0.9.3 - JavaScript diagramming library 2015-02-03
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
.viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none}[magnet=true]:not(.element){cursor:crosshair}[magnet=true]:not(.element):hover{opacity:.7}.element{cursor:move}.element *{vector-effect:non-scaling-stroke;-moz-user-select:none;user-drag:none}.connection-wrap{fill:none;stroke:#000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;opacity:0;cursor:move}.connection-wrap:hover{opacity:.4;stroke-opacity:.4}.connection{fill:none;stroke-linejoin:round}.marker-source,.marker-target{vector-effect:non-scaling-stroke}.marker-vertices{opacity:0;cursor:move}.marker-arrowheads{opacity:0;cursor:move;cursor:-webkit-grab;cursor:-moz-grab}.link-tools{opacity:0;cursor:pointer}.link-tools .tool-options{display:none}.link-tools .tool-rem
/*! JointJS v0.9.3 - JavaScript diagramming library 2015-02-03
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
if(function(a,b){function c(a){var b=a.length,c=fb.type(a);return fb.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||"function"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){var b=ob[a]={};return fb.each(a.match(hb)||[],function(a,c){b[c]=!0}),b}function e(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=fb.expando+Math.random()}function f(a,c,d){var e;if(d===b&&1===a.nodeType)if(e="data-"+c.replace(sb,"-$1").toLowerCase(),d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:rb.test(d)?JSON.parse(d):d}catch(f){}pb.set(a,c,d)}else d=b;return d}function g(){return!0}function h(){return!1}function i(){try{return T.activeElement}catch(a){}}function j(a,b){
public class CRC64
{
private ulong[] _table;
private ulong CmTab(int index, ulong poly)
{
ulong retval = (ulong)index;
ulong topbit = (ulong)1L << (64 - 1);
ulong mask = 0xffffffffffffffffUL;
class Poller
def initialize(user, pass)
@user = user
@pass = pass
end
def poll
begin
puts "Starting poller"
@rickbutton
rickbutton / gist:5692323
Created June 2, 2013 01:49
rbenv install on OSX
brew install rbenv
brew install ruby-build
rbenv install 1.9.3-p392
rbenv rehash
@rickbutton
rickbutton / chef-solo-bootstrap.sh
Created April 7, 2012 20:12
chef-solo bootstrap
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev unzip
cd /tmp
sudo wget http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.zip
sudo unzip ruby-1.9.3-p125.zip
cd ruby-1.9.3-p125/
sudo ./configure --prefix=/usr/local
sudo make
sudo make install
sudo apt-get install -y ruby1.8-dev