npm run build
->gulp build
npm run clean
->gulp clean
npm test
->gulp test
npm run watch
->gulp watch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'node-fetch'; | |
import Rx from 'rx'; | |
function makeHTTPDriver() { | |
var requests = {}; | |
return function(request$) { | |
return request$ | |
.filter(request => { | |
if (typeof request === 'undefined' || request === null) return false; | |
const { id } = request; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rx.Observable.create((observer) => { | |
setTimeout(() => { | |
observer.onNext(1000); | |
setTimeout(() => { | |
observer.onNext(3000); | |
setTimeout(() => { | |
observer.onCompleted(5000); | |
}, 2000); | |
}, 2000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mithril-b-html-plus | |
# | |
# e.g. | |
# ```coffee-script | |
# compile = require './mithril-b-html-plus' | |
# template = compile ''' | |
# <p | |
# @b-text message | |
# ''' | |
# template message: 'Hello!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<modifierdef>BOUZUYA_SUPER_L</modifier> | |
<modifierdef>BOUZUYA_SUPER_R</modifier> | |
<item> | |
<name>bouzuya's super key</name> | |
<item> | |
<name>BOUZUYA_SUPER_R+JIS_EISUU (BOUZUYA_SUPER_L) to ESCAPE</name> | |
<identifier>private.bouzuya_super_r_jis_eisuu_to_escape</identifier> | |
<autogen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
date=$1 | |
year=$(echo ${date} | sed -e 's/\([0-9]*\)-\([0-9]*\)-\([0-9]*\)/\1/g') | |
month=$(echo ${date} | sed -e 's/\([0-9]*\)-\([0-9]*\)-\([0-9]*\)/\2/g') | |
markdown=/home/bouzuya/.ghq/github.com/bouzuya/blog.bouzuya.net/data/${year}/${month}/${date}-diary.md | |
source /home/bouzuya/profile.d/hatena.sh | |
hatena-blog create --jekyll ${markdown} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cat >LICENSE <<'EOS' | |
The MIT License (MIT) | |
Copyright (c) 2015 bouzuya | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- ... --> | |
<style type="text/css"> | |
@keyframes embedded-loader-line-animation { | |
0% { transform: scaleY(1); } | |
50% { transform: scaleY(0.3); } | |
100% { transform: scaleY(1); } | |
} |