Skip to content

Instantly share code, notes, and snippets.

@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)と呼びます。

@nobuoka
nobuoka / java-for-android-app.markdown
Last active September 28, 2024 01:59
Android アプリ開発勉強会のために書いた Java の入門文書

Android アプリ開発のための Java 入門

MEMO

  • declaration は 「宣言」 と訳しているが、「定義」 の方が適しているような気がしなくもない。
  • 「インスタンス」 と 「オブジェクト」 という言葉を使うことがあるが、本文書中ではどちらも同じ意味で使用している。
  • String オブジェクト」 という表現は、「String クラスのインスタンス」 を意味している。 (Java に限らず一般的な表現だと思う。)

はじめに

@uupaa
uupaa / ios.xcode.md
Last active January 28, 2020 09:36
iOS device spec, versions and Xcode deployment target information

iOS Devices

Device CPU GPU Display OpenGL
iPod touch 4 A4 PowerVR SGX535 960 x 640 2.1
iPod touch 5 A5 PowerVR SGX543MP2 1136 x 640 2.1
iPad 1 A4 PowerVR SGX535 1024 x 768 2.1
iPad 2 A5 PowerVR SGX543MP2 1024 x 768 2.1
iPad 3 A5X PowerVR SGX543MP4 2048 x 1536 2.1
iPad 4 A6X PowerVR SGX554MP4 2048 x 1536 2.1
@hujunfeng
hujunfeng / udid-faq.md
Last active January 24, 2024 14:15
UDID, identifierForVendor and advertisingIdentifier FAQ

What's the difference between UUID, GUID and UDID?

  • UUID (Universally Unique Identifier): A sequence of 128 bits that can guarantee uniqueness across space and time, defined by [RFC 4122][rfc4122].

  • GUID (Globally Unique Identifier): Microsoft's implementation of the UUID specification; often used interchangeably with UUID.

  • UDID _(Unique Device Identifier)): A sequence of 40 hexadecimal characters that uniquely identify an iOS device (the device's Social Security Number, if you will). This value can be retrieved through iTunes, or found using UIDevice -uniqueIdentifier. Derived from hardware details like MAC address.

Is UDID deprecated?

@katsuhide
katsuhide / NSRegular.m
Created August 16, 2013 16:23
正規表現周り
// 文字列置換
NSString *string =@"hogehogehoge"; // 置換対象文字列
NSString *template = @"<br/>"; // 置換後文字列
NSString *replaced = [string stringByReplacingOccurrencesOfString:@"\n" withString:template];
// 文字列検索 <en-note>の開始位置を調べる
NSString *pattern = @"<en-note>";
NSRange rangeFrom = [content rangeOfString:pattern];
if(rangeFrom.location == NSNotFound){
return nil;
@katzchang
katzchang / README.md
Last active September 28, 2022 13:42
Steve Freeman氏とのペアプロ雑感 #tddbc

Steve Freeman氏とのペアプロ雑感

http://tddbc.doorkeeper.jp TDD Boot Camp 2013-07 -- TDDBC で、偶然にもロンドンから来日していたSteve Freeman氏を招くことができた。ちなみに本当に偶然の来日で、その日の夕方にご家族と隅田川の花火を見る予定だったらしい。貴重な時間である。

20分ほど講演していただき、さらに参加者と一緒にペアプロ課題に挑戦してもらった。しかもペアプロでっていう貴重な体験をさせてもらったので、そのことについてまとめたい。

Steve Freeman氏は書籍 "Growing Object-Oriented Software, Guided by Tests" (邦訳「実戦テスト駆動開発」)の共著者の一人で、Javaのモックフレームワーク "JMock"の開発者の一人。当然、自動販売機の課題にもJMockを駆使してモデリングしていただくことになった。

Start from the outside

@bzgeb
bzgeb / PlatformMonitor.cs
Created August 12, 2013 22:54
Example Platform Monitoring script
using UnityEngine;
using UnityEditor;
using System.Collections;
[InitializeOnLoad]
public class PlatformMonitor {
static BuildTarget cachedPlatform;
static PlatformMonitor() {
cachedPlatform = EditorUserBuildSettings.activeBuildTarget;
@shinyaohira
shinyaohira / Advanced App Tricks.md
Last active May 25, 2016 11:34
高度なアプリの技法+パフォーマンスチューニング

全体的に簡略化し、必要と思われる部分を抜粋しました。

適切に大きなスクリーンに対応するためには、デバイスの画面の大きさについて、何の仮定もしないことが大切です。画面やウインドウ、ビューの大きさを実行時に動的に取得し、インターフェイスを設定してください。また、ビューベースの制約を用いてユーザインターフェイスを 構築すれば、実行時にビュー階層の変化を容易に管理できます。

@kozy4324
kozy4324 / bundler_memo.md
Last active May 25, 2022 01:59
Bundlerめも

bundler

install

Gemfile(or Gemfile.lock)の記述に従って依存gemをシステムにインストール.

$ bundle install
@tsupo
tsupo / Twitter_API_1.1_rate_limit.txt
Created May 17, 2013 05:12
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