Skip to content

Instantly share code, notes, and snippets.

View ne-sachirou's full-sized avatar

さっちゃん ne-sachirou

View GitHub Profile
@j5ik2o
j5ik2o / gist:1520836
Last active January 3, 2017 17:09
Scalaで使えそうなWeb系フレームワーク&ライブラリ
@bleis-tift
bleis-tift / gist:1496402
Created December 19, 2011 09:59
桜花あどべんとかれんだぁ19日目

おーかたんとぼく

桜花あどべんとかれんだぁ19日目のエントリです。

であい

おーかたんと初めて会ったのは、高専の演習室でした。 おーかたんは幼女なのにすでに高専の2年生をやっていたようです。

@tily
tily / scaling_isomorphic_javascript_code.ja.markdown
Last active May 1, 2023 09:03
サバクラ両方で動く JavaScript の大規模開発を行うために

サバクラ両方で動く JavaScript の大規模開発を行うために

原文: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 アーキテクチャを実現した。

// ==UserScript==
// @name MyPixiv
// @namespace http://d.hatena.ne.jp/kk6/
// @description Pixiv用おれおれGM
// @include http://www.pixiv.net/*
// @exclude http://www.pixiv.net/bookmark.php*
// ==/UserScript==
(function($){
@potch
potch / gist_line_numbers.css
Created September 26, 2011 18:53
CSS to add line numbers to embedded gists
.gist-highlight {
border-left: 3ex solid #eee;
position: relative;
}
.gist-highlight pre {
counter-reset: linenumbers;
}
.gist-highlight pre div:before {
require 'java'
require 'msgpack-0.6.0-devel.jar'
##
# Serialize
#
gzout = java.io.ByteArrayOutputStream.new
out = java.util.zip.GZIPOutputStream.new(gzout)
@uehaj
uehaj / gvm.groovy
Created July 6, 2011 14:39
GVM: JVM written in Groovy
/*
* gvm.groovy: Java VM written in Groovy
*/
import org.objectweb.asm.*
import org.objectweb.asm.util.*
import org.objectweb.asm.tree.*
import static GVM.*
class GVMClass {
def methods = [:]
@nobusue
nobusue / GhelloFromSystemTray.groovy
Created July 2, 2011 10:03
#ghello from System Tray
java.awt.SystemTray.getSystemTray().add(new java.awt.TrayIcon(image:java.awt.Toolkit.getDefaultToolkit().getImage(this.class.getResource('groovy/ui/ConsoleIcon.png')), tooltip:'Hello World!', imageAutoSize:true))
@ne-sachirou
ne-sachirou / es5.js
Created June 10, 2011 14:36
Define ES5 extention by ES3 #js
/**
* @preserve Public Domain 2011 ne_Sachirou
* author: ne_Sachirou http://c4se.tk/profile/ne.html
* site: http://gist.github.com/1018954
* date: 2011 - 2012
* license: Public Domain
*/
//java -jar compiler.jar --compilation_level SIMPLE_OPTIMIZATIONS --js_output_file es5.min.js --js es5.js --js json2.js
@udzura
udzura / README.rdoc
Created May 15, 2011 05:38
rack-rewrite README in japanese