Skip to content

Instantly share code, notes, and snippets.

View guoc's full-sized avatar

Chen Guo guoc

  • Melbourne, Australia
View GitHub Profile
@guoc
guoc / mac-switch-meta.el
Created November 10, 2017 06:48 — forked from railwaycat/mac-switch-meta.el
meta key switch
;; Keybonds
(global-set-key [(hyper a)] 'mark-whole-buffer)
(global-set-key [(hyper v)] 'yank)
(global-set-key [(hyper c)] 'kill-ring-save)
(global-set-key [(hyper s)] 'save-buffer)
(global-set-key [(hyper l)] 'goto-line)
(global-set-key [(hyper w)]
(lambda () (interactive) (delete-window)))
(global-set-key [(hyper z)] 'undo)
@guoc
guoc / NSCFRange+Z.swift
Created November 9, 2017 23:44 — forked from codelynx/NSCFRange+Z.swift
NSRange, CFRange Utilities
// NSCFRange+Z.swift
// ZKit
//
// The MIT License (MIT)
//
// Copyright (c) 2016 Electricwoods LLC, Kaz Yoshikawa.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
@guoc
guoc / luna_pinyin.emoji.dict.yaml
Created November 7, 2017 23:21 — forked from lembacon/luna_pinyin.emoji.dict.yaml
Pinyin-Emoji Dictionary for Squirrel
# Rime dictionary
# encoding: utf-8
---
name: luna_pinyin.emoji
version: "2017.02.10"
sort: by_weight
use_preset_vocabulary: true
...
@guoc
guoc / xcode_build_phase.sh
Last active April 14, 2017 00:49 — forked from markcerqueira/xcode_build_phase.sh
Crittercism Auto-Upload dSYM with API Key as an environmental variable
# only upload during Release builds, otherwise every build will upload a dSYM
if [ "${CONFIGURATION}" = "Release" ]; then
readonly API_KEY_PATH=~/.crittercism_api_key
# put the secret key in this file
if [ -f $API_KEY_PATH ]; then
APP_ID="REPLACE_WITH_MY_APP_ID"
API_KEY=$(<$API_KEY_PATH)
# run the script
source "${SRCROOT}"/<CRITTERCISM_DIR_NAME>/dsym_upload.sh
else