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 time | |
def how_long(func, *args): | |
t0 = time() | |
result = func(*args) | |
t1 = time() | |
return result, t1 - t0 |
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
#!/bin/bash | |
sleep 10 | |
/usr/bin/screen -dmS miner bfgminer -S rockminer:all --set rockminer:clock=290 -c /opt/minepeon/etc/miner.conf --stratum-port 8335 --http-port 8332 |
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
/* | |
Notes: | |
Possible Questions: | |
1) Is there default behavior needed | |
2) Persistant data a required feature...IE retain past scans for comparison | |
3) Identify any of the largest sentances or just show length? | |
Testing/Erros to be handled | |
-input files doesnt not exist |
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
| Tables | Are | Cool | | |
| ------------- |:-------------:| -----:| | |
| col 3 is | right-aligned | $1600 | | |
| col 2 is | centered | $12 | | |
| zebra stripes | are neat | $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
<link rel="import" href="../topeka-elements/category-icons.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
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
# ---------- | |
# User Instructions: | |
# | |
# Define a function, search() that returns a list | |
# in the form of [optimal path length, x, y]. For | |
# the grid shown below, your function should output | |
# [11, 4, 5]. | |
# | |
# If there is no valid path from the start point | |
# to the goal, your function should return the string |
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
{ | |
"name": "gw2 example", | |
"version": "0.1", | |
"description": "this is an example of how people could publish configurations", | |
"author": "hortinstein", | |
"repository": { | |
"type": "gist", | |
"url": "https://gist.github.com/hortinstein/b85e4705bd432359bed5" | |
}, | |
"commands: { |
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
a0:02:dc:52:80:ce |
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 urllib | |
opener = urllib.FancyURLopener({}) | |
SHITASSTITS = "46059" | |
f = opener.open("http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=" + SHITASSTITS) | |
s = f.read() | |
while s[0:3] == "and": | |
f = opener.open("http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=" + SHITASSTITS) | |
s = f.read() | |
SHITASSTITS = s[24:] | |
print SHITASSTITS |
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 re | |
f = open('equality.html','r') | |
char = f.read() # read by character | |
asd = re.findall('[^A-Z][A-Z][A-Z][A-Z][a-z][A-Z][A-Z][A-Z][^A-Z]', char) | |
print asd |
OlderNewer