Skip to content

Instantly share code, notes, and snippets.

View Shenglian's full-sized avatar
🤒
Out sick

Sheng Shenglian

🤒
Out sick
  • Tw
View GitHub Profile
@Shenglian
Shenglian / default.conf
Created November 22, 2018 08:48
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@Shenglian
Shenglian / jsnote.js
Created September 26, 2017 00:53 — forked from Louis0723/jsnote.js
你平常不會用到的js
str1 = "http://www.google.tw/search?q=中文";
obj = {
get a(){return '1';},
set b(value){this.c = value;},
c:1
};
class Cls{
constructor(name){
console.log("hello",name);
if (typeof(new.target)==='function')
@Shenglian
Shenglian / cities.json
Created April 14, 2017 03:27 — forked from Miserlou/cities.json
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},