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
#!/usr/bin/env bash | |
# No argument version (any argument prints help) | |
if [ $# -gt 0 ] ; then | |
echo "$(echo $0 | sed "s;$HOME;~;")" | |
echo "Help command output" | |
exit 0 | |
fi |
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
#!/usr/bin/env python | |
''' | |
Set final grades | |
Henry Schreiner | |
Version 1.5 | |
This requires Anaconda, or the following: | |
* Python 2.7 or 3.3+ | |
* Numpy |
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
#!/usr/bin/env python | |
import socket | |
import pickle | |
import time | |
TCP_IP_PORT = '192.168.1.8', 5005 | |
BUFFER_SIZE = 1024 | |
RMSG = "recvd." |
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
# perform actions on a selected block of text | |
import editor | |
import ui | |
sel = editor.get_selection() | |
text = editor.get_text() | |
if sel[0]-sel[1]: | |
text = text[sel[0]:sel[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
# coding: utf-8 | |
import ui | |
import os | |
import console | |
class MyTableViewDataSource (object): | |
sel = [None] | |
def __init__(self, base_dir = '.'): |
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 ui | |
import console | |
#from DetGUI.connection import Detector | |
sz = ui.get_screen_size() | |
banner = 108 | |
class MyTextFieldDelegate (object): | |
def __init__(self,but): | |
self.but = but |
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
# Install SimPy | |
import urllib | |
import tarfile | |
import shutil | |
import console | |
import os | |
name = 'sympy' | |
version = '0.7.5' |
NewerOlder