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 asyncio | |
import threading | |
import urllib.parse | |
import ssl | |
import sys | |
from aioquic.asyncio.protocol import QuicConnectionProtocol | |
from aioquic.asyncio import connect | |
from aioquic.quic.configuration import QuicConfiguration | |
from aioquic.quic.events import HandshakeCompleted, PingAcknowledged |
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/python3 | |
try: | |
import pylibftdi | |
except ImportError: | |
import os | |
os.system("brew install libftdi libusb; brew link libusb; pip3 install pylibftdi") | |
print("Dependencies installed.\n") | |
''' |
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
function awsudo { | |
osascript -e "do shell script \"$*\" with administrator privileges" | |
} |
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 UIKit | |
import Foundation | |
import PlaygroundSupport | |
UIColor(red: 1.2, green: -0.75, blue: 2, alpha: 1) // Using the extended sRGB color values introduced in iOS 10 to display a wider gamut (P3 in this case) | |
extension UIColor { | |
convenience init(displayP3Hue hue: CGFloat, saturation: CGFloat, brightness: CGFloat, alpha: CGFloat = 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
############################### | |
# Script made by @ivanmorenoz with a small secure correction from @filippoclaudi # | |
############################### | |
# Description: this script uses Pythonista Objc Bridging for unlocking the PDF using PDFKit | |
from objc_util import ObjCClass, nsurl | |
from appex import get_file_paths, finish, is_running_extension | |
from os import remove, path | |
from console import alert, input_alert, quicklook |
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
// Swift Playgrounds Beta 1.0 | |
import AVFoundation | |
import AVKit | |
import Accelerate | |
import Accounts | |
import AudioToolbox | |
import AudioUnit | |
import CFNetwork | |
import CoreAudio | |
import CoreAudioKit |
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
#Pythonista needed | |
import console | |
console.open_in('/System/Library/Caches/com.apple.kernelcaches/kernelcache') | |
print('Done!') |
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 | |
from objutil import * | |
import ui | |
colorpicker = ObjCClass('OMColorPickerViewController').new().autorelease() | |
clview = colorpicker.view() | |
clview.frame = CGRect((0, 0), (512, 512)) | |
view = presentUIView(clview, 'Color Picker', 'sheet') | |
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 | |
from objc_util import NSBundle, ObjCClass, on_main_thread | |
NSBundle.bundleWithPath_('/System/Library/Frameworks/MediaPlayer.framework').load() | |
MPVolumeView = ObjCClass('MPVolumeView') | |
volume_view = MPVolumeView.new().autorelease() | |
@on_main_thread | |
def set_system_volume(value): | |
volume_view.subviews()[0].value = value |
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 | |
from objc_util import * | |
import ui | |
def btnaction(sender): | |
print 'hellah' | |
tabvc=ObjCClass('UIApplication').sharedApplication().keyWindow().rootViewController().childViewControllers()[1] | |
toolbar=tabvc.toolbar() |
NewerOlder