Skip to content

Instantly share code, notes, and snippets.

View bouzuya's full-sized avatar

bouzuya bouzuya

View GitHub Profile
@bouzuya
bouzuya / mithril-b-html-plus.coffee
Last active August 29, 2015 09:32
mithril-b-html-plus
# mithril-b-html-plus
#
# e.g.
# ```coffee-script
# compile = require './mithril-b-html-plus'
# template = compile '''
# <p
# @b-text message
# '''
# template message: 'Hello!'
// ==UserScript==
// @name Github WIP pull request
// @namespace https://github.com/emanon001/
// @description Github での WIP pull request 運用を便利にするあれこれ
// @include https://github.com/*/pull/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);
# Description:
# syussya
#
# Dependencies:
# "request"
# "cheerio"
#
# Configuration:
# None
#
# Description:
# clojure bot
https = require 'https'
module.exports = (robot) ->
bot_url = process.env.HUBOT_CLOJUREBOT_URL
bot_port = process.env.HUBOT_CLOJUREBOT_PORT
robot.hear /^(\(.*\))$/ig, (msg) ->
httprequest = msg.http("http://" + bot_url + ":" + bot_port)

なんかダメだな、Qiita見てると 「恐らくはJavaScriptの達人であろう所のTwitterやGoogleのプログラマ達が取り組んですらあの体たらく、常人はJavaScript避けるべき」な主張してる人見かけるし、それって自分の無能を棚に上げてチャレンジしないって言ってるようにしか聞こえないし、それでいいとするならそれでいいけど、そんな悲しい主張、Qiitaみたいなエッジな技術者がたくさん集まるような場所ですんなよっていいたくなる。

Node学園に来てくれてる海外エンジニアはそんなの気にしないでUX最適にするっていうのにチャレンジしてるからあんなに活躍できてるわけで、なんでそんな主張して賛成してる奴多いんだよ。そんなんだから日本のweb開発遅れるんだよって言いたくなる。

@bouzuya
bouzuya / shuburi.md
Last active August 29, 2015 14:11
bouzuya 版週ぶり (bouzuya's shuburi) / 旧・週ぶり (shuburi) 初期コンセプト
@vvakame
vvakame / usage.ts
Created January 4, 2015 13:20
commander https://www.npmjs.com/package/commander をTypeScriptになじみやすく書きなおす例
/// <reference path="../typings/node/node.d.ts" />
import command = require("../lib/index");
var root = command
.create<{replace: boolean; config: string[];}>()
.description("foo bar")
.option("-r, --replace", "replace files")
.option("-c, --config <file>", "specified config file")
.action((opts, rest) => {
@bouzuya
bouzuya / coreos-cluster.md
Created January 31, 2015 08:40
CoreOS cluster メモ

独習 CoreOS cluster

Goal

  • CoreOS cluster の安定稼働
  • CoreOS の知識を増やす

Method

  • 公式のドキュメントを読みつつ、ローカルに CoreOS cluster をつくり、ためす
if(document.documentMode !== void 0){
alert("Internet Explorer は 11.x を含む全てのバージョンで標準の仕様から逸脱しています。\nIEの使用を直ちに中止してください。");
window.open("http://www.google.com/chrome/", '_blank');
location.href = "https://www.mozilla.org/ja/firefox/";
}
@bouzuya
bouzuya / gulp.md
Created March 22, 2015 02:46
gulp メモ

A note for gulp

required tasks

  • npm run build -> gulp build
  • npm run clean -> gulp clean
  • npm test -> gulp test
  • npm run watch -> gulp watch

gulp build