Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| ipurcbasefc for tbe Sltbrars of | |
| be TUniverait? of {Toronto | |
| out of tbe proceeds of tbe fun& | |
| bequeatbefc bp | |
| # Ask user for text file to inspect | |
| filename = raw_input('Enter name of text file to inspect: ') | |
| # If the file is legit | |
| try: | |
| # Grab file | |
| f = open(filename) | |
| # Read file, make all lowercase | |
| file_string = f.read().lower() | |
| # Remove all non word characters | |
| import re |
| # only variables I'm allowed to store/modify | |
| i = 0 | |
| stored_string = "No input given!" | |
| # we'll need to be able to make random choices | |
| import random | |
| # solution | |
| while True: | |
| try: |
| <div id="comic"> | |
| <div class="panel"> | |
| <div class="caption"> | |
| One lazy morning | |
| </div> | |
| <div class="actor actor-left cueball"></div> | |
| <div class="actor actor-right cueball"></div> | |
| <div class="actor-text actor-left"> | |
| I had an idea today | |
| </div> |
| import sys | |
| readlines = sys.stdin.readlines() # reads input to list of strings for each line | |
| graph = { | |
| int(line.split()[0]): | |
| [int(item) for item in line.split()[1:]] | |
| for line in readlines | |
| } | |
| for vertex in graph: |
Finds a list of tuples, each of which is a triple (word1, word2, n) where word1 and word2 are Scrabble words of length 4, and n is a number such that word2 is a ROT-n cypher of word1.
You'll need your own Scrabble word list. I used SOWPODS, which I found here: Save it as words.txt to use the script.
| #!/bin/bash | |
| # | |
| # DESCRIPTION: | |
| # | |
| # Set the bash prompt according to: | |
| # * the active virtualenv | |
| # * the branch/status of the current git repository | |
| # * the return value of the previous command | |
| # * the fact you just came from Windows and are used to having newlines in | |
| # your prompts. |
| // found in root folder \ | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.Http; | |
| using System.Web.Mvc; | |
| using System.Web.Optimization; | |
| using System.Web.Routing; |