Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| import Vec3 from "/fungi/maths/Vec3.js"; | |
| class Bezier{ | |
| static get(p0, p1, p2, p3, t, out){ | |
| let i = 1 - t, | |
| ii = i * i, | |
| iii = ii * i, | |
| tt = t * t, | |
| ttt = tt * t, | |
| iit3 = 3 * ii * t, | 
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| defmodule XmlParsingTest do | |
| @moduledoc """ | |
| 从xmerl模块头文件中提取XML元素记录 | |
| 我们要提取的两个记录在xmerl.hrl中的定义分别为 | |
| - xmlElement | |
| ``` | |
| -record(xmlElement,{ | |
| name, % atom() | |
| expanded_name = [], % string() | {URI,Local} | {"xmlns",Local} | |
| nsinfo = [], % {Prefix, Local} | [] | 
| # Install tmux on Centos release 6.5 | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
| tar -xvzf libevent-2.0.21-stable.tar.gz | |
| cd libevent-2.0.21-stable | |
| ./configure --prefix=/usr/local | 
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | 
| package controllers | |
| import ( | |
| "encoding/base64" | |
| "errors" | |
| "github.com/robfig/revel" | |
| "net/http" | |
| "strings" | |
| ) | 
首先去lua的官网下载lua:http://www.lua.org/ftp/ 这里测试用的是:1.5.5
保存下来脚本到mylua.bat到lua的目录下,然后用Visual Studio Tools》Developer Command Prompt来运行这个bat就可以了,会在src下面生产一个lua515vc.dll
| [Names] | |
| count=1 | |
| name0=Solarized Dark | |
| [Solarized Dark] | |
| text(bold)=839496 | |
| magenta(bold)=6c71c4 | |
| text=00ff40 | |
| white(bold)=fdf6e3 | |
| green=859900 | |
| red(bold)=cb4b16 | 
| /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory | |
| /usr/local/bin/brew: line 26: /usr/local/Library/brew.rb: Undefined error: 0 | |
| 执行修复: | |
| cd /usr/local/Library | |
| git pull origin master | 
| apt-get install devscripts build-essential | |
| apt-get build-dep golang-go | |
| wget http://ftp.us.debian.org/debian/pool/main/g/golang/golang_1.3.1-1.dsc | |
| wget http://ftp.us.debian.org/debian/pool/main/g/golang/golang_1.3.1.orig.tar.gz | |
| wget http://ftp.us.debian.org/debian/pool/main/g/golang/golang_1.3.1-1.debian.tar.xz | |
| dpkg-source -x golang_1.3.1-1.dsc | |
| cd golang-1.3.1/ | |
| debuild -us -uc |