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

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 / 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 / gist:e6b0c35519dc13813547
Created August 4, 2015 15:59
debian flipping out
╭─[~/Code/Croscon/bestday/application] [:develop*:e1865cb]
╰⤭ apt-cache policy dropbox [11:58]
\dropbox:
Installed: 2015.02.12
Candidate: 2015.02.12
Version table:
*** 2015.02.12 0
500 http://linux.dropbox.com/debian/ sid/main amd64 Packages
500 http://linux.dropbox.com/debian/ sid/main i386 Packages
100 /var/lib/dpkg/status
### 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 E537 5EBD 4507 36F2 358A 1619 ACC1 4C81 E28C A7AD
To claim this, I am signing this object:
@eligundry
eligundry / dmesg
Created January 2, 2015 20:05
wireless_issue
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.18.1-1-MANJARO (builduser@phil) (gcc version 4.9.2 (GCC) ) #1 SMP PREEMPT Thu Dec 18 03:38:20 UTC 2014
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-318-x86_64 root=UUID=94480cf3-56f6-483e-bc2a-5719acbc6216 rw quiet splash
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009e7ff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009e800-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000d2000-0x00000000000d3fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000dc000-0x00000000000fffff] reserved
@eligundry
eligundry / insanity-wolf-debugging.js
Created November 18, 2014 17:43
Shouldn't work, but fuck it.
try {
// something stupid
} catch (e) {
alert("YOU DONE FUCKED UP! " + e.message + "! TERMINATING!");
window.close();
}
@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