Skip to content

Instantly share code, notes, and snippets.

Handlebars is a semantic web template system, started by Yehuda Katz in 2010.
Handlebars.js is a superset of Mustache, and can render Mustache templates in addition to Handlebars templates.
More: http://handlebarsjs.com/
1. Expressions.
1.1 Basic usage.
China stock api
1.163_API(0-sh,1-sz):http://api.money.126.net/data/feed/1002151,0600036,hkHSI,hkHSCEI,hk00005
2.QQ_API(sh,sz,s_simple data):http://qt.gtimg.cn/r=0.8409869808238q=s_sz000559,s_sz002434,s_sz002472,s_sz002488,hk00700
3.sina_API(sh,sz,s_simple data):http://hq.sinajs.cn/list=sh600000,sh600004,hk00700,sz002594
# 4.xueqiu_API:http://xueqiu.com/v4/stock/quote.json?code=02318,01211,SH000001,DJI30,HKHSI
163
日内实时盘口(JSON):
http://api.money.126.net/data/feed/1000002,1000001,1000881,0601398,money.api
@jet10000
jet10000 / README.md
Created December 15, 2015 09:14 — forked from nicerobot/README.md
Mac OS X uninstall script for packaged install of node.js

To run this, you can try:

curl -ks https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh | bash

I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.

Alternatively,

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh

chmod +x ./uninstall-node.sh

@jet10000
jet10000 / gist:f91a6332c14d392a64b6
Last active August 29, 2015 14:07
ubuntu14.04+dchest_captcha+supervisor
ubuntu@testserver:~$ sudo apt-get install supervisor
ubuntu@testserver:~$ sudo service supervisor restart
ubuntu@testserver:~$ cd /etc/supervisor/conf.d/
ubuntu@testserver:/etc/supervisor/conf.d$ sudo nano -w captcha.conf
======================================================================
[program:dchest_captcha]
command=/usr/local/bin/captcha
@jet10000
jet10000 / theme
Last active August 29, 2015 14:04
framework-theme
framework:
-bootstrap3
theme:
-http://unsemantic.com/css-documentation
-http://www.texts.io/samples/
-http://formalize.me/jquery_demo.html
-http://goratchet.com/
-http://lab.lepture.com/editor/
-http://epiceditor.com/
xy@ubuntu:~$ sudo -u postgres psql template1
psql (9.3.4)
Type "help" for help.
template1=# \password postgres
Enter new password:
=============================================
sudo -u postgres psql
postgres-# \list
@jet10000
jet10000 / installing-sphinxsearch-ubuntu13.10
Created April 11, 2014 09:38
installing sphinxsearch ubuntu13.10
There are two ways of getting Sphinx for Ubuntu: regular deb packages and the Launchpad PPA repository.
Deb packages:
Sphinx requires a few libraries to be installed on Debian/Ubuntu. Use apt-get to download and install these dependencies:
$ sudo apt-get install mysql-client unixodbc libpq5
Now you can install Sphinx:
$ sudo dpkg -i sphinxsearch_2.0.10-release-0ubuntu11~precise_amd64.deb
@jet10000
jet10000 / installing-mariadb-10.10-on-ubuntu-13.10
Last active August 29, 2015 13:58
Installing MariaDB-10.10 on Ubuntu-13.10
The procedure for installing MariaDB on Debian, Ubuntu, and Linux Mint is easy,
and starts with a visit to the Repository Configuration Tool at:
http://downloads.mariadb.org/mariadb/repositories
山形大学, 米沢市 - Yamagata University, Yonezawa
Before using the tool you need to know which version of Ubuntu, Debian, or Mint touse.
If you do not know, an easy way to find out is with the following command: