Skip to content

Instantly share code, notes, and snippets.

Avatar
🤒
Out sick

Sheng Shenglian

🤒
Out sick
  • Tw
View GitHub Profile
@Shenglian
Shenglian / tab.js
Last active Jul 10, 2020
bookmark data
View tab.js
[{"title":"Getting Started","url":"chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/suspended.html#ttl=Getting%20Started&pos=1137&uri=https://www.charts.com/muze/docs/getting-started","uid":0,"type":"other"},{"title":"How Well Do You Know CSS Layout? | CSS-Tricks","url":"chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/suspended.html#ttl=How%20Well%20Do%20You%20Know%20CSS%20Layout%3F%20%7C%20CSS-Tricks&pos=2183&uri=https://css-tricks.com/how-well-do-you-know-css-layout/","uid":1,"type":"css"},{"title":"無頭Chrome:服務器端渲染JS站點的答案 面向Web開發人員的工具| Google Developers","url":"chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/suspended.html#ttl=%E7%84%A1%E9%A0%ADChrome%EF%BC%9A%E6%9C%8D%E5%8B%99%E5%99%A8%E7%AB%AF%E6%B8%B2%E6%9F%93JS%E7%AB%99%E9%BB%9E%E7%9A%84%E7%AD%94%E6%A1%88%20%E9%9D%A2%E5%90%91Web%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1%E7%9A%84%E5%B7%A5%E5%85%B7%7C%20Google%20Developers&pos=3979&uri=https://developers.google.com/web/tools/puppeteer/articles/ssr","uid":2,"type":"chrome"},{"title":"書籤 / Twitter","ur
@Shenglian
Shenglian / default.conf
Created Nov 22, 2018
NGiNX Configuration for Vue-Router in HTML5 Mode
View default.conf
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@Shenglian
Shenglian / font.html
Created Sep 10, 2018
web-font setting
View font.html
<link rel="preload" href="fonts/cicle_fina-webfont.eot" as="font" type="application/vnd.ms-fontobject" crossorigin="anonymous">
<link rel="preload" href="fonts/cicle_fina-webfont.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="fonts/cicle_fina-webfont.woff" as="font" type="font/woff" crossorigin="anonymous">
<link rel="preload" href="fonts/cicle_fina-webfont.ttf" as="font" type="font/ttf" crossorigin="anonymous">
<link rel="preload" href="fonts/cicle_fina-webfont.svg" as="font" type="image/svg+xml" crossorigin="anonymous">
@Shenglian
Shenglian / jsnote.js
Created Sep 26, 2017 — forked from Louis0723/jsnote.js
你平常不會用到的js
View jsnote.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 / filter.js
Created May 24, 2017
vuejs 2.x filter
View filter.js
new Vue({
el: '#app',
data() {
return {
testData: [{ name: 'foo' }, { name: 'bar' }, { name: 'foobar' }, { name: 'test' }],
filterValue: '',
sortAsc: true
};
},
computed: {
@Shenglian
Shenglian / cities.json
Created Apr 14, 2017 — forked from Miserlou/cities.json
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
View cities.json
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
@Shenglian
Shenglian / vscode.js
Last active Mar 16, 2017
vscode_config
View vscode.js
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// Do not edit this file. It is machine generated.
{
"acceptSuggestionOnCommitCharacter": "控制認可字元是否應接受建議。例如在 JavaScript 中,分號 (';') 可以是接受建議並鍵入該字元的認可字元。",
"acceptSuggestionOnEnter": "控制除了 'Tab' 外,是否也藉由按下 'Enter' 接受建議。如此可避免混淆要插入新行或接受建議。",
"autoClosingBrackets": "控制編輯器是否應在左括號後自動插入右括號",
"codeLens": "控制編輯器是否顯示程式碼濾鏡",
@Shenglian
Shenglian / console.js
Created Feb 2, 2017
show mulit console.log result
View console.js
function showMyMultiResult(g){
return console.log.apply(this, g);
}