Skip to content

Instantly share code, notes, and snippets.

View lukaskollmer's full-sized avatar
👻
procrastinating

Lukas Kollmer lukaskollmer

👻
procrastinating
View GitHub Profile
UITapGestureRecognizer = ObjCClass('UITapGestureRecognizer')
def action(_self, _cmd, sender):
tag = ObjCInstance(sender).view().tag()
asset = images[tag]
asset.get_image()
action.encoding = '@0@0:0@0'
from objc_util import *
UIColor = ObjCClass('UIColor')
UIViewController = ObjCClass('UIViewController')
@on_main_thread
def main():
color = UIColor.colorWithHexString_('#FFC0CB')
vc = UIViewController.new()
😀😬😁😂😃😄😅😆😇😉😊🙂🙃☺️😋😌😍😘😗😙😚😜😝😛🤑🤓😎🤗😏😶😐😑😒🙄🤔😳😞😟😠😡😔😕🙁☹️😣😖😫😩😤😮😱😨😰😯😦😧😢😥😪😓😭😵😲🤐😷🤒🤕😴💤💩😈👿👹👺💀👻👽🤖😺😸😹😻😼😽🙀😿😾🙌👏👋👍👎👊🏿✊✌👌✋👐💪🙏☝️👆👇👈👉🖕🖐🤘🖖✍💅👄👅👂👃🏼👁👀👤👥🗣👶👦👧👨👩👱👴👵👲👳👮👷💂🕵🎅👼👸👰🚶🏃💃👯👫👬👭🙇💁🙅🙆🙋🙎🙍💇💆💑👩‍❤️‍👩👨‍❤️‍👨💏👩‍❤️‍💋‍👩👨‍❤️‍💋‍👨👪👨‍👩‍👧👨‍👩‍👧‍👦👨‍👩‍👦‍👦👨‍👩‍👧‍👧👩‍👩‍👦👩‍👩‍👧👩‍👩‍👧‍👦👩‍👩‍👦‍👦👩‍👩‍👧‍👧👨‍👨‍👦👨‍👨‍👧👨‍👨‍👧‍👦👨‍👨‍👦‍👦👨‍👨‍👧‍👧👚👕👖👔👗👙👘💄💋👣👠👡👢👞👟👒🎩🎓👑⛑🎒👝👛👜💼👓🕶💍🌂🐶🐱🐭🐹🐰🐻🐼🐨🐯🦁🐮🐷🐽🐸🐙🐵🙈🙉🙊🐒🐔🐧🐦🐤🐣🐥🐺🐗🐴🦄🐝🐛🐌🐞🐜🕷🦂🦀🐍🐢🐠🐟🐡🐬🐳🐋🐊🐆🐅🐃🐂🐄🐪🐫🐘🐐🐏🐑🐎🐖🐀🐁🐓🦃🕊🐕🐩🐈🐇🐿🐾🐉🐲🌵🎄🌲🌳🌴🌱🌿☘🍀🎍🎋🍃🍂🍁🌾🌺🌻🌹🌷🌼🌸💐🍄🌰🎃🐚🕸🌎🌍🌏🌕🌖🌗🌘🌑🌒🌓🌔🌚🌝🌛🌜🌞🌙⭐️🌟💫✨☄☀️🌤⛅️🌥🌦☁️🌧⛈🌩⚡️🔥💥❄️🌨☃⛄️🌬💨🌪🌫☂☔️💧💦🌊🍏🍎🍐🍊🍋🍌🍉🍇🍓🍈🍒🍑🍍🍅🍆🌶🌽🍠🍯🍞🧀🍗🍖🍤🍝🍔🍟🌭🍕🍝🌮🌯🍜🍲🍥🍣🍱🍛🍙🍚🍘🍢🍡🍧🍨🍦🍰🎂🍮🍬🍭🍫🍿🍩🍪🍺🍻🍷🍸🍹🍾🍶🍵☕️🍼🍴🍽⚽️🏀🏈⚾️🎾🏐🏉🎱⛳️🏌🏓🏸🏒🏑🏏🎿⛷🏂⛸🏹🎣🚣🏊🏄🛀⛹🏋🚴🚵🏇🕴🏆🎽🏅🎖🎗🏵🎫🎟🎭🎨🎪🎤🎧🎼🎹🎷🎺🎸🎻🎬🎮👾🎯🎲🎰🎳🚗🚕🚙🚌🚎🏎🚓🚑🚒🚐🚚🚛🚜🏍🚲🚨🚔🚍🚘🚖🚡🚠🚟🚃🚋🚝🚄🚅🚈🚞🚂🚆🚇🚊🚉🚁🛩✈️🛫🛬⛵️🛥🚤⛴🛳🚀🛰💺⚓️🚧⛽️🚏🚦🚥🏁🚢🎡🎢🎠🏗🌁🗼🏭⛲️🎑⛰🏔🗻🌋🗾🏕⛺️🏞🛣🛤🌅🌄🏜🏖🏝🌇🌆🏙🌃🌉🌌🌠🎇🎆🌈🏘🏰🏯🏟🗽🏠🏡🏚🏢🏬🏣🏤🏥🏦🏨🏪🏫🏩💒🏛⛪️🕌🕍🕋⛩⌚️📱📲💻⌨🖥🖨🖱🖲🕹🗜💽💾💿📀📼📷📸📹🎥📽🎞📞☎️📟📠📺📻🎙🎚🎛⏱⏲⏰🕰⏳⌛️📡🔋🔌💡🔦🕯🗑🛢💸💵💴💶💷💰💳💎⚖🔧🔨⚒🛠⛏🔩⚙⛓🔫💣🔪🗡⚔🛡🚬☠⚰⚱🏺🔮📿💈⚗🔭🔬🕳💊💉🌡🏷🔖🚽🚿🛁🔑🗝🛋🛌🛏🚪🛎🖼🗺⛱🗿🛍🎈🎏🎀🎁🎊🎉🎎🎐🎌🏮✉️📩📨📧💌📮📪📫📬📭📦📯📥📤📜📃📑📊📈📉📄📅📆🗓📇🗃🗳🗄📋🗒📁📂🗂🗞📰📓📕📗📘📙📔📒📚📖🔗📎🖇✂️📐📏📌📍🚩🏳🏴🔐🔒🔓🔏🖊🖋✒️📝✏️🖍🖌🔍🔎❤️💛💚💙💜💔❣💕💞💓💗💖💘💝💟☮✝☪🕉☸✡🔯🕎☯☦🛐⛎♈️♉️♊️♋️♌️♍️♎️♏️♐️♑️♒️♓️🆔⚛🈳🈹☢☣📴📳🈶🈚️🈸🈺🈷✴️🆚🉑💮🉐㊙️㊗️🈴🈵🈲🅰🅱🆎🆑🅾🆘⛔️📛🚫❌⭕️💢♨️🚷🚯🚳🚱🔞📵❗️❕❓❔‼️⁉️💯🔅🔆🔱⚜〽️⚠️🚸🔰♻️🈯️💹❇
@lukaskollmer
lukaskollmer / PythonistaKit.h
Created July 10, 2016 10:19
PythonistaKit class dump
# coding: utf-8
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#pragma mark Function Pointers and Blocks
typedef void (*CDUnknownFunctionPointerType)(void); // return type and parameters are unknown
@lukaskollmer
lukaskollmer / error.py
Created July 28, 2016 18:59
livejson pretty error
import livejson
import datetime
def save_new_count2(username, count):
date = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
with livejson.File("../db2.json", pretty=True) as db:
try:
db[username][date] = count
except:
db[username] = {}
db[username][date] = count
data:text/html;base64,PGh0bWw+CjxoZWFkPgogIDx0aXRsZT5CYWNrdXAgU2VtaW5hcmFyYmVpdDwvdGl0bGU+CiAgPG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9VVRGLTgiPgogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MS4wLCBtYXhpbXVtLXNjYWxlPTEuMCwgdXNlci1zY2FsYWJsZT1ubyIgLz4KICA8bWV0YSBuYW1lPSJhcHBsZS1tb2JpbGUtd2ViLWFwcC1jYXBhYmxlIiBjb250ZW50PSJ5ZXMiPgogIDxtZXRhIG5hbWU9ImFwcGxlLW1vYmlsZS13ZWItYXBwLXN0YXR1cy1iYXItc3R5bGUiIGNvbnRlbnQ9ImJsYWNrLXRyYW5zbHVjZW50Ij4KICA8bGluayByZWw9ImFwcGxlLXRvdWNoLWljb24tcHJlY29tcG9zZWQiIGhyZWY9Imh0dHA6L2xvY2FsaG9zdDo1MjkxOS93ZWJjbGlwcy9pbWFnZXMvQmFja3VwJTI1MjBTZW1pbmFyYXJiZWl0L2ljb24ucG5nIj4KICA8bGluayByZWw9ImFwcGxlLXRvdWNoLXN0YXJ0dXAtaW1hZ2UiIG1lZGlhPSIob3JpZW50YXRpb246IGxhbmRzY2FwZSkiIGhyZWY9Imh0dHA6L2xvY2FsaG9zdDo1MjkxOS93ZWJjbGlwcy9pbWFnZXMvQmFja3VwJTI1MjBTZW1pbmFyYXJiZWl0L2xhbmRzY2FwZS1sYXVuY2gucG5nIi8+CjxsaW5rIHJlbD0iYXBwbGUtdG91Y2gtc3RhcnR1cC1pbWFnZSIgbWVkaWE9IihvcmllbnRhdGlvbjogcG9ydHJhaXQpIiBocmVmPSJodHRwOi9sb2NhbG
@lukaskollmer
lukaskollmer / upcoming_birthdays.py
Created August 10, 2016 17:33
My VERY FIRST Python script EVER
# coding: utf-8
import contacts
import ui
from datetime import datetime
import operator
import console
console.clear()
if not contacts.is_authorized():
@lukaskollmer
lukaskollmer / pythonista_view_hierarchy.txt
Created August 14, 2016 14:48
Output of `[UIViewController _printHierarchy]` and `[UIWindow recursiveDescription]`
***** [UIViewController _printHierarchy] *****
<PASlidingContainerViewController 0x127ebcdc0>, state: appeared, view: <UIView 0x127f4d4a0>
| <UINavigationController 0x12805be00>, state: appeared, view: <UILayoutContainerView 0x127e51fe0>
| | <PA2ScriptLibraryViewController 0x127e4efd0>, state: appeared, view: <UITableView 0x12807ee00>
| <PA2TabViewController 0x128027a00>, state: appeared, view: <UIView 0x127ec1cf0>
| | <PA2UniversalTextEditorViewController 0x12905ead0>, state: appeared, view: <UIView 0x129523260>
| <PA2AccessoryTabViewController 0x12894dc00>, state: appeared, view: <UIView 0x127d36120>
| | <PA2ConsoleViewController 0x127dbad90>, state: appeared, view: <UIView 0x127e5d990>
{
BuildMachineOSBuild = 15F34;
CFBundleDevelopmentRegion = en;
CFBundleDocumentTypes = (
{
CFBundleTypeExtensions = (
sln
);
CFBundleTypeName = "Continuous Solution";
CFBundleTypeRole = Editor;
<Upsight_iOS_WorkspaceNavigationController 0x14ee9b400>, state: appeared, view: <UILayoutContainerView 0x14f092240>
| <Upsight_iOS_WorkspaceController 0x14f01c0a0>, state: appeared, view: <UIView 0x14f18a1a0>
| | <Upsight_iOS_SplitterViewController 0x14f241330>, state: appeared, view: <UIView 0x14f2422d0>
| | <Upsight_iOS_TabViewController 0x14f302770>, state: appeared, view: <UIView 0x14f24ac70>
| | <Upsight_iOS_TabViewController 0x14f308730>, state: appeared, view: <UIView 0x14f309b10>
| | <Upsight_iOS_TabViewController 0x14f0e2080>, state: appeared, view: <UIView 0x14f0e0800>
| | <Upsight_iOS_UIKitHelpers_WorkspaceNavigationController 0x14e695600>, state: disappeared, view: <UILayoutContainerView 0x14f251870>
| | | <Upsight_iOS_BrowseWorkspaceNodeController 0x14f24ef20>, state: disappeared, view: <UITableView 0x14fa36a00>
| | <Upsight_iOS_UIKitHelpers_WorkspaceNavigationController 0x14e54cc00>, state: appeared, view: <UILayoutContainerView 0x14f25f630>
|