Skip to content

Instantly share code, notes, and snippets.

Avatar

Motoi Shimizu motoishmz

View GitHub Profile
View YamadaViewControllerTest.m
//
// ListViewController.m
// TableVIewPrac5
//
// Created by 山田 慶 on 2012/11/12.
// Copyright (c) 2012年 山田 慶. All rights reserved.
//
#import "ListViewController.h"
View main.js
// to be binded.....
var fnTouchStart = function(e) { console.log("hello i am touch start"); };
var fnTouchMove = function(e) { console.log("hello i am touch move"); };
var fnTouchEnd = function(e) { console.log("hello i am touch end"); };
var fnMouseDown = function(e) { console.log("hello i am mouse down"); };
var fnMouseMove = function(e) { console.log("hello i am mouse move"); };
var fnMouseUp = function(e) { console.log("hello i am mouse up"); };
// register.....
(function()
@motoishmz
motoishmz / iPhoto-salvage.maxpat
Created Mar 21, 2013
dependencies: aka.shell, aka.keyboards from http://www.iamas.ac.jp/~aka/max/
View iPhoto-salvage.maxpat
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 0,
"architecture" : "x86"
}
,
View .gitignore_OF
# ------------------------
# Xcode
# ------------------------
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
View Array.prototype.shuffle.js
Array.prototype.shuffle = function()
{
var i = this.length;
while (i)
{
var j = Math.floor(Math.random() * i);
var t = this[--i];
this[i] = this[j];
this[j] = t;
}
@motoishmz
motoishmz / license_insert.rb
Created Apr 17, 2013
まとめてライセンス文をつっこむ用(拡張子チェックは適当に) この例文だとApache 2.0
View license_insert.rb
require 'find'
your_name = "My Name"
project_name = "My Project Name"
license_txt = <<EOF
//
// Copyright 2013 #{your_name}
//
// Licensed under the Apache License, Version 2.0 (the "License");
View build_check.py
import os
import subprocess
basedir = os.path.abspath('.')
def check(path):
print path
os.chdir(path)
cmd = 'xcodebuild'
subprocess.check_call(cmd, shell=True)
View create_release_zip.rb
require 'fileutils'
require 'find'
release_files_path =
"My_Project_Name"
sources = [
"../addons",
"../apps",
View .gitignore_iOS
# git-ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.DS_Store
*.o
*.lo
*.Plo