iOS 6 に上げたついでに、一時期入れまくってたのと比べると随分ミニマムになった。
iPhone 4 とか iPad mini とか iPad 4 th も大体こんな感じで、 Retina Pad とか FullForce が入る程度かな。たぶん。
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
#!/bin/sh | |
msg=${1:-"first commit"} | |
git init | |
tree_hash=$(git write-tree) | |
commit_hash=$(echo -n "$msg" | git commit-tree $tree_hash) | |
echo $commit_hash > .git/refs/heads/master |
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
;;; camelize.el --- Make a string from snake_case to CamelCase | |
;; Copyright (C) 2012 tomykaira | |
;; Author: tomykaira <[email protected]> | |
;; Keywords: emacs | |
;; This file is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation; either version 2, or (at your option) |
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
/* move to http://userstyles.org/styles/60950/reblog-machine-get-up-i-feel-like-being-like-a */ |
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
#import <Foundation/Foundation.h> | |
#import <CoreFoundation/CoreFoundation.h> | |
#import <CoreGraphics/CoreGraphics.h> | |
#import <QuartzCore/QuartzCore.h> | |
#import <UIKit/UIKit.h> | |
#import <objc/runtime.h> | |
///////////////////////////////////////////////////////////////////// | |
@interface ApplicationDelegate: NSObject<UIApplicationDelegate> { |
This is just an exercise to measure the performance between Sinatra-like libraries in:
-
Elixir v0.4.dev (running on top of the Erlang VM R14B03) with Dynamo;
-
Ruby 1.9.2 with [Sinatra Synchrony] v0.0.3 (https://github.com/kyledrake/sinatra-synchrony) + Thin;
-
node.js 0.4.7 with [express] v2.3.10(https://github.com/visionmedia/express)
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
#!/bin/sh | |
sudo apt-get install build-essential libncurses5-dev libreadline-dev libssl-dev libyaml-dev libmysqlclient-dev libsqlite3-dev libxml2-dev libxslt-dev libmagick-dev libmagickwand-dev libsasl2-dev libsasl2-2 libv8-dev -y | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.bz2 | |
tar xvf ruby-1.9.3-p0.tar.bz2 | |
cd ruby-1.9.3-p0 | |
./configure | |
make -j 4 | |
sudo make install | |
cd .. | |
sudo rm -rf ruby-1.9.3* |
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
require 'sinatra' | |
require 'haml' | |
require 'mongo' | |
get '/' do | |
@db = Mongo::Connection.new.db('creepy') | |
deleted = [] | |
@status = [] | |
@db['delete'].find({},{:sort=>['id', 'ascending']}).each do |s| |
Cocoa(iOS)はMVVC(Model-View-ViewController)パターンである。by me, 2011
ここで述べるターゲットはiOS5, Lion以降, ARC