Skip to content

Instantly share code, notes, and snippets.


Tom King mobilemind

View GitHub Profile
mattmc3 / string.zsh
Last active November 30, 2022 17:46
Zsh - string utilities
View string.zsh
# fish has a utility for string maniplulation
# This is how you can do the same things with vanilla Zsh
# Docs:
# - fish string:
# - regex:
# - string modifiers:
# - string expansion:
View url-schemes-settings-ios.mkd


Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.


  • [UPDATE 4] iOS 10 update: apparently settings now can be reached using App-Pref instead of prefs
  • [UPDATE 3] For now you just can use url schemes to open your apps's settings with Swift 3.0 (Xcode 8). I'll keep you informed when OS preferences can be reached
  • [UPDATE 2] The openURL() method of UIApplication is now deprecated. You should use application(_:open:options:) instead
  • [UPDATE 1] Not yet tested in iOS 10. It will fail because of policies changes in URL scheme handling.
mobilemind / rtm-add.js
Created April 11, 2016 06:51
Remember the Milk bookmarklet to add current selected text & web page as a task due tomorrow using RTM Mobile web app
View rtm-add.js
// javascrip
// (function(){var n,w;if(window.getSelection)n=window.getSelection();else if(document.getSelection)n=document.getSelection();else if(document.selection)n=document.selection.createRange().text;''+encodeURIComponent(null===n||undefined===n||''==n?document.title:n)+'&due=tomorrow&u