Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View eligundry's full-sized avatar
🧥
3 junior developers stacked upon each other in a trench coat

Eli Gundry eligundry

🧥
3 junior developers stacked upon each other in a trench coat
View GitHub Profile
@eligundry
eligundry / beer-design.md
Created December 22, 2016 15:12
Top 7 Beer Designs

Top 10 Beer Designs

1. Genese Cream Ale

Classic 3 color design. They actually switched to this in the past 5 years, before they had this Budwiser looking can that I wasn't into.

Genese Cream Can

2. Miller High Life Bottle

@eligundry
eligundry / input.js
Created February 19, 2017 00:07
JS Unicode Splay
unicode_str = '🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏🀐🀑🀒🀓🀔🀕🀖🀗🀘🀙🀚🀛🀜🀝🀞🀟🀠🀡🀢'
splat = [...unicode_str];

This year, I discovered the magic that is Spotify's discover tab. I found so many great albums that I had no idea existed. As a result, many of the best albums I listened to this year didn't come out in 2016, so these are the best albums I listened to this year.

  1. Nxworries - Yes Lawd

    Anderson .Paak probably had the best 2016 of pretty much anyone on the planet (seriously, find me someone who had a better 2016). Malibu was hot, every single one of his features was on point, and dude just seemed like he was

@eligundry
eligundry / keybase.md
Created September 28, 2016 04:24
keybase.md

Keybase proof

I hereby claim:

  • I am eligundry on github.
  • I am eligundry (https://keybase.io/eligundry) on keybase.
  • I have a public key whose fingerprint is B05C 707D 991F 1E5F FCCF FDC2 6BA2 E3B5 B281 BE37

To claim this, I am signing this object:

@eligundry
eligundry / gist:9e65124bcda3cc049f89
Last active August 8, 2016 15:53
cVim Settings
set noautofocus
let barposition = "bottom"
let blacklists = ["https://mail.google.com/*", "*://*.reddit.com/*", "https://twitter.com/*", "https://news.ycombinator.com/news/*", "https://onedrive.live.com/*", "https://inbox.google.com/*", "*://*evernote.com/*", "https://cloudpebble.net/*"]
let hintcharacters = "asdfghjkl"
let scrollstep = 150
let mapleader = ","
map <Leader>r reloadTabUncached
@eligundry
eligundry / c.cpp
Created October 15, 2013 01:37 — forked from anonymous/c.cpp
/*
* =====================================================================================
*
* Filename: c.cpp
*
* Description: Our attempt at the 'Give me an E' problem
*
* Version: 1.0
* Created: 10/14/2013 06:14:39 PM
* Revision: none
@eligundry
eligundry / sample.py
Last active December 1, 2015 21:54
Python Correctly Trim Decimals
import decimal
def trim_decimal(value):
if isinstance(value, (decimal.Decimal, float)):
# I think format was something Django specific, because I don't know where it came from or what it does.
value = format(value, 'f')
s = str(value)
return s.rstrip('0').rstrip('.') if '.' in s else s
@eligundry
eligundry / alternate.html
Created June 13, 2012 19:49
Better way of attaching event listeners
<ul>
<li id="item-1">Item 1</li>
<li id="item-2">Item 2</li>
<li id="item-3">Item 3</li>
</ul>
<script type="text/javascript">
$('ul').on('click', 'li', function(e) {
alert( "You clicked " + $(this).text() );
});
#include "battleship.h"
int main()
{
ship battleships[FLEET_SIZE];
location target;
deploy(battleships);
printFleet(battleships);
@eligundry
eligundry / lottery.cpp
Created March 2, 2012 21:12
Lottery Lap
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
void initalize(int array[], int size, int val);
int check(int array[], int size, int val);
void draw(int array[], int size);
void entry(int& guess);