Skip to content

Instantly share code, notes, and snippets.

View python.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.
[&] 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 Jun 14, 2018
Simulates python -m module_name in Pythonista iOS
View python_run.py
'''
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]
View 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 Jul 16, 2013
ImageToProject AutoInstall
View Main.lua
--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 Jul 16, 2013
ImageToProject Release v0.0.2 -Read/Write Projects from Images!
View 1aTabOrder
ImageToProject Tab Order Version: 0.0.2
------------------------------
This file should not be included in the Codea project.
#Main
#ByteImage
View Include.lua
---------------------------------------------------------
-- 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 Dec 18, 2015
Particular Particle AutoInstall
View Main.lua
--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 Jun 19, 2013
Particular Particles Release v2.1.9 -Particle Effects Editor.
View 1aTabOrder
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 Jun 17, 2013
Noob Lander AutoInstall
View Main.lua
--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 Jun 12, 2013
Matrix AutoInstall
View Main.lua
--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