Skip to content

Instantly share code, notes, and snippets.

disabled_rules: # 適用したくないチェック項目を記述
- force_try
- trailing_whitespace
- variable_name
opt_in_rules: # 採用するopt-inのルール
- empty_count
included: # Lint対象にするファイル プロジェクトpathを指定
- ##PRJ_NAME##
excluded: # Lint対象から外すファイルのあるパスを記述、CocoaPodsやCarthage
- Carthage
@PGMY
PGMY / Twitter_API_1.1_rate_limit.txt
Created April 14, 2016 02:13 — forked from tsupo/Twitter_API_1.1_rate_limit.txt
Twitter API 1.1 / 実行回数制限
Twitter API 1.1 の現行APIの制限
(REST API v1.1 Limits per window by resource)
https://dev.twitter.com/docs/rate-limiting/1.1/limits
・15分辺り最大何回実行できるか
Timelines
GET statuses/mentions_timeline 15回
GET statuses/user_timeline 180回/user, 300回/application
<style type="text/css">
* {font-family:"Avenir Next", sans-serif;}
#globalheader-container {display:none;}
#footer-menu {display:none;}
.profile {display:none !important;}
.footer-action-wrapper {display:none;}
.footer-service-link {display:none;}
.entry-content h4 { color: rgb(59, 66, 126);/*₩ヨヌ¥ᆳラ│ノᄇ*/
background: rgb(243, 242, 252); /*│テフ₩ルᆵ│ノᄇ*/
padding: 10px 10px; /*│ᆭヒ¥ヌᄎ ̄チラ ̄チᄒ ̄ツマ ̄ツハ ̄チᆴ ̄ツᄍ ̄テレ ̄テᄐ ̄ツᄍ ¦ᄌハ¦ᄌヒ ̄タチ¥ᄋᆭ¥マᄈ*/
@PGMY
PGMY / Keychain.swift
Created October 28, 2015 02:11 — forked from s-aska/Keychain.swift
Swift Keychain class ( supported Xcode 6.0.1 )
import UIKit
import Security
class Keychain {
class func save(key: String, data: NSData) -> Bool {
let query = [
kSecClass as String : kSecClassGenericPassword as String,
kSecAttrAccount as String : key,
kSecValueData as String : data ]
@PGMY
PGMY / file0.m
Last active July 28, 2017 03:39
iOS脱獄チェックメモ ref: http://qiita.com/PGMY/items/3ceae5cbbf93e013deb4
+(BOOL)isJailbroken{
#if !(TARGET_IPHONE_SIMULATOR)
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Cydia.app"]){
return YES;
}else if([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/MobileSubstrate.dylib"]){
return YES;
}else if([[NSFileManager defaultManager] fileExistsAtPath:@"/bin/bash"]){
return YES;
@PGMY
PGMY / 0_reuse_code.js
Created July 11, 2014 01:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.4.3 (252)
#
# Alignment
# ---------
## Alignment
@PGMY
PGMY / app.md
Created February 26, 2014 07:54

MacBookAirを再インストールするので愛用していたアプリをメモ

愛用アプリをメモがてらご紹介します。ざっと。ざざーっと。

  • Google Chrome ⇒http://www.google.com/intl/ja/chrome/browser/
    とりあえずまず一番始めにいれるのがブラウザ。ブックマーク等が同期できるので愛用しています。
  • Homebrew ⇒http://brew.sh/
    パッケージマネージャ。Macportsを利用してましたが乗り換えました。
  • Bartender ⇒http://www.macbartender.com/
    メニューバーに並ぶアプリアイコンをすっきりと整理させるためのアプリ。
@PGMY
PGMY / .gitignore
Created January 28, 2014 06:09 — forked from mmorey/.gitignore
#########################
# .gitignore file for Xcode5
#
# NB: if you are storing "built" products, this WILL NOT WORK,
# and you should use a different .gitignore (or none at all)
# This file is for SOURCE projects, where there are many extra
# files that we want to exclude
#
# For updates, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
# and https://gist.github.com/adamgit/3786883
@PGMY
PGMY / GitLabInstall.md
Last active January 4, 2016 07:59
CentOS 6.5にGitLab(6.0-6.4)インストールメモ
Distribution      : CentOS 6.5
GitLab version    : 6.0 - 6.4
Web Server        : Apache, Nginx
Init system       : sysvinit
Database          : MySQL, PostgreSQL
Contributors      : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn, @psftw, @etcet
Additional Notes  : In order to get a proper Ruby setup we build it from source