Skip to content

Instantly share code, notes, and snippets.

View zxkane's full-sized avatar

Meng Xin Zhu zxkane

View GitHub Profile
@zxkane
zxkane / default
Last active August 29, 2015 14:25 — forked from pdeschen/initd
# defaults for VME wechat server
# pulled in from the init script; makes things easier.
NAME=vme-wechat
# location of java
JAVA=/home/jenkins/jenkins-home/tools/hudson.model.JDK/java-1.8/bin/java
# arguments to pass to java
JAVA_ARGS="-Dspring.profiles.active=svt" # specify active profile for spring boot
@zxkane
zxkane / Dockerfile
Last active October 8, 2017 18:31 — forked from dceejay/Dockerfile
Run latest node-red on Ubuntu 14.04
# Dockerfile for Node-RED - pulls latest master code from git
FROM ubuntu:14.04
# based on the original by @cpswan
MAINTAINER ceejay kane
# add universe repository to /etc/apt/sources.list
# we need it later as rlwrap is required by node.js
#RUN sed -i s/main/'main universe'/ /etc/apt/sources.list
using System;
namespace Helpers {
public class LocConverter {
public static double pi = Math.PI;
//
// Krasovsky 1940
//
// a = 6378245.0, 1/f = 298.3