Skip to content

Instantly share code, notes, and snippets.

$(function () {
$('#container').highcharts({
chart: {
type: 'column',
options3d: {
enabled: true,
alpha: 15,
beta: 15,
viewDistance: 25,
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://cdn.hcharts.cn/highcharts/highcharts-3d.js"></script>
<script src="http://jashkenas.github.io/underscore/underscore-min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
function throttle( fn, time ) {
var t = 0;
return function() {
var args = arguments, ctx = this;
clearTimeout(t);
t = setTimeout( function() {
fn.apply( ctx, args );
}, time );
};
@lyuehh
lyuehh / _.md
Created July 28, 2014 02:55
test
@lyuehh
lyuehh / _.md
Created July 28, 2014 02:17
test
@lyuehh
lyuehh / a.md
Last active August 29, 2015 14:03

1 获取数据

curl -s http://zh.wikipedia.org/zh-cn/%E6%91%A9%E5%A4%A9%E5%A4%A7%E6%A8%93%E5%88%97%E8%A1%A8 | hquery -p -l table2csv -a '.wikitable:first'

排名,名称[A][2],城市,所在地区,所在洲,高度,楼层,落成年份
1,哈里发塔,迪拜, 阿联酋,亚洲,828米,2,717英尺,163,2010
2,上海中心,上海, 中国大陆,亚洲,632米,2,073英尺,128,2014
3,麦加皇家钟塔饭店,麦加, 沙特阿拉伯,亚洲,601米,1,971英尺,120,2012
4,天津高银117大厦,天津, 中国大陆,亚洲,597米,1,959英尺,120,2017
# NPM CheatSheet.
# Super easy intall: npm comes with node now.
# To create your own npm package: https://www.npmjs.org/doc/misc/npm-developers.html
# More: https://www.npmjs.org/doc/
# 1. NPM Command Lines.
# Local mode is the default.
# Use --global or -g on any command to operate in global mode instead.
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
import XMonad
import Data.Monoid
import qualified Data.Map as M
import qualified XMonad.StackSet as W
import System.Exit
import XMonad.Actions.CycleWS
import XMonad.Actions.GridSelect
import XMonad.Util.Cursor
import XMonad.Util.SpawnOnce
import XMonad.Util.EZConfig
#!/bin/bash
# load resources
xrdb -merge .Xresources
#xsetroot -solid '#222'&
# map caps lock as extra escape
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'&
# start clipboard manager
parcellite&