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
/** | |
* Tests the duplicate file finder | |
* For RIT 4002-219 | |
* Author: David Gay | |
* Spring 2012 | |
* CODE WRITTEN FOR USE ON A LINUX FILESYSTEM | |
*/ | |
public class TestDups | |
{ |
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
text_lines = [] | |
for dialog_object in gametext["PLACES"]["start"]["ACTIONS"]["first_visit"]["DIALOG"]: | |
for text in dialog_object["TEXT"]: | |
text_lines.append(text) | |
txt = text_lines[0] | |
txt2 = text_lines[1] | |
txt3 = text_lines[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
Any questions about this interaction, or any requests for clarification can be directed to oddshocks. | |
14:13:29 < oddshocks> I am about to caption stuff that SJ says | |
14:13:37 < francis-game> okay | |
14:13:37 < oddshocks> as per his request | |
14:13:45 < francis-game> thanks | |
14:13:48 < oddshocks> No problem! | |
14:14:08 < oddshocks> Good thing that we have a lot of activity in the Google Doc | |
14:14:32 < oddshocks> At the moment, we have 5 hours worth of stubs. Links to shit | |
people have written |
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
Traceback (most recent call last): | |
File "/usr/bin/pcreate", line 9, in <module> | |
load_entry_point('pyramid==1.3.2', 'console_scripts', 'pcreate')() | |
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 337, in load_entry_point | |
return get_distribution(dist).load_entry_point(group, name) | |
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2279, in load_entry_point | |
return ep.load() | |
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1989, in load | |
entry = __import__(self.module_name, globals(),globals(), ['__name__']) | |
File "/usr/lib/python2.7/site-packages/pyramid-1.3.2-py2.7.egg/pyramid/__init__.py", line 1, in <module> |
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
""" Run like: $ python coder-shell.py | |
First you need to: $ pip install coderwall requests fabulous | |
""" | |
from coderwall import CoderWall | |
import fabulous.image | |
import fabulous.text | |
import os | |
import requests |
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
stack_exchange_api = 'https://api.stackexchange.com/2.1' | |
request_url = "{0}/users/{1}/associated".format( | |
stack_exchange_api, usernames['stack_exchange']) | |
api_request = urllib2.Request( | |
request_url, | |
headers={"Accept": "application/json"}) | |
api_response = urllib2.urlopen(api_request) | |
se_accounts_json = json.load(api_response) | |
se_answers = 0 # Number of answers given on SE sites | |
pprint.pprint(se_accounts_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
stack_exchange_api = 'https://api.stackexchange.com/2.1' | |
request_url = "{0}/users/{1}/associated".format( | |
stack_exchange_api, usernames['stack_exchange']) | |
api_request = urllib2.Request( | |
request_url, | |
headers={"Accept": "application/json"}) | |
api_z_response = urllib2.urlopen(api_request) | |
from zlib import decompress, MAX_WBITS | |
api_response = decompress(api_z_response.read(), 16 + MAX_WBITS) | |
se_accounts_json = json.loads(api_response) |
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 handle_coderwall(request, username): | |
""" | |
Get data from CoderWall. | |
""" | |
from coderwall import CoderWall | |
try: | |
cwc = CoderWall(username) | |
return { | |
'endorsements': cwc.endorsements, |
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/sh | |
# Backup file and directory to local folder | |
cp -r ~/.task ~/Dropbox/Backup/tasks/ | |
cp ~/.taskrc ~/Dropbox/Backup/tasks/.taskrc | |
# Backup file and directory to remote location | |
rsync -r ~/.task yacht:.task | |
rsync ~/.taskrc yacht:.taskrc |
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
<div class="container_12"> | |
<div class="grid_6"> | |
<p>This content is in a half-container width column!<p> | |
</div> | |
<div class="grid_6"> | |
<p>So is this! Two even columns!</p> | |
</div> | |
<div class="clear"></div> <!-- Put this between rows of content. --> |
OlderNewer