Skip to content

Instantly share code, notes, and snippets.

View zbryikt's full-sized avatar

zbryikt zbryikt

View GitHub Profile
<style id="jsbin-css">
body {
background: #f00;
}
</style>
hihi
<script id="jsbin-javascript">
console.log("ok");
</script>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<script>
var death_rate = [['越南',24.26],['阿魯巴',17.48],['關島',10.01],['澳門',5.84]];
var div_data_bind = d3.select("body").selectAll("div").data(death_rate);
div_set = div_data_bind.enter().append("div");
@zbryikt
zbryikt / README.md
Last active October 18, 2016 04:42
紗帽山與前山公園 + 郵筒與建築 / QGIS + three.js 實作 by 林立哲
<html>
<head></head><title>Page Title. Maximum length 60-70 characters</title>
<meta name="description" content="Page description. No longer than 155 characters." />
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@loadingio">
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="Page description less than 200 characters">
<meta name="twitter:creator" content="@loadnigio
@zbryikt
zbryikt / .gitignore
Last active August 29, 2015 14:27 — forked from mbostock/.block
Bubble Chart
node_modules
assets
server.ls
@zbryikt
zbryikt / README.md
Last active August 29, 2015 14:21 — forked from mbostock/.block
@zbryikt
zbryikt / README.md
Last active August 29, 2015 14:21
retrieve access token using google service account

Here is a code snippet to retrieve access token via google service account.

@zbryikt
zbryikt / README.md
Last active August 29, 2015 14:19 — forked from mbostock/.block
require! <[fs cheerio request bluebird]>
prequest = (config) -> new bluebird (res, rej) ->
(e,r,b) <- request config, _
if e or !b => return rej {e,r,b}
return res {e,r,b}
degrule = /(\d+)°(\d+)′([0-9.]+)″([NEWS])/
$ = cheerio.load(fs.read-file-sync \list.html .toString!)
months = <[January February March April May June July August September October November December]>
@zbryikt
zbryikt / css-guideline.md
Last active February 24, 2024 07:04
CSS 開發規範與心法整理

CSS 命名 / 架構規範上的幾個大方向

參考: OOCSS, SMACSS, BEM, AMCSS, SUITCSS, ACSS

  1. 分類 (smacss) base - 基本元件, like, a, b, img, 最基礎的屬性, 可能在任何場合被使用 layout - 整個網站的大架構 module - 功能性元件, 比方說選單 state - 狀態指示, 像是 打開 / 關上 / 等待中