Skip to content

Instantly share code, notes, and snippets.

View zhulinpinyu's full-sized avatar
🎯
Focusing

Lixiang Mu zhulinpinyu

🎯
Focusing
View GitHub Profile
@zhulinpinyu
zhulinpinyu / OpenLayers 3 Google Maps API.md
Last active January 23, 2016 01:49 — forked from elemoine/README.md
OpenLayers 3 Google Maps API

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!

("`-’-/").___..--’’"`-._
`6_ 6 ) `-. ( ).`-.__.‘)
(_Y_.)’ ._ ) `._ `. ``-..-’
_..`--’_..-_/ /--’_.’ ,’
(il),-’‘ (li),’ ((!.-‘
name: Elixir CI
on: push
jobs:
build:
runs-on: ubuntu-latest
container:
@zhulinpinyu
zhulinpinyu / struct_extension.ex
Created October 17, 2019 06:18 — forked from zampino/struct_extension.ex
Elixir Extending a Struct
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zhulinpinyu
zhulinpinyu / web-servers.md
Created November 18, 2021 02:59 — forked from willurd/web-servers.md
Big list of http static server one-liners

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.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
大写A到Z的字母:A:65 B:66 C:67 D:68 E:69 F:70 G:71 H:72 I:73 J:74 K:75 L:76 M:77 N:78 O:79 P:80 Q:81 R:82 S:83 T:84 U:85 V:86 W:87 X:88 Y:89 Z:90
小写a到z的字母:a:97 b:98 c:99 d:100 e:101 f:102 g:103 h:104 i:105 j:106 k:107 l:108 m:109 n:110 o:111 p:112 q:113 r:114 s:115 t:116 u:117 v:118 w:119 x:120 y:121 z:122
数字0到9:0:48 1:49 2:50 3:51 4:52 5:53 6:54 7:55 8:56 9:57
常用符号:,(逗号):44 .(句号):46 (空格):32 还有其他一些符号,是从33开始的,自己去发觉吧!
跶:36342
啊:21834 阿:38463 埃:22467 挨:25384 哎:21710 唉:21769 哀:21696 皑:30353 癌:30284 蔼:34108 矮:30702 艾:33406 碍:30861 爱:29233 隘:38552 鞍:38797 氨:27688 安:23433 俺:20474 按:25353 暗:26263 岸:23736 胺:33018 案:26696 肮:32942 昂:26114 盎:30414 凹:20985 敖:25942 熬:29100 翱:32753 袄:34948 傲:20658 奥:22885 懊:25034 澳:28595 芭:33453 捌:25420 扒:25170 叭:21485 吧:21543 笆:31494 八:20843 疤:30116 巴:24052 拔:25300 跋:36299 靶:38774 把:25226 耙:32793 坝:22365 霸:38712 罢:32610 爸:29240 白:30333 柏:26575 百:30334 摆:25670 佰:20336 败:36133 拜:25308 稗:31255 斑:26001 班:29677 搬:25644 扳:25203 般:33324 颁:39041 板:26495 版:29256 扮:25198 拌:25292 伴:20276 瓣:29923 半:21