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
// | |
// ios_image_app_url_dump | |
// | |
// Created by Leptos on 2/19/19. | |
// Copyright © 2019 Leptos. All rights reserved. | |
// | |
/* compile with: | |
* $ clang -fobjc-arc -framework Foundation | |
*/ |
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 struct import unpack as up | |
import sys, os | |
dirs, files = None, None | |
def read_at(fp, off, len): | |
fp.seek(off) | |
return fp.read(len) | |
def read_u8(fp, off): |
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 Foundation; | |
@import CoreGraphics; | |
typedef struct __attribute__((objc_boxable)) CGPoint CGPoint; | |
typedef struct __attribute__((objc_boxable)) CGSize CGSize; | |
typedef struct __attribute__((objc_boxable)) CGRect CGRect; | |
typedef struct __attribute__((objc_boxable)) CGVector CGVector; | |
int main(int argc, const char * argv[]) { | |
@autoreleasepool { |
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
enum Coin { | |
case heads | |
case tails | |
} | |
var result: Coin? | |
// You can pattern match against it like an optional: | |
switch result { | |
case .heads?: print("heads") | |
case .tails?: print("tails") |
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/UIKit.h> | |
#include <dlfcn.h> | |
static const CFStringRef kMGDieID = CFSTR("DieId"); | |
typedef NS_ENUM(NSInteger, BKSInterfaceOrientation) { | |
BKSInterfaceOrientationPortrait = 1, | |
BKSInterfaceOrientationPortraitUpsideDown = 2, | |
BKSInterfaceOrientationLandscapeRight = 3, | |
BKSInterfaceOrientationLandscapeLeft = 4 |
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
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources | |
# Example: Github issue #23 |
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/env swift | |
// | |
// PrintBootCampESDInfo.swift | |
// | |
// Created by nuomi1 on 8/5/18. | |
// Copyright © 2018年 nuomi1. All rights reserved. | |
// | |
import Foundation |
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
// ==UserScript== | |
// @name Stack Overflow Real Dark | |
// @namespace http://github.com/TinyGiant/ | |
// @description Real dark styling for Stack Overflow and some Stack Exchange sites | |
// @author @TinyGiant | |
// @run-at document-start | |
// @version 1.0.1.1m | |
// @include /^https?:\/\/.*\.?stack(overflow|exchange).com/.*$/ | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name FindMyLastChatMsg | |
// @author Mogsdad | |
// @contributor Siguza | |
// @namespace chat.stackoverflow | |
// @description Find user's last posted message in a StackExchange chat room | |
// @include /^https?://chat.(stackoverflow|stackexchange|serverfault|superuser|askubuntu|stackapps)\.com/rooms/.*/ | |
// @version 1.0.0.0 | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Stack Overflow Real Dark | |
// @namespace http://github.com/TinyGiant/ | |
// @description Real dark styling for Stack Overflow and some Stack Exchange sites | |
// @author @TinyGiant | |
// @run-at document-start | |
// @version 1.0.0.6 | |
// @include /^https?:\/\/.*?(stackoverflow.com|stackexchange.com|superuser.com|serverfault.com|askubuntu.com|stackapps.com|mathoverflow.net)/.*$/ | |
// ==/UserScript== |
NewerOlder