Install LiveScript to Global Env.
npm install -g LiveScript
| define('KEY','your_key'); | |
| define('SECRET','your_secret'); | |
| define('SIG',md5(KEY.SECRET)); | |
| define('PARAM','api_key='.KEY.'&api_sig='.SIG); | |
| define('SHELF_API','http://api.anobii.com/shelf/getSimpleShelf?'); | |
| define('ITEM_API','http://api.anobii.com/item/getInfo?'); | |
| define('AUTHOR_API','http://api.anobii.com/contributor/getInfo?'); | |
| //取得書籍的作者 | |
| function getAuthor($authorid,$itemid){ |
| #!/bin/bash | |
| # Create more PHP source file on batch processing. | |
| usage="makePHP.sh number\n\tnumber - set up quantity files."; | |
| #echo "Argument lenght is $#"; | |
| if [ $# -gt 1 ] || [ $# -eq 0 ]; then | |
| # Display help message. | |
| echo -e $usage; |
| #!/bin/bash | |
| # 收集練習的PHP Code產生連結到index.html裡,可以切換到不同的綀習程式。 | |
| DEBUG=false; | |
| TITLE="Tutorial code of PHP"; | |
| HEADER="List PHP Code"; | |
| HTML_FILE="index.html"; | |
| # 建立PHP的超連結 | |
| for FILE in `ls -1 t*.php`; do | |
| COMMENT=`head -10 $FILE | grep -P "/\*\n.+\n\*/"`; | |
| LINKS="<li><span>$COMMENT</span><br><a href='$FILE'>$FILE</a></li>\n"; |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
| #!/bin/sh | |
| # | |
| # nginx - this script starts and stops the nginx daemon | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
| # proxy and IMAP/POP3 proxy server | |
| # processname: nginx | |
| # config: /etc/nginx/nginx.conf | |
| # config: /etc/sysconfig/nginx |
| ./configure \ | |
| --build=x86_64-redhat-linux-gnu \ | |
| --host=x86_64-redhat-linux-gnu \ | |
| --target=x86_64-redhat-linux-gnu \ | |
| --program-prefix= \ | |
| --prefix=/usr \ | |
| --exec-prefix=/usr \ | |
| --bindir=/usr/bin \ | |
| --sbindir=/usr/sbin \ | |
| --sysconfdir=/etc \ |
| ./configure \ | |
| --with-http_ssl_module \ | |
| --with-http_realip_module \ | |
| --with-http_stub_status_module \ | |
| --with-http_geoip_module |
| package main | |
| import ( | |
| "container/list" | |
| "fmt" | |
| "sync" | |
| ) | |
| // Define Stack class | |
| type Stack struct { |
| #!/usr/bin/env python | |
| import matplotlib.mlab as mlab | |
| from matplotlib.pyplot import figure, show | |
| import numpy as np | |
| x = np.arange(0.0, 2, 0.01) | |
| y1 = np.sin(2*np.pi*x) | |
| y2 = 1.2*np.sin(4*np.pi*x) | |
| fig = figure() |