Skip to content

Instantly share code, notes, and snippets.

View naokits's full-sized avatar

nao naokits

  • Individual Application Developer
View GitHub Profile
@naokits
naokits / first-time-setup-ja.txt
Created September 2, 2020 12:36
First Time Setup - Social Mining(日本語訳)
NEMHubで翻訳募集が出ていたので、ソーシャルマイニングの翻訳をしました。
翻訳対象
First Time Setup - Social Mining
https://social-mining.gitbook.io/social-mining/getting-started-1/first-time-setup
--- ここから
初回設定
@naokits
naokits / file0.txt
Last active June 22, 2016 11:49
IBM Swift Sandboxでサードパーティのパッケージを使用する簡単な方法 ref: http://qiita.com/naokits/items/ff34d0ab0c7962828eef
├── .swift-version
├── Package.swift
└── Sources
└── main.swift
@naokits
naokits / ipa_generator.sh
Last active March 17, 2016 11:23
Xcodeプロジェクトをビルドし、IPAファイルを生成して、DeployGateにアップロードするだけのスクリプト。
#!/bin/sh
#SDK
SDK="iphoneos"
CONFIGURATION="AdHocDev"
# Xcode Workspace path
WORKSPACE_FILE_PATH=$(cd $(dirname $0); pwd)/"hoge.xcworkspace"
SCHEME="hoge-dev"
# Target Name
TARGET_NAME="hoge"
@naokits
naokits / file0.swift
Created February 11, 2016 20:43
NCMBObjectはサブクラス化して使おう! ref: http://qiita.com/naokits/items/db6dfd0eddcf5a38f1dc
func addLocation() {
// ...サブクラス化した場合と同じなので省略
let location = NCMBObject(className: "Location")
location.setObject(geoPoint, forKey: "geoPoint")
location.setObject("新宿駅", forKey: "name")
// ...サブクラス化した場合と同じなので省略
}
@naokits
naokits / file0.swift
Last active January 12, 2016 17:18
SSIDを取得するにはアップルの許可が必要になった!? ref: http://qiita.com/naokits/items/aa16e1553880c7ddbfbf
@available(iOS, introduced=4.1, deprecated=9.0, message="For captive network applications, this has been completely replaced by <NetworkExtension/NEHotspotHelper.h>. For other applications, there is no direct replacement. Please file a bug describing your use of this API to that we can consider your requirements as this situation evolves.")
public func CNCopySupportedInterfaces() -> CFArray?
@naokits
naokits / iOSのApp Extension を利用したキーボードの高さ調整.md
Created January 9, 2016 23:33
2016/1/10 iOSのApp Extensionを利用したキーボードの高さ調整

iOSのApp Extension を利用したキーボード(カスタムキーボード)で高さを調整する

//前もって高さを設定
pHeight=400

//以下の関数をオーバーライド
override func viewDidAppear(animated: Bool) {
    super.viewDidAppear(animated)
@naokits
naokits / gist:8520720
Created January 20, 2014 14:24
SSHの鍵作成
% ssh-keygen -t rsa -C "hogehoge@gmail.com"
@naokits
naokits / gist:8085910
Created December 22, 2013 17:43
プロジェクトのソースコード量をアバウトに調べる方法
各ソースコードの行数とファイル名を表示
% find nana -type f \( -name '*.h' -or -name '*.m' \) | xargs wc -l
ソースコードのファイ名、行数を、最後に行数の合計を表示
% find nana -type f \( -name '*.h' -or -name '*.m' \) | wc -l
@naokits
naokits / 201310270025.md
Created October 26, 2013 15:26
Mac OSX 10.9 MavericksでXcodeを5.0.1にアップデートした後に「Command Line Developer Tools」がインストールされていない場合の対

たまには「brew doctor」しておくかと思い、やってみると「developer tools」がインストールされてないと言われます。

/Users/naokits% brew doctor          
Warning: No developer tools installed.
You should install the Command Line Tools.
Run `xcode-select --install` to install them.

^C