Skip to content

Instantly share code, notes, and snippets.

🐬
I may be slow to respond.

Lixiang Mu zhulinpinyu

Block or report user

Report or block zhulinpinyu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1830ceb9f8290dba2e6597196114002f
("`-’-/").___..--’’"`-._
`6_ 6 ) `-. ( ).`-.__.‘)
(_Y_.)’ ._ ) `._ `. ``-..-’
_..`--’_..-_/ /--’_.’ ,’
(il),-’‘ (li),’ ((!.-‘
@zhulinpinyu
zhulinpinyu / OpenLayers 3 Google Maps API.md
Last active Jan 23, 2016 — forked from elemoine/README.md
OpenLayers 3 Google Maps API
View OpenLayers 3 Google Maps API.md

Use OL3 and Google Maps together

This GIST provides an example of a Google Maps map with an OL3 map as control, to give users a Google base map with OL3 content on top.

Open the corresponding bl.ock to view the example in your browser.

Warning!

View notes
[{
"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!"
},{
View latest-docker-install.sh
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
View 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
View UILabel Animate
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
View CoordinateTransform
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
View kibana4_init
#!/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
View china_simplify.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View pie-chart.csv
education population
大专级以上 11964
高中专 18799
初中 51966
小学 35876
文盲 5466
You can’t perform that action at this time.