Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| defmodule DSL do | |
| defmacro extend_struct struct_mod, keyword do | |
| quote do | |
| defstruct Keyword.merge(Map.to_list(Map.from_struct(unquote(struct_mod).__struct__)), unquote(keyword)) | |
| end | |
| end | |
| end |
| name: Elixir CI | |
| on: push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: |
| ("`-’-/").___..--’’"`-._ | |
| `6_ 6 ) `-. ( ).`-.__.‘) | |
| (_Y_.)’ ._ ) `._ `. ``-..-’ | |
| _..`--’_..-_/ /--’_.’ ,’ | |
| (il),-’‘ (li),’ ((!.-‘ |
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.
| [{ | |
| "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!" | |
| },{ |
| 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 |
| 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 |
| 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 |
| 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 |