Skip to content

Instantly share code, notes, and snippets.

View ztoben's full-sized avatar
👾
Probably breaking something.

Zach Toben ztoben

👾
Probably breaking something.
View GitHub Profile
@ztoben
ztoben / client.js
Last active October 25, 2018 17:05
Fix connection issues in hangupsjs
// Generated by CoffeeScript 1.12.7
(function() {
var ABORT, ALIVE_WAIT, Auth, CLIENT_GET_CONVERSATION_RESPONSE, CLIENT_GET_ENTITY_BY_ID_RESPONSE, CLIENT_SYNC_ALL_NEW_EVENTS_RESPONSE, Channel, ChatReq, Client, ClientDeliveryMediumType, ClientNotificationLevel, CookieJar, DEFAULTS, EventEmitter, FileCookieStore, FocusStatus, IMAGE_UPLOAD_URL, Init, MessageActionType, MessageBuilder, MessageParser, None, OffTheRecordStatus, Q, TypingStatus, aliases, datetolong, fmterr, fs, log, plug, randomid, ref, ref1, rm, syspath, togoogtime, touch, wait,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
require('fnuc').expose(global);
FileCookieStore = require('toug
@ztoben
ztoben / merge_multiple_csv.md
Last active September 18, 2018 20:03
Merge multiple csvs with python

Merging two files:

import pandas as pd

input1 = input("File name (including path) 1: ")
csv_input = pd.read_csv(input1)
df = pd.DataFrame(csv_input)
input2 = input("File name (including path) 2: ")
csv_input2 = pd.read_csv(input2)
@ztoben
ztoben / cdn.md
Created September 13, 2018 18:26

Upload Images to GitHub's CDN

First, visit any repository on GitHub and click your way through to the issues page.

Create a new issue by clicking the button New Issue. You'll now see both a title and a description field. Drag-and-drop an image on to the description field. This will start the uploading process.

In our example below we're uploading an image of Marty McFly.

![Uploading marty-mcfly.jpg...]()
@ztoben
ztoben / keybase.md
Created June 20, 2018 13:22
Keybase proof

Keybase proof

I hereby claim:

  • I am ztoben on github.
  • I am ztoben (https://keybase.io/ztoben) on keybase.
  • I have a public key ASB8sF3qhKZqePeegeoHVwBTHSccXoaiwClRkF9EmVkTLgo

To claim this, I am signing this object: