GifVJ
これがクールだったのでどうにかこれを JavaScript で作れないか頑張ってみた(頑張ってる途中)
Burrn!
ランダムで GIF アニメを全画面表示
Enter で再生/停止
| #!/usr/bin/env python | |
| # Simple Image Diffs | |
| # ================== | |
| # | |
| # How to Install | |
| # -------------- | |
| # | |
| # Download the script somewhere on $PATH as 'simple-imagediff' with +x: | |
| # | 
| # Note that while this file is in our config folder, it is | |
| # symlinked to our site folders, so paths are relative from there | |
| # Require gems and Compass plugins | |
| # require 'rgbapng' | |
| # require 'compass-fancybox-plugin' | |
| require 'compass-growl' | |
| # General | |
| output_style = :expanded | 
| cui vimでクリップボードを使う。 | |
| cUI vimの場合、+clipboardでコンパイルされないためクリップボード機能が使えないようです。 | |
| そんな時、fakeclipプラグインを使えば "*Y "*pなどでクリップボードが使えるようになり、他のアプリケーションと連携ができます。 | |
| いちいちマウスを触らなく良いので実にありがたい。 | |
| fakeclip => http://www.vim.org/scripts/script.php?script_id=2098 | |
| 各種コマンドについてはvim-users.jpが参考になります。 | |
| http://vim-users.jp/2010/02/hack126/ | 
| <?php defined('SYSPATH') or die('No direct script access.'); | |
| /** | |
| * MySQL "Closure Table" for Kohana based on Bill Karwin design. | |
| * | |
| * @link http://www.slideshare.net/billkarwin/models-for-hierarchical-data | |
| * @TODO improve | |
| * | |
| * sql schema: | |
| * CREATE TABLE `closures` ( | |
| * `id` int(11) NOT NULL AUTO_INCREMENT, | 
| var swipeFunc = { | |
| touches : { | |
| "touchstart": {"x":-1, "y":-1}, | |
| "touchmove" : {"x":-1, "y":-1}, | |
| "touchend" : false, | |
| "direction" : "undetermined" | |
| }, | |
| touchHandler: function(event) { | |
| var touch; | |
| if (typeof event !== 'undefined'){ | 
原文:Scaling Isomorphic Javascript Code (This is just for study, please contact me at tily05 atmark gmail.com if any problem.)
考えてみれば Model-View-Controller とか MVC ってよく聞くよね。実際どんなものか知ってる? 抽象的に言うなら「オブジェクト情報の保持されるグラフィック・システム (つまり、ラスターではないグラフィック。ゲームとか) 上に構築された、表示系を中心としたアプリケーションにおいて、主要な機能どうしの関わりをうまく分離すること」とでも言おうか。もう少し深く考えを押し進めてみれば、これは当然、他のさまざまなアプリケーションにもあてはまる言葉 (bucket term ?) だ。
過去に多くの開発コミュニティが MVC による解決案を提供し、それによってよくあるユースケースにうまく対処し、地位を築くことができた。例をあげるなら、Ruby や Python コミュニティは Rails や Django を作り、MVC アーキテクチャを実現した。
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | 
| - (void)setSelected:(BOOL)selected animated:(BOOL)animated { | |
| selected_ = selected; | |
| if (animated) { | |
| CATransition *transition = [CATransition animation]; | |
| transition.duration = 0.25f; | |
| transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; | |
| transition.type = kCATransitionFade; | |
| [self.selectionImageView.layer addAnimation:transition forKey:nil]; | |
| } |