unc0ver: ~13.5 https://unc0ver.dev/
checkra1n: ~13 (14 & A10+ experimental) https://checkra.in/
- download checkra
- connect your iPhone via USB
- start JB on checkra
/* | |
some and any keywords for generic protocols in Swift 5.7 | |
https://swiftbysundell.com/articles/referencing-generic-protocols-with-some-and-any-keywords/ | |
*/ | |
protocol Item { } | |
struct User { | |
let name: String | |
var isAnonymous: Bool { | |
return name.isEmpty |
const token = 'xoxb-xxx' | |
function main() { | |
var message = 'Hi :)' | |
// send direct message | |
var userID = 'UX...' | |
sendMessage(userID, message) | |
// send group direct message |
// generate pipeline issue message for Slack | |
// e.g. (all issue messages are linked) | |
// | |
// 📝 *TODO* | |
// prepare for dinner | |
// write blog | |
// | |
// 📝 *In Review* | |
// buy a new desk |
# iOS | |
# use libmobiledevice | |
# https://github.com/libimobiledevice/libimobiledevice | |
# https://formulae.brew.sh/formula/libimobiledevice | |
# save as 'ios_20200401_11.09.21.png' | |
$ date +%Y%m%d_%H.%M.%S | xargs -I{} sh -c 'idevicescreenshot /path/to/screenshot/ios_{}.png' | |
# Android |
unc0ver: ~13.5 https://unc0ver.dev/
checkra1n: ~13 (14 & A10+ experimental) https://checkra.in/
import UIKit | |
class ViewController: UIViewController, UITextFieldDelegate { | |
@IBOutlet weak var textField: UITextField! | |
@IBOutlet weak var label: UILabel! | |
enum Placeholder { | |
case normal, empty |
"Settings | |
let scrolltep = 60 | |
let fullpagescrollpercent = 100 | |
"set nohud | |
set autohidecursor | |
"set noinsertmappings | |
set nosmoothscroll | |
let blacklists = ["https://app.gather.town/*", "https://editor.note.com/*", "https://www.notion.so/*", "https://drive.mindmup.com/*", "https://app.clubhouse.io/*", "https://app.clickup.com/*", "https://app.classdo.com/*", "https://*.typeform.com/*", "https://magic-pod.com/*", "https://miro.com/app/*", "https://web.omnifocus.com/*", "https://developer.apple.com/*", "https://*.youtube.com/*", "https://*.1password.com", "https://*.slack.com/*", "https://kanbanflow.com/*", "https://trello.com/*", "https://workflowy.com/*", "https://app.zeplin.io/*", "https://*.google.com/*", "https://*classdo.*/*"] | |
let mapleader = "," | |
"let locale = "jp" |
package main | |
import ( | |
"code.google.com/p/go-tour/wc" | |
"strings" | |
) | |
func WordCount(s string) map[string]int { | |
seperate := strings.Split(s, " ") | |
result := make(map[string]int) |
package main | |
import ( | |
"fmt" | |
"math/cmplx" | |
) | |
func Cbrt(x complex128) complex128 { | |
var z complex128 = 1.0 | |
for { |
static { | |
Security.insertProviderAt(new org.spongycastle.jce.provider.BouncyCastleProvider(), 1); | |
} | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |