Skip to content

Instantly share code, notes, and snippets.

@phi-jp
phi-jp / StringExtensions.cs
Last active August 29, 2015 14:11
string extension
/*
* Copyright (c) 2014 @phi_jp
*/
using System;
namespace tm.Extensions {
public static class StringExtensions {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Colors</key>
<dict>
<key>Background</key>
<string>0.195 0.195 0.195</string>
<key>InsertionPoint</key>
<string>0.902 0.902 0.902</string>
@t-kashima
t-kashima / testViewController.h
Created July 16, 2012 15:41
OAuth For Tumblr
#import <UIKit/UIKit.h>
#import "OAConsumer.h"
#import "OADataFetcher.h"
#import "OAMutableURLRequest.h"
@interface testViewController : UIViewController {
IBOutlet UIButton *btnLogin;
IBOutlet UIWebView *oauthWebView;
IBOutlet UILabel *lblUser;
@idStar
idStar / automation.sh
Created September 2, 2012 23:48
UIAutomation test script invocation from the command line. Works with Xcode 4.4.1 and the iOS Simulator.
#!/bin/bash
# automation.sh
# Created by @idStar - Sohail Ahmed - September 2, 2012
# This script launches the UIAutomation Instrument targeting a pre-existing iOS Simulator app, from the command line.
# Works with Xcode 4.4.1 on Mountain Lion
#
# Usage:
# automation <"App Name.app"> <"testFile.js"> <"base test script path"> <"base iOS Simulator path"> <"results output directory">
#
@t-mat
t-mat / build-curl-7.27.0.md
Created October 5, 2012 02:36
curl-7.27.0 を VC++2012 でビルドする

curl-7.27.0 を VC++2012 でビルドする

全工程を行うと、30~60分程度かかります

前準備 : いろいろインストール

@textarcana
textarcana / cucumber_cheatsheet.markdown
Created December 22, 2009 01:47
Cucumber cheatsheet

Cucumber cheatsheet

Best cheatsheet is: cucumber --help

Output formats

Reporting

Notification formats, in increasing order of verbosity:

@nakamura001
nakamura001 / Test.cs
Created January 22, 2013 05:38
UnityでHttpWebRequestを使う
using UnityEngine;
using System.IO;
using System.Net;
using System.Text;
public class Test : MonoBehaviour {
private string txt = "";
void OnGUI () {
if (GUI.Button(new Rect(10, 10, 200, 100), "テスト")) {
@anchan828
anchan828 / gist:4697447
Created February 2, 2013 13:47
.assetファイル作成/保存ときのコード
public class Asset
{
public static void Save <T> (T asset) where T : ScriptableObject
{
Directory.CreateDirectory (DeployGateUtility.settingsFolderPath);
string assetPath = DeployGateUtility.settingsFolderPath + typeof(T).Name + ".asset";
T _asset = (T)AssetDatabase.LoadAssetAtPath (assetPath, typeof(T));
if (_asset == null)
AssetDatabase.CreateAsset (asset, assetPath);
AssetDatabase.SaveAssets ();
@keiichironagano
keiichironagano / adventcal2015.md
Last active December 12, 2015 13:05
iTunes 使用許諾更新のとき一旦キャンセルしてほしい話
@shinyaohira
shinyaohira / About 64-Bit Cocoa Touch Apps.md
Last active December 23, 2015 01:49
About 64-Bit Cocoa Touch Apps

デスクトップオペレーティングシステムが32ビットから64ビットアドレッシングに移行した時、64ビットアプリはOSの移行に必要不可欠でした。今、iOSはデスクトップ級のアーキテクチャになってきています。iOS 7から、64ビットプロセッサを活用するアプリをビルドすることができます。64ビットプロセッシングをサポートするアプリは、同じデバイスで動作している32ビットアプリと比較して、ほぼ常に良いパフォーマンスを得ることができます。

異なるコードが一緒に動作しなくてはならない時、どのように振る舞うべきかについて、基準となる合意規約に従わなくてはいけません。規約には共通データ型のサイズとフォーマット、一方のコードが他方のコードをコールする場合のインストラクションが含まれます。コンパイラはこれらの規約をベースに実装されているので、協調して動作するバイナリコードを生成することができます。これらの規約をアプリケーションバイナリインターフェイス(ABI)と呼びます。