Skip to content

Instantly share code, notes, and snippets.

@hakobe
hakobe / main.md
Last active December 20, 2018 04:44
Kyoto.js #7 何がMVCをつなげているのか

何がMVCをつなげているのか

クライアントサイドMVC

  • buzzwordっぽい
  • Backbone.js Angular.js Knockout.js Ember.js とか
  • 使ってますか?
    • はてなでも一部本番運用/社内向けツールではよくみる
  • クライアントサイドMVCフレームワークを利用するとMVCによる設計方針を簡単に使うことができるようになる
@hakobe
hakobe / 0.txt
Created September 19, 2012 23:55 — forked from anonymous/gist:3753105
0
@hakobe
hakobe / gist:1777331
Created February 9, 2012 04:37
Hatena-Project zsh completion
function h {
cd ~/work/hatena/$1
}
function _h {
local allfiles
local -a _projects _others
allfiles=`find ~/work/hatena/* -type d -maxdepth 0 -exec basename '{}' ';'`
@hakobe
hakobe / Makefile
Created January 21, 2012 05:03
make testflight
.PHONY: all build archive testflight
PROJECT ?= BKUMA.xcodeproj
SCHEME ?= B!KUMA Girls
SIGN ?= iPhone Developer: Yohei Fushii (123456789)
MOBILEPROVISION ?= provisionings/$(SCHEME).mobileprovision
DISTRIBUTION_LIST ?= B!KUMA Testers
NOTIFY ?= False
all: archive
@hakobe
hakobe / listnewanime.pl
Created January 4, 2012 14:03
list your winter season animes
use strict;
use warnings;
use utf8;
binmode STDOUT => 'utf8';
use WebService::SyoboiCalendar;
use Config::Pit qw(pit_get);
use YAML;
use Perl6::Say;
use strict;
use warnings;
use Net::DNS::Nameserver;
sub reply_handler {
my ($qname, $qclass, $qtype, $peerhost,$query,$conn) = @_;
my ($rcode, @ans, @auth, @add);
warn $qtype;
use strict;
use warnings;
use AnyEvent;
use AnyEvent::HTTPD;
use AnyEvent::Util qw(run_cmd);
use Cwd;
my $httpd = AnyEvent::HTTPD->new (port => 9090);
my $last_pid = undef;
hello
use strict;
use warnings;
sub circular_ref {
my $left = {
};
my $right = {
};
$left->{right} = $right;
sys = require('sys')
crypto = require('crypto')
key = (values) ->
sha1 = crypto.createHash('sha1')
sha1.update values.join('-')
sha1.digest('hex')
memoize = (f, memo = {} ) -> (args...) -> memo[k = key(args)] or memo[k] = f args...