This file contains hidden or 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 hidden or 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 argparse | |
import os | |
DIR = os.path.realpath(__file__) | |
parser = argparse.ArgumentParser(description='Send files to web server') | |
parser.add_argument('-n', '--nochange', | |
help='make a dry run, don\'t send anything', |
This file contains hidden or 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 | |
# This script should be named (or symbolically linked) as git-all so that | |
# it can be run as a git command (if it is in the path). The repo location should | |
# be set in REPOLOC. Can be relative if this script is also in a repo! | |
# Standard bash stuff to get the current directory | |
unset CDPATH | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | |
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" |
This file contains hidden or 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 | |
from PyQt4 import QtCore, QtGui, uic | |
import sys | |
import os | |
Slot = QtCore.pyqtSlot | |
Signal = QtCore.pyqtSignal | |
LoadUI = uic.loadUi | |
if getattr(sys, 'frozen', None): |
This file contains hidden or 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' |
This file contains hidden or 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 hidden or 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 hidden or 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 -*- | |
""" | |
Created on Sat Jul 12 09:33:29 2014 | |
@author: henryiii | |
Added improvents by JonB (swipes), techteej (design), LawAbidingCactus (size) | |
""" | |
import console, random |
This file contains hidden or 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 hidden or 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 -*- | |
""" | |
Created on Sun Jul 20 17:27:33 2014 | |
@author: henryiii | |
""" | |
# http://en.wikipedia.org/wiki/Playing_cards_in_Unicode | |
from __future__ import unicode_literals, division |
OlderNewer