Skip to content

Instantly share code, notes, and snippets.

View ofl's full-sized avatar
💭
I may be slow to respond.

Shin Morichika ofl

💭
I may be slow to respond.
View GitHub Profile
@ofl
ofl / TableViewController.swift
Last active September 28, 2016 09:43
ReactiveKit/Bond: Observable2DArray sample
//
// TableViewController.swift
//
// Created by Shin Morichika on 2016/09/28.
// Copyright © 2016年 covered. All rights reserved.
//
import UIKit
import Bond
@ofl
ofl / webview.js
Created December 23, 2012 05:35
iOS Titanium SDK 3.0.0でWebViewに追加されるJavascript。 https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUIWebView.m
Ti.App = {};
Ti.API = {};
Ti.App._listeners = {};
Ti.App._listener_id = 1;
Ti.App.id = Ti.appId;
Ti.App._xhr = XMLHttpRequest;
Ti._broker = function (module, method, data) {
try {
var url = 'app://' + Ti.appId + '/_TiA0_' + Ti.pageToken + '/' + module + '/' + method + '?' + Ti.App._JSON(data, 1);
var xhr = new Ti.App._xhr();
@ofl
ofl / gist:3058304
Created July 6, 2012 05:49
Titanium Mobile用のJsonDBを扱うクラス
# @_yagiさんのhttps://gist.github.com/3039968にインスパイアされてJsonDBで作ってみた
mix = () ->
child = {}
for arg in arguments
for prop of arg
if arg.hasOwnProperty prop
child[prop] = arg[prop]
return child
@ofl
ofl / gist:237978
Created November 18, 2009 15:53
Rails 3.0 pre on GAE(dose not run on server)
We couldn’t find that file to show.