Hello, world
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LatLongPoint { | |
private double latitude; | |
private double longitude; | |
private double altitude; | |
public LatLongPoint(double latitude, double longitude) { | |
this(latitude, longitude, 0.0); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import datetime | |
import multiprocessing | |
TMP_DIR='/tmp' | |
RAW_DIR='/raw_data/access' | |
def _print(msg): | |
print datetime.datetime.now().isoformat(), '-', msg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import socket | |
import sys | |
import datetime | |
def _print(msg): | |
print datetime.datetime.now().isoformat(), '-', msg | |
def parse_log(log): | |
parts = log.split('|') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GOVERSION=1.11.1 | |
GOPREFIX=/local/go | |
TMP=`pwd`/go-cmd-`date +%s` | |
GOX=src/golang.org/x | |
GOBUILD=go$GOVERSION.linux-amd64.tar.gz | |
mkdir -p $TMP/$GOX |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget http://lib.fwso.cn/james-vim.tar.bz2; | |
tar xjf james-vim.tar.bz2; | |
if [ -d ~/.vim ] | |
then | |
mv ~/.vim ~/_vim.old; | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export ECLIPSE_PREFIX=/usr/local | |
export ECLIPSE_HOME=$ECLIPSE_PREFIX/eclipse | |
export WORK_USER=linhua | |
sudo yum install -y xorg-x11-server-Xvfb | |
wget http://mirrors.yun-idc.com/eclipse//technology/epp/downloads/release/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz # (Fast at the time testing) | |
#wget http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var i uint64 = 10 | |
for ; i >= 0; i-- { | |
fmt.Printf("> %d\n", i) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum install -y lua-devel ncurses ncurses-devel gcc gcc-c++ automake python36-devel | |
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --prefix=/usr \ | |
--with-features=huge \ | |
--enable-gui=no \ | |
--without-x \ | |
--enable-luainterp \ | |
--with-lua-prefix=/usr/local \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.uve.log; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import org.json.*; | |
public class StatsParser { | |
public static final String L1S = "\\x1A"; | |
public static final String L1CS = "\\x1C"; | |
public static final String L2S = "\\x01"; |
OlderNewer