Skip to content

Instantly share code, notes, and snippets.

@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/
    メニューバーに並ぶアプリアイコンをすっきりと整理させるためのアプリ。
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.4.3 (252)
#
# Alignment
# ---------
## Alignment
@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
@PGMY
PGMY / app.js
Created August 6, 2012 03:43
LINE 非公式 API を使ってログイン
var LINE = require('./line.js');
var line = new LINE();
var email = 'your email';
var password = 'your password';
line.login(email, password, function(error, result) {
if (error) {
return;
}
@PGMY
PGMY / hoge.markdown
Created August 29, 2012 04:39 — forked from taizooo/hoge.markdown
gist で markdown 記法がつかえる。

#なんだかんだ

##えーと1 どういうこういう そういうどういう

##えーと2 どういうこういう そういうどういう

@PGMY
PGMY / JUnitCheatSheet.md
Created August 29, 2012 04:36
My JUnit cheat sheet

##My JUnit Cheat Sheet.

####assertEquals(arg1, arg2) arg1とarg2が同じ値かどうか判別します。違う場合はFailure(失敗)になります。基本型、オブジェクト型の両方を判別できます。

####assertEquals(msg, arg1, arg2) 上記と同様に振舞います。値が違う場合はメッセージとしてmsgを表示します。

####assertTrue(boolean)

@PGMY
PGMY / gist:3507072
Created August 29, 2012 05:19
Markdown cheat sheet

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

@PGMY
PGMY / index.html
Created September 6, 2012 05:19
more than 50 shapes using Pure CSS http://cssshapes.iweb.uz/
<div class="frame">
<div class="star"></div>
</div>
<div class="frame">
<div class="star2"></div>
</div>
<div class="frame">
<div class="star11"></div>
</div>
<div class="frame">
@PGMY
PGMY / index.html
Created September 6, 2012 05:19
more than 50 shapes using Pure CSS http://cssshapes.iweb.uz/
<div class="frame">
<div class="star"></div>
</div>
<div class="frame">
<div class="star2"></div>
</div>
<div class="frame">
<div class="star11"></div>
</div>
<div class="frame">
@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 ]