This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# https://github.com/CocoaPods/Specs | |
# | |
platform :ios, '6.0' | |
# デフォルトで導入 | |
pod 'TestFlightSDK', '1.2.6' | |
pod 'CocoaLumberjack', '1.6.2' | |
pod 'SVProgressHUD', '0.9' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% brew upgrade mongodb | |
==> Upgrading 1 outdated package, with result: | |
mongodb 2.4.5 | |
==> Upgrading mongodb | |
==> Downloading http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.4.5.tgz | |
######################################################################## 100.0% | |
==> Caveats | |
To have launchd start mongodb at login: | |
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents | |
Then to load mongodb now: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)osVersion | |
{ | |
NSString *targetVersion = @"6.0"; | |
NSString *osVersion = [[UIDevice currentDevice] systemVersion]; | |
NSLog(@"OSのバージョン:%@", osVersion); | |
if ([osVersion compare:targetVersion options:NSNumericSearch] == NSOrderedAscending) { | |
NSLog(@"iOS%@前のバージョン", osVersion); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ubuntu 12.04 production environment for Ruby 2, Rails 4, Nginx and Passenger (work in progress) | |
#install required packages | |
apt-get update | |
apt-get upgrade -y | |
apt-get install -y git curl build-essential libssl-dev libcurl4-openssl-dev nodejs | |
#optional | |
apt-get install libsqlite3-dev sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.rbenv/plugins/ruby-build/share/ruby-build/2.0.0-p247 | |
install_package "openssl-1.0.1e" "https://www.openssl.org/source/openssl-1.0.1e.tar.gz#66bf6f10f060d561929de96f9dfe5b8c" mac_openssl --if has_broken_mac_openssl | |
# 接続できないのでコメントアウト | |
#install_package "ruby-2.0.0-p247" "http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz#c351450a0bed670e0f5ca07da3458a5b" standard verify_openssl | |
# 臨時的にこのURLを使用 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% curl -kL https://raw.github.com/saghul/pythonz/master/pythonz-install | bash | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 2596 100 2596 0 0 349 0 0:00:07 0:00:07 --:--:-- 372 | |
Downloading https://github.com/saghul/pythonz/tarball/master | |
######################################################################## 100.0% | |
Extracting /Users/naokits/.pythonz/dists/pythonz-latest.tar.gz | |
Installing pythonz into /Users/naokits/.pythonz |
-
デバッグ - テクニカルサポート - Apple Developer
https://developer.apple.com/jp/support/technical/debugging/ -
Apple ソフトウェア製品で使われる一般的な TCP および UDP ポート
http://support.apple.com/kb/TS1629?viewlocale=ja_JP&locale=ja_JP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 昭和64年 = 平成元年 = 1989年というルールから、簡単に昭和と西暦、平成と西暦を変換 | |
*/ | |
#import <Foundation/Foundation.h> | |
#define HEISEI_MAGIC_NUMBER 12 | |
#define SHOWA_MAGIC_NUMBER 25 | |
@interface Hoge : NSObject |