Skip to content

Instantly share code, notes, and snippets.

@pjaspers
pjaspers / text-subsitutions.plist
Last active May 8, 2020 14:20
Although not entirely obvious it is possible to export and import text substitutions, just drag this file into System Preferences > Keyboard > Text.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>phrase</key>
<string>↑</string>
<key>shortcut</key>
<string>,,^</string>
</dict>
@lckarssen
lckarssen / git-log-to-tikz.rb
Last active December 17, 2022 22:08 — forked from hauspie/git-log-to-tikz.rb
Extract git history to tikz picture
#!/usr/bin/env ruby
# A small ruby script to extract a git history to a tikz picture
# Author: Michael Hauspie <[email protected]>
# Author: Lennart C. Karssen <[email protected]>
#
# Not clean code, not always working well, but does its job in most of
# the cases I needed :)
#
# LCK: Added some ideas from this tex.stackexchange answer:
@pjaspers
pjaspers / gist:9131345
Last active April 28, 2022 07:52
ICQ list.
000787466 @bramus
006904094 @inferis
008093150 @tomklaasen
010686174 @to1ne
011006380 @tijs
023055424 @crahan
063846821 @junkiesxl
075540649 @maxvoltar
084511154 @atog
102812969 @nilo
@mattt
mattt / uiappearance-selector.md
Last active September 24, 2024 12:59
A list of methods and properties conforming to `UIAppearance` as of iOS 12 Beta 3

Generate the list yourself:

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./*     | \
  sed 's/NS_AVAILABLE_IOS(.*)//g'     | \
  sed 's/NS_DEPRECATED_IOS(.*)//g'    | \
  sed 's/API_AVAILABLE(.*)//g'        | \
  sed 's/API_UNAVAILABLE(.*)//g'      | \
 sed 's/UI_APPEARANCE_SELECTOR//g' | \
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')