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
PING plymouthed.org-chqbbwpjgc.dynamic-m.com (68.34.121.31) 56(84) bytes of data. | |
64 bytes from c-68-34-121-31.hsd1.mi.comcast.net (68.34.121.31): icmp_seq=1 ttl=59 time=19.7 ms | |
64 bytes from c-68-34-121-31.hsd1.mi.comcast.net (68.34.121.31): icmp_seq=2 ttl=59 time=21.3 ms | |
64 bytes from c-68-34-121-31.hsd1.mi.comcast.net (68.34.121.31): icmp_seq=3 ttl=59 time=23.9 ms | |
64 bytes from c-68-34-121-31.hsd1.mi.comcast.net (68.34.121.31): icmp_seq=4 ttl=59 time=16.1 ms | |
64 bytes from c-68-34-121-31.hsd1.mi.comcast.net (68.34.121.31): icmp_seq=5 ttl=59 time=14.7 ms | |
64 bytes from c-68-34-121-31.hsd1.mi.comcast.net (68.34.121.31): icmp_seq=6 ttl=59 time=19.6 ms | |
64 bytes from c-68-34-121-31.hsd1.mi.comcast.net (68.34.121.31): icmp_seq=7 ttl=59 time=19.6 ms | |
64 bytes from c-68-34-121-31.hsd1.mi.comcast.net (68.34.121.31): icmp_seq=8 ttl=59 time=21.1 ms | |
64 bytes from c-68-34-121-31.hsd1.mi.comcast.net (68.34.121.31): icmp_seq=9 ttl=59 time=15.6 ms |
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
total 124 | |
drwxrwxrwt. 14 root root 53248 Apr 11 17:05 . | |
dr-xr-xr-x. 28 root root 4096 Apr 11 17:00 .. | |
drwxrwx---. 3 root root 4096 Sep 23 2014 asamba | |
drwx------. 2 root root 4096 Apr 11 17:03 .esd-0 | |
-rwxr-xr-x. 1 root root 4 Apr 11 17:01 gates.lod | |
srwxr-xr-x. 1 root root 0 Jan 13 2015 gnome-system-monitor.root.3228057229 | |
drwxr-xr-x. 2 root root 4096 Apr 11 17:01 hsperfdata_root | |
-r--r--r--. 1 apache apache 491 Apr 11 14:00 .htaccess | |
drwxrwxrwt. 2 root root 4096 Apr 11 17:03 .ICE-unix |
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 json | |
import urllib2 | |
# Function to gather json data from blockchain address | |
def get_blockchain_json(address): | |
#API call to blockchain | |
url = "https://blockchain.info/address/"+ address +"?format=json" | |
# Open url and extract raw data; if error, set json_obj to None | |
try: | |
json_obj = urllib2.urlopen(url) |
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
def answer(numbers): | |
if isinstance(numbers, list): | |
loop = list(set(numbers)) | |
if len(loop) < 5000: | |
if len(loop) > 2: | |
if loop[0] == 0: | |
return len(loop) - 1 | |
elif len(loop) == 2: | |
return 2 | |
else: |
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
def answer(numbers): | |
loop = list(set(numbers)) | |
if len(loop) > 2: | |
if loop[0] == 0: | |
return len(loop) - 1 | |
else: | |
return 2 | |
assert (answer([1, 3, 0, 1]) == 2) |
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
def answer(numbers): | |
try: | |
startPosition = numbers.index(0) | |
except ValueError: | |
startPosition = numbers.index(min(numbers)) | |
loop = [] | |
nextPosition = startPosition + 1 | |
if len(numbers) <= 2: |
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
A pirate walks into a bar... ============================ You must hurry to | |
find Professor Boolean's secret lab. You fear it may be too late. Rumor has it | |
that one of the pirates in this tavern knows where it is. There's a whole row | |
of them seated at the bar. You start by talking to the pirate seated on the | |
left-most barstool. However, the pirate redirects you to another pirate. | |
Fine... you go to talk to that one. To your great annoyance, that pirate | |
redirects you to yet another pirate! And on and on it goes. Is there no end to | |
this madness? You notice each pirate has a number tattooed on his arm and | |
decide to ID each man by his number. Each pirate redirects to a different | |
pirate, other than himself. Because of this, it is guaranteed that you will |
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
def answer(numbers): | |
try: | |
startPosition = numbers.index(0) | |
except ValueError: | |
startPosition = numbers.index(min(numbers)) | |
loop = [] | |
backHome = False | |
nextPosition = startPosition + 1 |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" Let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' |
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
456 | |
789 |
NewerOlder