Be careful before you use these tools.
Some tools may possibly help you to watch WWDC 2013 videos.
| /* | |
| File: LineLayout.h | |
| Abstract: Simple flow layout to lay out items in a line. | |
| Version: 1.0 | |
| Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple | |
| Inc. ("Apple") in consideration of your agreement to the following | |
| terms, and your use, installation, modification or redistribution of |
| #!/bin/bash | |
| #default: diff last 2 commit | |
| count=2 | |
| #default: check next commit | |
| upordown=1 | |
| while getopts "u:d:" arg | |
| do | |
| case $arg in |
| #import <objc/runtime.h> | |
| #import <Foundation/Foundation.h> | |
| @interface Person : NSObject | |
| @end | |
| @implementation Person | |
| @end | |
| @interface Person(dynamicProperties) |
| struct RecurrenceRelation<Element>: SequenceType, GeneratorType { | |
| private var prevs: [Element] | |
| private let relat: ([Element], Int) -> Element | |
| private var i: Int = 0 | |
| mutating func next() -> Element? { | |
| guard i == prevs.endIndex else { return prevs[i++] } | |
| prevs.append(relat(prevs, i)) | |
| prevs.removeAtIndex(0) |
| #!/bin/bash | |
| # see also http://support.revealapp.com/kb/getting-started/load-the-reveal-server-via-an-xcode-breakpoint | |
| # remove Debug check; change framework path; simplify | |
| # find original one in Reveal.app | |
| set -e | |
| REVEAL_APP_PATH=$(mdfind kMDItemCFBundleIdentifier="com.ittybittyapps.Reveal2" | sort | head -n 1) | |
| [ ! -e "${REVEAL_APP_PATH}" ] && echo "warning: Reveal Server not loaded: Cannot find a compatible Reveal app." && exit 0 | |
| echo "Found Reveal at ${REVEAL_APP_PATH}" |
| source 'https://rubygems.org' | |
| gem 'httparty' | |
| gem 'nokogiri' | |
| gem 'pry' |
| #!/usr/bin/env python3 | |
| import sys | |
| import requests | |
| import base64 | |
| # https://github.com/shadowsocksr-backup/shadowsocks-rss/wiki/SSR-QRcode-scheme | |
| # usage: $0 https://example.com/list '/usr/local/bin/ss-local' | |
| subscribe_url = sys.argv[1] | |
| exec_path = sys.argv[2] |
| { | |
| "description" : "", | |
| "name" : "Ban Input Methods", | |
| "rules" : [ | |
| { | |
| "action" : "deny", | |
| "creationDate" : 1460985349.190908, | |
| "modificationDate" : 1549857179.580241, | |
| "owner" : "me", | |
| "process" : "\/Library\/Input Methods\/BaiduIM.app\/Contents\/MacOS\/BaiduIM", |