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 scene, ui | |
| shadercode_text = ''' | |
| // Modified Mandelbrot code from shadertoy.com | |
| // https://www.shadertoy.com/view/XdtSRN | |
| // used make_color function from ccc (pythonista forum) | |
| // https://github.com/cclauss/fractal_hacks/blob/master/cc_mandelbrot.py | |
| precision highp float; | |
| varying vec2 v_tex_coord; |
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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>미션</title> | |
| <style> | |
| * { | |
| margin:0; | |
| padding:0; |
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
| /* Arduino Synth from | |
| https://janostman.wordpress.com/2016/01/15/how-to-build-your-very-own-string-synth/ | |
| */ | |
| #include <avr/interrupt.h> | |
| #include <avr/io.h> | |
| #include <avr/pgmspace.h> | |
| #ifndef cbi | |
| #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) | |
| #endif | |
| #ifndef sbi |
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 | |
| # File Transfer for Pythonista | |
| # ============================ | |
| # This script allows you to transfer Python files from and to Pythonista via | |
| # local Wifi. It starts a basic HTTP server that you can access as a web page | |
| # from your browser. When you upload a file that already exists, it is renamed | |
| # automatically. From Pythonista's settings, you can add this script to the | |
| # actions menu of the editor for quick access. | |
| # | |
| # Get Pythonista for iOS here: |
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 | |
| from UIKit import * | |
| from Foundation import * | |
| from ctypes import * | |
| libobjc = CDLL('/usr/lib/libobjc.dylib') | |
| QLPreviewController = ObjCClass('QLPreviewController') |
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 | |
| from objc_util import * | |
| import console | |
| import urllib | |
| import dialogs | |
| WKWebView = ObjCClass('WKWebView') | |
| UIViewController = ObjCClass('UIViewController') | |
| UIBarButtonItem = ObjCClass('UIBarButtonItem') | |
| NSURLRequest = ObjCClass('NSURLRequest') |
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 | |
| from objc_util import * | |
| NSAKDeserializer = ObjCClass('NSAKDeserializer') | |
| NSAKDeserializerStream = ObjCClass('NSAKDeserializerStream') | |
| NSAKSerializer = ObjCClass('NSAKSerializer') | |
| NSAKSerializerStream = ObjCClass('NSAKSerializerStream') | |
| NSAbstractLayoutGuide = ObjCClass('NSAbstractLayoutGuide') | |
| NSAddressCheckingResult = ObjCClass('NSAddressCheckingResult') | |
| NSAffineTransform = ObjCClass('NSAffineTransform') |
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 | |
| from objc_util import * | |
| NSAKDeserializer = ObjCClass('NSAKDeserializer') | |
| NSAKDeserializerStream = ObjCClass('NSAKDeserializerStream') | |
| NSAKSerializer = ObjCClass('NSAKSerializer') | |
| NSAKSerializerStream = ObjCClass('NSAKSerializerStream') | |
| NSAbstractLayoutGuide = ObjCClass('NSAbstractLayoutGuide') | |
| NSAddressCheckingResult = ObjCClass('NSAddressCheckingResult') | |
| NSAffineTransform = ObjCClass('NSAffineTransform') |
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
| # Retrieved from https://gist.githubusercontent.com/omz/9882a00abf59c6009fa4/raw/139afad596c6d46f2f104b16120eefbb36e9960c/Audio%2520Recorder.py on Sat 26-Dec-2015 07:22:53 | |
| # Olaf, 26 Dec 2015, updated to use objc_util instead of ctypes; also removed seemingly superfluous AVAudioSession | |
| import objc_util, os | |
| def main(): | |
| NSMutableDictionary = objc_util.ObjCClass('NSMutableDictionary') | |
| settings = NSMutableDictionary.dictionary() | |
| kAudioFormatMPEG4AAC = 1633772320 | |
| settings.setObject_forKey_(kAudioFormatMPEG4AAC, 'AVFormatIDKey') |
NewerOlder