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
| from objc_util import * | |
| from ctypes import * | |
| from contextlib import contextmanager | |
| import ui | |
| import numpy as np | |
| ''' define ctypes signatures''' | |
| IOSurfaceCreate=c.IOSurfaceCreate | |
| IOSurfaceCreate.argtypes=[c_void_p] | |
| IOSurfaceCreate.restype=c_void_p |
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
| <?php | |
| require_once('vendor/autoload.php'); | |
| use BitWasp\Bitcoin\Bitcoin; | |
| use BitWasp\Bitcoin\Address\AddressCreator; | |
| use BitWasp\Bitcoin\Key\Deterministic\HdPrefix\GlobalPrefixConfig; | |
| use BitWasp\Bitcoin\Key\Deterministic\HdPrefix\NetworkConfig; | |
| use BitWasp\Bitcoin\Network\Slip132\BitcoinRegistry; | |
| use BitWasp\Bitcoin\Key\Deterministic\Slip132\Slip132; |
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
| // iOS ロックスクリーン Notification | |
| #define NotifName_LockComplete @"com.apple.springboard.lockcomplete" | |
| #define NotifName_LockState @"com.apple.springboard.lockstate" | |
| //call back | |
| static void lockStatusChanged(CFNotificationCenterRef center, void *observer, CFStringRef name_cf, const void *object, CFDictionaryRef userInfo){ | |
| NSString *name = (__bridge NSString*)name_cf; | |
| if ([name isEqualToString:NotifName_LockComplete]) { |
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/python | |
| import glob | |
| import os | |
| import sys | |
| from PIL import Image | |
| EXTS = 'jpg', 'jpeg', 'JPG', 'JPEG', 'gif', 'GIF', 'png', 'PNG' |