Skip to content

Instantly share code, notes, and snippets.

View zhulinpinyu's full-sized avatar
🎯
Focusing

Lixiang Mu zhulinpinyu

🎯
Focusing
View GitHub Profile
letter frequency
A .08167
B .01492
C .02782
D .04253
E .12702
F .02288
State Under 5 Years 5 to 13 Years 14 to 17 Years 18 to 24 Years 25 to 44 Years 45 to 64 Years 65 Years and Over
CA 2704659 4499890 2159981 3853788 10604510 8819342 4114496
TX 2027307 3277946 1420518 2454721 7017731 5656528 2472223
NY 1208495 2141490 1058031 1999120 5355235 5120254 2607672
FL 1140516 1938695 925060 1607297 4782119 4746856 3187797
IL 894368 1558919 725973 1311479 3596343 3239173 1575308
PA 737462 1345341 679201 1203944 3157759 3414001 1910571
Expt Run Speed
1 1 850
1 2 740
1 3 900
1 4 1070
1 5 930
1 6 850
1 7 950
1 8 980
1 9 980
education population
大专级以上 11964
高中专 18799
初中 51966
小学 35876
文盲 5466
@zhulinpinyu
zhulinpinyu / kibana4_init
Created March 30, 2015 07:18
kibana4 后台运行,Thanks https://github.com/akabdog
#!/bin/sh
#
# /etc/init.d/kibana4_init -- startup script for kibana4
# bsmith@the408.com 2015-02-20; used elasticsearch init script as template
# https://github.com/akabdog/scripts/edit/master/kibana4_init
#
### BEGIN INIT INFO
# Provides: kibana4_init
# Required-Start: $network $remote_fs $named
# Required-Stop: $network $remote_fs $named
module CoordinateTransform
extend self
def wgs2gcj(wgsLat, wgsLng)
d = delta(wgsLat, wgsLng)
{latitude: wgsLat + d[:lat], longitude: wgsLng + d[:lng]}
end
def delta(lat, lng)
a = 6378245.0
rmq.append(UILabel, :hello_label)
rmq.append(UIButton, :hello_button).on(:tap) do |sender|
rmq(:hello_label).animate(
duration: 1,
animations: -> (q) {
q.style do |st|
st.scale = 0.6
st.view.alpha = 0.1
st.top = st.top - 50
end
@zhulinpinyu
zhulinpinyu / 01_step.sh
Last active August 29, 2015 14:23 — forked from Mikke/01_step.sh
rails g scaffold Book title:string description:text
rails g scaffold Pubhouse title:string address:text
rails g model BookPubhouse book_id:integer pubhouse_id:integer
rake db:migrate
sudo apt-get install apt-transport-https
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo bash -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install -y lxc-docker
@zhulinpinyu
zhulinpinyu / notes
Last active November 13, 2015 03:43
[{
"title":"Ha",
"description":"what is this, ok . let's rock!"
},{
"title":"Has",
"description":"what is this, ok . let's rock!"
},{
"title":"Has ok",
"description":"what is this, ok . let's rock!"
},{