Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -e
# app release_id file
SIGNATURE=$(./bin/sign_update ${FILE} | sed 's/[^"]*="\([^"]*\).*/\1/g')
waynezhang /
Created May 21, 2021
Upload binary to
set -e
# ac_distribute owner app file
# Original from
# Environment Variables created by App Center
#! env python3
from lark import Lark
from lark import Transformer
import json
lark = Lark('''
?start: (macro | expr)*
?parameter: dict
View ViewController.swift
import Cocoa
class ViewController: NSViewController {
internal lazy var outlineView: NSOutlineView = {
let outlineView = NSOutlineView()
outlineView.usesAutomaticRowHeights = true
let column = NSTableColumn(identifier: .init(rawValue: "TestColumn"))
View gist:52370b6ad99f6de77a54e97c220d7ebb do |s| = 'LicensePlist'
s.version = ''
s.summary = 'A license list generator of all your dependencies for iOS applications'
s.homepage = ''
s.license = { :type => 'MIT', :file => 'LICENSE' } = 'Masayuki Ono'
s.source = { :http => "#{s.homepage}/releases/download/#{s.version}/" }
s.preserve_paths = '*'
s.exclude_files = '**/'
View gist:c93b8c7b6cde06320ce4966427d44a7f
map "ctrl+u" scrollPageUp
map "ctrl+d" scrollPageDown
set nosmoothscroll
waynezhang / SaveCurrentURLToReminders
Last active Dec 18, 2015
Save Current URL To Reminders
View SaveCurrentURLToReminders
tell application "Safari"
set theTitle to name of current tab of front window
set theURL to URL of current tab of front window
end tell
tell application "Reminders"
tell default list
make new reminder with properties {name:theTitle, body:theURL}
end tell
end tell
waynezhang / HibariRT
Created Jan 11, 2012
Quote RT for Hibari
View HibariRT
var application = [JSTalk application:'Hibari'];
var currentTweet = [application selectedTweet];
var controller = [application windowController];
[[controller composeArea] setStringValue:'RT: @' + currentTweet.screenName + ': ' + currentTweet.tweetText];
[controller newTweet];
waynezhang / gist:1495626
Created Dec 19, 2011
Tag Cloud for Jekyll on Github Pages
View gist:1495626
<div id='tag_cloud'>
{% for tag in site.tags %}
<a href="#{{ tag[0] }}" title="{{ tag[0] }}" rel="{{ tag[1].size }}">{{ tag[0] }}</a>
{% endfor %}
<ul id='tag_list'>
{% for tag in site.tags %}
<li class='tag_item' id='{{ tag[0] }}'>
<span class='tag_name'>{{ tag[0] }}</span>
waynezhang / gist:1205502
Created Sep 9, 2011
Add git tag info to Xcode build automatically
View gist:1205502
version=`git describe --tag`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $version" $PRODUCT_SETTINGS_PATH
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $version" $PRODUCT_SETTINGS_PATH