Skip to content

Instantly share code, notes, and snippets.

View hunje's full-sized avatar

Hunje Cho hunje

  • cocone corporation.
  • Tokyo, Japan
View GitHub Profile

Note

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.

Updates

  • [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.
@gecko655
gecko655 / slack-microsoft-translator.gs
Last active February 22, 2018 07:15
SlackでMicrosoft Translator APIとGoogle App Scriptを使って自動翻訳するやつ
var BOT_NAME = 'translator_bot'
var SLACK_OUTGOING_TOKEN = PropertiesService.getScriptProperties().getProperty("slack_outgoing_token");
var SLACK_API_TOKEN = PropertiesService.getScriptProperties().getProperty("slack_api_token");
var SlackApp = SlackApp.create(SLACK_API_TOKEN)
var MS_API_TOKEN = PropertiesService.getScriptProperties().getProperty("ms_api_token");
var PRIMARY_LANGUAGE = "ko"
var SECONDARY_LANGUAGE = "ja"
@ricardoquesada
ricardoquesada / renderer
Last active May 26, 2016 03:42
cocos2d-x v3.0 renderer pseudo code
#
# cocos2d-x v3.0 renderer
#
# for further info read: https://docs.google.com/document/d/17zjC55vbP_PYTftTZEuvqXuMb9PbYNxRFu0EGTULPK8/edit#heading=h.3kpkd5ktk6p1
#
# Populates the VBO.
# It stops if the command is a group or if
# the VBO's capacity is not enough for the current Quad Command
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 24, 2024 17:56
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@RichardBronosky
RichardBronosky / resign.sh
Last active April 16, 2023 02:29
A simple tool for resigning an iOS app ipa with a new certificate/mobileprovision
#!/usr/bin/env bash
if [[ ! ( # any of the following are not true
# 1st arg is an existing regular file
-f "$1" &&
# ...and it has a .ipa extension
"${1##*.}" == "ipa" &&
# 2nd arg is an existing regular file
-f "$2" &&
# ...and it has an .mobileprovision extension
@xjones
xjones / TransitionController.h
Created November 26, 2011 03:48
TransitionController for animating iOS view controller transitions w/o a controller stack
//
// TransitionController.h
//
// Created by XJones on 11/25/11.
//
#import <UIKit/UIKit.h>
@interface TransitionController : UIViewController