Skip to content

Instantly share code, notes, and snippets.

Yusuke Ito novi

Block or report user

Report or block novi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cmysql.rb
$version = "2.0.5"
$hash = "4cb9620fbb68571be11ba13afc8911fd434561b9ff661040a128618af19bbbb5"
class Cmysql < Formula
homepage "https://github.com/novi"
url "https://github.com/novi/cmysql/archive/#{$version}.tar.gz"
sha256 $hash
version $version
depends_on "pkg-config"
@novi
novi / CoreFoundationOwnClassTest.c
Created Oct 28, 2010
Create your own CFType Class
View CoreFoundationOwnClassTest.c
// Created by Yusuke Ito, @novi_
#include <CoreFoundation/CoreFoundation.h>
#define UseCFHeader 0
#if UseCFHeader
#include "CFRuntime.h"
#else
@novi
novi / logger.js
Created Feb 14, 2012
node-http-proxyを使ったいわゆるバーチャルホスト対応Webサーバー(WebSocket対応版)
View logger.js
var http = require('http'),
httpProxy = require('http-proxy'),
logger = require('./logger');
// localhost:8001 に普通のExpressアプリ -> http://test.nov1.jp/
// localhost:8002 にWebSocketを使ったExpressアプリ -> http://😄.nov1.jp/, http://chat.nov1.jp/
// Proxy for Chat app
var proxy = new httpProxy.HttpProxy({
target: {
@novi
novi / swift-on-arch-linux.md
Last active Jul 13, 2018
Swift on Arch Linux
View swift-on-arch-linux.md

Install debootstrap.

# pacman -S arch-install-scripts debootstrap

Install Ubuntu base system into $ROOTFS.

$ export ROOTFS=$HOME/rootfs
@novi
novi / cmysqlmariadb.rb
Created Jul 3, 2018
Homebrew Formula for cmysql-mariadb
View cmysqlmariadb.rb
$version = "2.1.0"
$hash = "3c8402e3cd8d0690638c41afd35ae1ee4fc9e3cd5b7010a39a917630333c40ae"
class Cmysqlmariadb < Formula
homepage "https://github.com/novi"
url "https://github.com/novi/cmysql-mariadb/archive/#{$version}.tar.gz"
sha256 $hash
version $version
depends_on "pkg-config"
@novi
novi / pdfwalker.on.Mac.txt
Created Jun 17, 2011
PDFWalkerインストール on Mac OS X 10.6.7
View pdfwalker.on.Mac.txt
* brew install libtiff
* brew install gtk+
** gtk+のインストールに失敗するときは、 https://twitter.com/novi_/status/81740297842868225
** /usr/local/lib/libintl.dylibが無いときは、 https://twitter.com/novi_/status/81742895941558272
* gem install origami gtk2
* mkdir -p ~/.local/share
** pdfwalkerが起動しないとkは、 /Library/Ruby/Gems/1.8/gems/origami-1.0.3/bin/pdfwalker:3 RUBY_VERSION を1.8以上にする
@novi
novi / CocoaDesignPattern-Summary.md
Created Feb 15, 2011
Cocoaのデザインパターンまとめ
View CocoaDesignPattern-Summary.md
  • Singleton
  • Abstract Factory - |NSWindow| (Theme, Style)
  • Builder - WebKit Document Representation
  • Prototype - |NSCollectionViewItem|, Cell
  • FactoryMethod - |NSDocument|, ClassCluster
  • Adapter - Delegate, CocoaBinding
  • Bridge - |NSImageRep|, Wrapper
  • Composite - View Hierarchy, Tree
  • Decorator - |NSBox|, |NSScrollView|
  • Facade - |NSTextView|
@novi
novi / swift-arm-on-archlinux-rpi2.md
Last active Feb 8, 2017
Install Swift ARM on ArchLinux(Raspberry Pi2)
View swift-arm-on-archlinux-rpi2.md

Install debootstrap.

# pacman -S arch-install-scripts debootstrap

Install Debian base system into $ROOTFS.

$ export ROOTFS=$HOME/rootfs
@novi
novi / gist:1486247
Created Dec 16, 2011
オレオレCocoaコーディングガイドライン
View gist:1486247
@novi
novi / gist:1486262
Created Dec 16, 2011
オレオレUIViewコーディングガイドライン
View gist:1486262

UIViewコーディングガイドライン

基本はコーディングガイドラインに沿う。

つまり、親クラス: コーディングガイドライン

クラス構造と階層モデル

  • 必要に応じてViewの内部で保有関係を階層化する
  • 一番親のView(Controllerと直接やりとりするView)でのControllerへのメッセージ送信にはデリゲートモデルを使う
You can’t perform that action at this time.