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
var Rx = require('rx'); | |
var pauses = new Rx.Subject(); | |
var ends = new Rx.Subject(); | |
pauses. | |
flatMap(function () { | |
return Rx.Observable.amb( | |
Rx.Observable.timer(1000). | |
map(function () { return true }), | |
ends.map(function () { return false }) |
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
" VimRC used by pctao@pcsh.org s8912@cs.nccu.edu.tw | |
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
map ,e :e <C-R>=expand("%:p:h") . "/" <CR> | |
map j jzz | |
map k kzz | |
set t_Co=256 |
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
<?php | |
$counts = 1000000; | |
$var = "ABCFDSFDSA"; | |
$s1 = time(); | |
for($i = 0; $i < $counts; $i++){ | |
echo 'XD' . 'XD'; | |
} | |
$s2 = time(); |
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
<h1><%=h '藝術品交易市場' %></h1> | |
<%= link_to '新增', new_item_path %> | |
<table id="market"> | |
<thead> | |
<tr> | |
<td class="brand"><%=h '品牌' %></td> | |
<td class="category"><%=h '分類' %></td> | |
<td class="topic"><%=h '標題' %></td> |
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
var Rx = require('rx'); | |
var Observable = Rx.Observable; | |
var Subject = Rx.Subject; | |
var hover = new Subject(); | |
var blur = new Subject(); | |
var hovers = hover.asObservable(); | |
var blurs = blur.asObservable(); | |
var HOVER_TIMER = 300; |
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
l1 = log --format='%C(yellow)%h%C(reset) -%C(red bold)%d%C(reset) %s %C(cyan)<%an>%C(reset)' | |
l2 = log --format='%C(yellow)%h%C(reset) -%C(red bold)%d%C(reset) %s %C(green)(%cr) %C(cyan)<%an>%C(reset)' | |
ls = log --format='%C(yellow)%h%C(reset) -%C(red bold)%d%C(reset) %s %C(green)(%cr) %C(cyan)<%an>%C(reset)' --stat | |
lt = log --format='%C(yellow)%h%C(reset) -%C(red bold)%d%C(reset) %s %C(green)(%cr) %C(cyan)<%an>%C(reset)' | |
lg = log --format='%C(yellow)%h%C(reset) -%C(red bold)%d%C(reset) %s %C(green)(%cr) %C(cyan)<%an>%C(reset)' --graph | |
lm = log --format='%C(yellow)%h%C(reset) -%C(red bold)%d%C(reset) %s %C(green)(%cr)%C(reset)' --author=huge |
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
var factory = (function () { | |
'use strict'; | |
return function (suffix, type, url) { | |
return function (options) { | |
var m = { | |
suffix: suffix, | |
type: type, | |
url: url, | |
custom: {} |
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
========= a.js ============= | |
#!/usr/bin/env node | |
module.exports = function A() { | |
init(); | |
} | |
========= test/test.js ============= | |
var A = require('../a.js'); |
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
{"name":"11-packagemath","url":"git"}, | |
{"name":"11-packagename","url":"git"}, | |
{"name":"a2s","url":"git@github_personal:Schoonology/node-a2s.git"}, | |
{"name":"aaa","url":"http:/www.google.git"}, | |
{"name":"abc-web","url":"git@gitlab.alibaba-inc.com:abc/abc-ui.git"}, | |
{"name":"abc-generator","url":"git@gitlab.alibaba-inc.com:abc/abc-generator.git"}, | |
{"name":"abc-web-core","url":"git@gitlab.alibaba-inc.com:abc/abc-web-core.git"}, | |
{"name":"acorn","url":"http://marijnhaverbeke.nl/git/acorn"}, | |
{"name":"acs-cli","url":"https://bitbucket.org/tellagostudios/node-acs-cli.git"}, | |
{"name":"actionman","url":"https://bitbucket.org/DamonOehlman/actionman.git"}, |
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
<div id="body"> | |
<input id="mdxRatings" type="range" class="ratings" min="1" max="5" value="1" onchange="mdxRatings.dataset.value=value;" /> | |
</div> |