Skip to content

Instantly share code, notes, and snippets.

View alejandro-isaza's full-sized avatar

Alejandro Isaza alejandro-isaza

View GitHub Profile
// Run any SwiftUI view as a Mac app.
import Cocoa
import SwiftUI
NSApplication.shared.run {
VStack {
Text("Hello, World")
.padding()
.background(Capsule().fill(Color.blue))
@hewigovens
hewigovens / main.go
Last active December 5, 2019 06:23
call wallet core from go on macOS
package main
// #cgo CFLAGS: -I${SRCDIR}/wallet-core/include
// #cgo LDFLAGS: -L${SRCDIR}/wallet-core/build/ios -lTrezorCrypto -lTrustWalletCore -lprotobuf -lc++
// #include <TrustWalletCore/TWHDWallet.h>
// #include <TrustWalletCore/TWString.h>
import "C"
import "fmt"
@steventroughtonsmith
steventroughtonsmith / gist:62f0b14d5ef532a4be2e2529187c100d
Created November 18, 2016 17:28
iOS Simulator fullscreen enabler
call ((NSWindow *)[(NSArray *)[[NSApplication sharedApplication] windows] lastObject]).collectionBehavior = 1<<7|1<<8|1<<11
@alejandro-isaza
alejandro-isaza / PrintToFile.py
Created July 10, 2015 18:33
lldb command to print an array to a file in disk
#!/usr/bin/python
import lldb
import os
import re
import subprocess
import fblldbbase as fb
def lldbcommands():
return [ PrintToFile() ]