Skip to content

Instantly share code, notes, and snippets.

@techvet
techvet / gist:47c7e98381a4a14c95e0
Created November 13, 2014 22:25
Lamdba shortcut
import string
file_in = open('alice_in_wonderland.dat', 'r')
empty_list = []
read_file = file_in.read()
normalized_string = read_file.translate(None, string.punctuation).lower().replace("\n", " ")
story_words = normalized_string.split()
unique_words = set(story_words)
for word in unique_words:
import random
count = 0
roll_totals = []
while count <= 10000:
dice_1 = random.randrange(1,7)
dice_2 = random.randrange(1,7)
total = dice_1 + dice_2
roll_totals.append(total)
count += 1
#!/bin/bash
ssh-keygen -t rsa -N "" -C travis -f ./travis_key
# i only tested the encrypting on Linux.
# on mac you need gsplit instead of split, but the rest should be mostly the same
#
# decryption works on both linux and mac travis-workers
echo "encrypt private"