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
# Standard HTML site using Git plugin with Github.com | |
website.com { | |
tls email@website.com | |
gzip | |
root /srv/website.com/public | |
ext .html .htm | |
git { | |
repo git@github.com:dddd/Amber.git | |
key /srv/website.com/.ssh/id_rsa | |
hook /webhook github_idkey # set github request type to json |
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
import random | |
heads = 0 | |
tails = 0 | |
def flipResult(): | |
random_num = random.random() | |
rounded = round(random_num) | |
if rounded == 0: | |
return 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
################################################################################# | |
# | |
# Bash Configurations and Aliases for OS X | |
# | |
# Latest: https://gist.github.com/00000 | |
# | |
################################################################################ | |
################################################################################ | |
# Terminal |
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 arr = [1,2,3,5,8,10,11,12,15] | |
function bookIndex(arr) { | |
var temp = []; | |
for (var i = 0; i < arr.length; i++) { | |
if (arr[i]+1 == arr[i+1]) { | |
var start = arr[i]; | |
while (arr[i]+1 == arr[i+1]) { | |
i++; | |
} |
NewerOlder