Skip to content

Instantly share code, notes, and snippets.

View devinmcginty's full-sized avatar
🐔
Birds are nice

Devin McGinty devinmcginty

🐔
Birds are nice
View GitHub Profile
@devinmcginty
devinmcginty / redshiftdevkit.exa
Created September 5, 2018 04:53
redshift dev kit
####################
# Redshift dev kit #
####################
# Comments start with an octothorpe (#). This is not valid EXA code, so remove
# these first.
#
# All of this code goes into one EXA.
# START
@devinmcginty
devinmcginty / bigcoolba.sh
Created March 2, 2018 19:42
Big Cool Bash Stuff For Tech Chat
# if this is an interactive shell
if [ "$PS1" ]; then
# vi mode
set -o vi
# But I still want some of the functionality of non-vi mode
bind -m vi-insert "\C-l":clear-screen
bind -m vi-insert "\C-p":history-search-backward
bind -m vi-insert "\C-f":history-search-forward
@devinmcginty
devinmcginty / .block
Last active August 10, 2016 17:30
the freshest of blocks
license: gpl-3.0
with open("trainInput.csv") as f:
for l in f:
line = l.strip('\n')
s1,v1, s2,v2, s3,v3, s4,v4, s5,v5 = line.split(',')
c1 = int(s1), int(v1)
c2 = int(s2), int(v2)
c3 = int(s3), int(v3)
c4 = int(s4), int(v4)
c5 = int(s5), int(v5)
sort = sorted([c1, c2, c3, c4, c5],
var logo = "http://i.imgur.com/hQbRaZW.png";
var can = "http://i.imgur.com/cpQ1LhA.jpg"; // I haven't done anything with this yet
// Google logos
$("img[src$='/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png']")
.attr("src", logo);
$("img[src$='/images/nav_logo231.png']")
.attr({"src": logo, "height": "37px", "width": "95px"})
.css("top", "0");