Skip to content

Instantly share code, notes, and snippets.

View jun784's full-sized avatar
😄

jun784 jun784

😄
  • Tokyo
View GitHub Profile
@Gab-km
Gab-km / github-flow.ja.md
Last active March 21, 2025 03:38 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@tatsuro-ueda
tatsuro-ueda / 最近ハマっているGitHubとStackOverflow.md
Created August 6, 2012 18:18
最近ハマっているGitHubとStackOverflow

寝付けないので文章を書いてみることにする。普段はブログに記事を書くのだが、最近GitHubに移住することを検討しているので、試しにGitHubのGistに書いてみることにした。どうせ同じMarkdown記法だし。

GitHub

面白い。他人のコードをダウンロードできるのもいいが、幾多のグループが世界中でプロジェクトを作っている様子が見えるのが、とても未来的。

これからのプログラマーは、GitHubに自分のプロジェクトを積極的に乗せていったほうが良い気がする。良いものがあれば使ってもらえるし、改善提案を受けることもできる。

私はStackOverflowで出てきた質問に対する回答が動くかどうかを確かめるためにレポジトリを作ることが多い。

@kamens
kamens / knowledgemap.js
Created July 23, 2012 16:25
Knowledge Map file for Constellation Knowledge blog post
function KnowledgeMapInitGlobals() {
window.KnowledgeMapGlobals = {
colors: {
blue: "#0080C9",
green: "#8EBE4F",
red: "#E35D04",
gray: "#FFFFFF"
},
@ethertank
ethertank / date.getFormatDate
Created March 27, 2012 17:17
日付に関する何か
Date.prototype.getFormatDate = function getFormatDate() {
var d = this,
o = {};
o.date = d;
o.json = d.toJSON();
o.YYYY = d.getFullYear();
o.M = d.getMonth() + 1;
o.D = d.getDate();
o.wday = d.getDay();
@mokagio
mokagio / sticky.css
Created February 26, 2012 20:53
Twitter Bootstrap + Sticky Footer + Fixed Nav Bar
html, body, .container, .content {
height: 100%;
}
.container, .content {
position: relative;
}
.proper-content {
padding-top: 40px; /* >= navbar height */
@geddski
geddski / nesting.js
Created January 14, 2012 05:08
helper function for nesting backbone collections.
function nestCollection(model, attributeName, nestedCollection) {
//setup nested references
for (var i = 0; i < nestedCollection.length; i++) {
model.attributes[attributeName][i] = nestedCollection.at(i).attributes;
}
//create empty arrays if none
nestedCollection.bind('add', function (initiative) {
if (!model.get(attributeName)) {
model.attributes[attributeName] = [];
@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 アーキテクチャを実現した。