Skip to content

Instantly share code, notes, and snippets.

View monsat's full-sized avatar

TANAKA Kohji monsat

View GitHub Profile
@monsat
monsat / plain.vsscript.json
Created March 10, 2014 03:31
VideoShaderのPlainフィルタです(笑)
{
"title" : "Plain",
"pipeline" : [
]
}
<!DOCTYPE html>
<html>
<head>
<title>CSS Fizz Buzz</title>
<link rel="stylesheet" href="./main.css">
</head>
<body>
<h1>CSSだけでFizzBuzzしよう</h1>
<h2>ルール</h2>
<ul>
@monsat
monsat / fizz_buzz.html
Created February 6, 2014 11:01
ul#main 内の li 要素が、適宜 Fizz/Buzz/FizzBuzz と表示されるように main.css を実装しよう
<!DOCTYPE html>
<html>
<head>
<title>CSS Fizz Buzz</title>
<link rel="stylesheet" href="./main.css">
</head>
<body>
<h1>CSSだけでFizzBuzzしよう</h1>
<h2>ルール</h2>
<ul>
@monsat
monsat / animal.js
Last active December 15, 2015 23:49 — forked from anonymous/index.html
function Animal(data) {
this.data = data;
this.base = '1966/12/31';
this.count = data.length;
}
Animal.prototype.get = function(birthday) {
var number = this.number(birthday);
var data = this.data[number];
data.number = number;
@monsat
monsat / README.md
Last active December 11, 2015 08:08

neu.Node

概要

neu.Node(ノイノード)は、iOS デバイス用に Node.js 互換の API を実装したもので、これにより、アプリケーション開発者はさまざまな小さなサーバ(httpサーバ、チャットサーバ、プロキシサーバ、ゲームサーバ等)を自分の iOS アプリケーションの中に埋め込むことができるようになります。

neu.Node を使えば、iOS デバイスは単なる『クライアント』デバイスではなくなります。 デバイスはそれぞれネットワークの『ノード』となり、 分散コンピューティングのサービス の提供や、ユーザ・エクスペリエンスの向上に大きく貢献することになるのです。

neu.Node は今までに無いタイプのアプリケーションを可能にします。たとえば:

@monsat
monsat / gist:2878768
Created June 5, 2012 23:25 — forked from avalanche123/gist:981817
GitHub Emoji
:+1:
:-1:
:airplane:
:art:
:bear:
:beer:
:bike:
:bomb:
:book:
:bulb:
@monsat
monsat / SampleTest.php
Created May 29, 2012 22:45
PHPUnit Class
<?php
# tests/SampleTest.php
require __DIR__ . '/../lib/Sample.php';
class SampleTest extends PHPUnit_Framework_TestCase {
public function setUp() {
$this->object = new Sample();
}
public function tearDown() {
unset($this->object);
}
<?php
App::uses('SampleHelper', 'View/Helper');
App::uses('View', 'View');
class SampleHelperTest extends CakeTestCase {
public function setUp() {
$controller = null;
$View = new View($controller);
$this->Sample = new SampleHelper($View);
}
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
@monsat
monsat / proxy.sh
Created May 2, 2012 06:29
SOCKS Proxy by mac
#!/bin/sh
PROXY="$1"
PORT=1080
if [ "$2" != "" ]
then
PORT=$2
fi