Skip to content

Instantly share code, notes, and snippets.

View nakiostudio's full-sized avatar
⚛️

Carlos Vidal nakiostudio

⚛️
View GitHub Profile
button.easy.clear()
button.easy.layout(
Width(160.0),
Height(50.0),
CenterX(0.0),
Top(20.0).to(header)
)
button.easy.layout(
Width(160.0),
Height(50.0),
CenterX(0.0),
Top(20.0).to(header, .top)
)
button.easy.layout(
Center(0.0),
Width(160.0),
Height(0.0).like(header)
)
button.easy.layout(
Center(0.0),
Height(50.0),
Width(*0.5).like(header)
)
// Never tried to run this code so expect compilation
// issues
func viewDidLoad() {
super.viewDidLoad()
// ScrollView
self.view.addSubview(self.scrollView)
self.scrollView <- Edges(0.0)
// CollectionView
@nakiostudio
nakiostudio / injectReveal.sh
Created August 13, 2017 10:41
Using lldb to inject Reveal into a process
lldb attach -p `ps x|grep XING|grep -v grep|awk '{print $1}'`
expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2);
expr [(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
c
@nakiostudio
nakiostudio / CustomApplyOperator.swift
Created October 7, 2017 11:49
Extensions you can drag onto your project if you want to keep using a custom apply operator after EasyPeasy 1.6.0
import EasyPeasy
#if os(iOS) || os(tvOS)
import UIKit
infix operator <~
/**
Apply operator definitions
iPhone:~ root# debugserver *:6666 -waitfor Twitter
(lldb) platform select remote-ios
(lldb) process connect connect://localhost:6666