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
repeat | |
delay 1 | |
tell application "Finder" | |
name of every process whose visible is true and name is "Zoom.us" | |
if the result as Unicode text is "Zoom.us" as Unicode text then | |
tell application "System Events" to set visible of process "Discord" to false | |
end if | |
end tell | |
end repeat |
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 base64 | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives import serialization | |
from cryptography.hazmat.primitives.asymmetric import padding | |
from cryptography.hazmat.primitives import hashes | |
# Create Private Key | |
private_key = rsa.generate_private_key( |
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
var res: NSResponder? = self.nextResponder | |
print("---------------------------------------------") | |
while(true) | |
{ | |
if res == nil { break } | |
print(res) | |
res = res?.nextResponder | |
} | |
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 Cocoa | |
extension NSScreen { | |
public var displayID: CGDirectDisplayID { | |
get { | |
return deviceDescription[NSDeviceDescriptionKey("NSScreenNumber")] as! CGDirectDisplayID | |
} | |
} | |
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 Cocoa | |
let testKey: String = "TESTKEY" | |
let userDefaults: UserDefaults = UserDefaults.standard | |
let defaultCenter: NotificationCenter = NotificationCenter.default | |
// Remove Perferences & register default | |
userDefaults.removePersistentDomain(forName: Bundle.main.bundleIdentifier!) | |
userDefaults.register(defaults: [testKey : false]) |
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 Cocoa | |
let testKey: String = "TESTKEY" | |
let defaults: UserDefaults = UserDefaults.standard | |
// Remove Perferences & register default | |
defaults.removePersistentDomain(forName: Bundle.main.bundleIdentifier!) | |
defaults.register(defaults: [testKey : false]) | |
class testClass: NSObject { |
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 "AppDelegate.h" | |
@interface AppDelegate () | |
@property (weak) IBOutlet NSWindow *window; | |
@end | |
@implementation AppDelegate | |
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { | |
NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults]; |
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
<html> | |
<script type="text/javascript"> | |
var sougaku = 5000; | |
var kaesita = 0; | |
var risoku = 0; | |
for (var year=1; year <= 30; year++) { | |
for (var month=1; month <= 12; month++) { | |
kaesita = kaesita + 20; |
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
from boxsdk import (OAuth2, Client) | |
def get_file_property(file_id): | |
oauth2 = OAuth2( | |
client_id="<YOUR CLIENT_ID>", | |
client_secret="<YOUR CLIENT_SECRET>", | |
access_token="<YOUR ACCESS_TOKEN>", | |
) | |
client = Client(oauth2) |
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
""" | |
PC98 PiPo! | |
====================== | |
# setup and PiPo! | |
require pygame(sudo or virtualenv) | |
``` | |
$ pip install pygame | |
``` |
NewerOlder