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" | |
| ) |
| [Names] | |
| count=1 | |
| name0=Solarized Dark | |
| [Solarized Dark] | |
| text(bold)=839496 | |
| magenta(bold)=6c71c4 | |
| text=00ff40 | |
| white(bold)=fdf6e3 | |
| green=859900 | |
| red(bold)=cb4b16 |
| 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 |
| #define DEBUG_LEVEL_LOG | |
| #define DEBUG_LEVEL_WARN | |
| #define DEBUG_LEVEL_ERROR | |
| using UnityEngine; | |
| using System.Collections; | |
| // setting the conditional to the platform of choice will only compile the method for that platform |
| //Workaround for Unity game slowing in iPhone4 + 7.1 | |
| //Write in main.mm | |
| #include <pthread.h> | |
| #include <dlfcn.h> | |
| typedef int (*pthread_create_f)(pthread_t * __restrict, const pthread_attr_t * __restrict, void *(*)(void *), void * __restrict); | |
| static pthread_create_f real_create = NULL; | |
| extern "C" int pthread_create(pthread_t * __restrict thread, const pthread_attr_t * __restrict attr, void *(*start)(void *), void * __restrict arg) |