Skip to content

Instantly share code, notes, and snippets.

View teknogeek's full-sized avatar

Joel Margolis teknogeek

View GitHub Profile
#!/usr/bin/env ruby
require 'open-uri'
require 'pathname'
require 'json'
def strip_hash(f)
ext = f.extname
if ext.include?("?")
@teknogeek
teknogeek / SnapchatMemories.md
Created July 8, 2016 15:45 — forked from NSExceptional/SnapchatMemories.md
Basic documentation on the new Memories API

Alrighty, so Memories:

  • First uploaded to storage.googleapis.com/snallery-m/a1ca9af0-be6b-4874-a6a1-8e30823ae0cf/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx with the following query parameters:

  • GoogleAccessId: GOOGMR536EIHHSJL2KAK

  • Expires: 14679XXXXX

  • Signature: base64 string

The thumbnail is uploaded to storage.googleapis.com/snallery-t/a1ca9af0-be6b-4874-a6a1-8e30823ae0cf/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy with the same queries. HTTP method is PUT for both

@teknogeek
teknogeek / robin-enhancement-suite.js
Last active April 3, 2016 00:21 — forked from sprngr/robin-enhancement-suite.js
Tampermonkey script to enhance the experience around Robin (Reddit's April Fool's prank/social experiment), enhanced further by teknogeek
// ==UserScript==
// @name Robin Enhancement Suite
// @namespace http://github.com/teknogeek
// @version 0.6.1
// @description Trying to make Robin more awesome (revised by teknogeek)
// @author teknogeek
// @credits sprngr
// @match https://www.reddit.com/robin*
// @grant none
// ==/UserScript==
@teknogeek
teknogeek / The Technical Interview Cheat Sheet.md
Last active May 11, 2018 06:01 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
package crappyBird;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URL;