Skip to content

Instantly share code, notes, and snippets.

'''
Simulates a console call to >python -m module|file [args]
Used for running standard library python modules such as:
SimpleHTTPServer, unittest and .py files.
[&] will run the module/file in the background
usage:
python -m module_name [args]
python python_file.py [args]
@briarfox
briarfox / python_run.py
Last active June 14, 2018 03:35
Simulates python -m module_name in Pythonista iOS
'''
python_run.py
Simulates a console call to >python -m module|file [args]
Used for running standard library python modules such as:
SimpleHTTPServer, unittest and .py files.
usage:
module_name [args]
path/python_file.py [args]
@briarfox
briarfox / get-ShellistaExt.py
Created June 5, 2014 19:49
get-ShellistaExt.py
'''get-ShellistaExt'''
import urllib2,os,sys,zipfile
def main(line):
'''Gets a file from a link.'''
args = [line,]
if args == None:
return
@briarfox
briarfox / Main.lua
Created July 16, 2013 22:33
ImageToProject AutoInstall
--ImageToProject Single Install
--Installer created by @Briarfox
--- This will pull the ImageToProject project into Codea for you
-- Instructions:
-- * Create a new project in Codea named ImageToProject If you chose another name please change the variable Below
--This is case sensitive
ProjectName = "ImageToProject"
-- * Paste this into the Main (not from the raw view, as iSafari will escape special characters)
-- * Make sure there is a single tab in the project
@briarfox
briarfox / 1aTabOrder
Created July 16, 2013 22:30
ImageToProject Release v0.0.2 -Read/Write Projects from Images!
ImageToProject Tab Order Version: 0.0.2
------------------------------
This file should not be included in the Codea project.
#Main
#ByteImage
---------------------------------------------------------
-- Include --
-- Dynamically loads a codea tab or project into and --
-- isolated enviroment or _G --
-- Written by XanDDemoX --
-- Version 1.01 --
---------------------------------------------------------
include = {}
-- create meta table
local includemeta = {}
@briarfox
briarfox / Main.lua
Last active December 18, 2015 17:09
Particular Particle AutoInstall
--Particular Particle Single Install
--Installer created by @Briarfox
--- This will pull the Particular Particle project into Codea for you
-- Instructions:
-- * Create a new project in Codea named Particular Particle If you chose another name please change the variable Below
--This is case sensitive
ProjectName = "Particular Particle"
-- * Paste this into the Main (not from the raw view, as iSafari will escape special characters)
-- * Make sure there is a single tab in the project
-- * Run and wait for success!
@briarfox
briarfox / 1aTabOrder
Created June 19, 2013 18:40
Particular Particles Release v2.1.9 -Particle Effects Editor.
Particular Particles Tab Order Version: 2.1.9
------------------------------
This file should not be included in the Codea project.
#Main
#Particular
#SavedOutput
#ChangeLog
@briarfox
briarfox / Main.lua
Created June 17, 2013 20:43
Noob Lander AutoInstall
--Noob Lander Single Install
--Installer created by @Briarfox
--- This will pull the Noob Lander project into Codea for you
-- Instructions:
-- * Create a new project in Codea named Noob Lander If you chose another name please change the variable Below
--This is case sensitive
ProjectName = "Noob Lander"
-- * Paste this into the Main (not from the raw view, as iSafari will escape special characters)
-- * Make sure there is a single tab in the project
@briarfox
briarfox / Main.lua
Created June 12, 2013 22:00
Matrix AutoInstall
--Matrix Single Install
--Installer created by @Briarfox
--- This will pull the Matrix project into Codea for you
-- Instructions:
-- * Create a new project in Codea named Matrix If you chose another name please change the variable Below
--This is case sensitive
ProjectName = "Matrix"
-- * Paste this into the Main (not from the raw view, as iSafari will escape special characters)
-- * Make sure there is a single tab in the project