Skip to content

Instantly share code, notes, and snippets.

View chilijung's full-sized avatar
👋
Focusing

Howard Chi chilijung

👋
Focusing
View GitHub Profile

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@audreyt
audreyt / posa.mkdn
Last active November 28, 2022 21:24
EtherCalc.tw

從 SocialCalc 到 EtherCalc

先前在《開源應用程式架構》 一書中,我介紹了 SocialCalc 這個在瀏覽器中運行的試算表編輯器,以取代伺服器為中心的 WikiCalc 架構。SocialCalc 在瀏覽器中執行所有的運算,只有在載入和儲存試算表時才會使用伺服器。

追求效能是 Socialtext 團隊在 2006 年時設計 SocialCalc 的主要目的。重點在於:在 JavaScript 環境下執行客戶端運算,儘管在當年的速度僅有伺服器端 Perl 運算的十分之一,但仍然勝過 AJAX 來回傳輸資料造成的網路延遲:


WikiCalc 與 SocialCalc 架構比較

******
@mbostock
mbostock / .block
Last active February 26, 2019 22:40
Box Plots
license: gpl-3.0
redirect: https://observablehq.com/@d3/d3-box-plot
@desandro
desandro / bower-logo.md
Last active December 30, 2021 23:11
Bower logo

In addition to awesome docs #228, Bower deserves a proper logo. See below for sketches. I'm curious if you think any of these are worth me putting more effort into.


Take a look at Yeoman right now.

Screen Shot 2013-02-19 at 4 43 10 PM

The other two entities have awesome logos. Bower's got to represent.

@metaskills
metaskills / gist:5024393
Created February 24, 2013 16:18
Bootstrap 2.3's mixin.less incompatibilities.
@@ -558,13 +567,13 @@
.core (@gridColumnWidth, @gridGutterWidth) {
.spanX (@index) when (@index > 0) {
- (~".span@{index}") { .span(@index); }
+ .span@{index} { .span(@index); }
.spanX(@index - 1);
}
.spanX (0) {}
@wwwy3y3
wwwy3y3 / db_con.js
Last active December 16, 2015 09:28
async database connection manager, singleton pattern
var path= require('path');
//var cpath= path.resolve(__dirname, '..', '..', '..', 'node_modules', 'cassandra-client');
var Connection = require('cassandra-client').Connection;
var EventEmitter = require('events').EventEmitter;
/*
* four stages of connection
* 1. restart the server, connection is null
* 2. new Connection(options), but not yet connect, (client= null, doesn't have con, nothing in validators)
@clkao
clkao / gist:5468139
Last active December 16, 2015 17:09
「全國村里界圖(台澎金馬)-經緯度/TW-07-301000100G-613995」修正
敬啟者,
貴單位提供之全國村里界圖資「全國村里界圖(台澎金馬)-經緯度/TW-07-301000100G-613995」有如下問題:
1. 村里名稱為 big5 外字集者,出現■或?。
2. 2013 年三月份新增之竹北市四里之 V_ID 仍為分割前「十興里」之 V_ID。
3. 不連續村里(灣雅村、聖湖里)應為同一 multi-polygon feature。
4. 外島村里未給定 V_ID, VILLAGE_ID
5. 外島村里未更新(金門縣金城鎮金城里已經分割為不同里,根據 http://www.dgbas.gov.tw/public/Attachment/812159284671.pdf)
6. 新竹市古賢里為兩相鄰 feature,應合併之。

Docker PostgreSQL How-To

How to use [zaiste/postgresql][1] Docker container.

Docker >= 0.5.0 required.

docker pull zaiste/postgresql
@dzenkovich
dzenkovich / slider.js
Created June 19, 2013 11:38
Very simple upgrade to very simple basic 'slider' bar in JavaScript and CSS :) originating from this gist https://gist.github.com/kosso/1118840
var Slider = function(options){
var bar,
slider,
toggle,
percent,
that = this;
function _init(options){
_construct();
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active March 21, 2025 15:01
Backend Architectures Keywords and References