This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################### | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |