Skip to content

Instantly share code, notes, and snippets.

@ritalin
ritalin / BlankPage.xaml
Created March 26, 2012 04:02 — forked from anonymous/BlankPage.xaml
For metro style app, unable to use attachable property defined by other assembly.
<!--
<Page
x:Class="APTest.App.BlankPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:APTest.App"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:fw="clr-namespace:AP.Framework;assembly=AP.Framework"
@ritalin
ritalin / PropertyCategoryMapper.cs
Created April 19, 2012 04:04 — forked from anonymous/PropertyTagMapper.cs
A helper class to extract property-names of ViewModel for MVVM.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Samples {
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class PropertyCategoryAttribute : System.Attribute {
public PropertyCategoryAttribute(Type inTagType) {
this.Tag = inTagType;
@ritalin
ritalin / ComplexBusinessOperations-1.cs
Created June 6, 2012 08:52 — forked from gamlerhart/ComplexBusinessOperations-1.cs
Unit Testing, Part II, Synchronisation Issues
public class ComplexBusinessOperations
{
private int moneyEarnedSoFar;
public int MoneyEarnedSoFar
{
get { return moneyEarnedSoFar; }
}
public void EarnMoney(int investment)
@ritalin
ritalin / ComplexBusinessOperations-1.cs
Created June 6, 2012 08:53 — forked from gamlerhart/ComplexBusinessOperations-1.cs
Unit Testing, Part II, Synchronisation Issues
public class ComplexBusinessOperations
{
private int moneyEarnedSoFar;
public int MoneyEarnedSoFar
{
get { return moneyEarnedSoFar; }
}
public void EarnMoney(int investment)
@ritalin
ritalin / kill-all-msbuild.ps1
Created August 17, 2012 00:16 — forked from anonymous/kill-all-msbuild.ps1
R.I.P grown MSBuild Process
Get-Process -name "MSBuild" | foreach {Stop-Process -id $_.id}
@ritalin
ritalin / ejabberd.plist
Created October 8, 2012 05:56 — forked from saimonmoore/ejabberd.plist
For using installer, daemonize ejabberd
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>net.process-one.Ejabberd2</string>
package sample;
import jQuery.JQuery;
using Lambda;
class JQueryHelper {
/*
* アニメーションキューを作成する
*/
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeDriverService;
import org.openqa.selenium.remote.DesiredCapabilities;
@ritalin
ritalin / slides.md
Last active September 7, 2018 12:52 — forked from aaronwolen/slides.md
Customized Pandoc (http://johnmacfarlane.net/pandoc/) template for reveal.js (http://lab.hakim.se/reveal-js/#/) Add the feature displaying fragment. Add the feature changing background color.

% Title % Name % Date

My first slide { fragment=fade-in target=li }

Displaying fragment for specified target element.

サバクラ両方で動く 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 アーキテクチャを実現した。