This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorTheme": "One Dark Pro", | |
"materialTheme.fixIconsRunning": false, | |
"workbench.iconTheme": "vscode-icons", | |
"editor.foldingStrategy": "indentation", | |
"git.autofetch": true, | |
"workbench.editor.enablePreviewFromQuickOpen": false, | |
"window.zoomLevel": 0, | |
"diffEditor.ignoreTrimWhitespace": true, | |
"gitlens.hovers.currentLine.over": "line", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nodes = document.querySelectorAll('[is]') | |
Array.from(nodes).reduce((times, node) => { | |
var type = node.getAttribute('is') | |
if (!times[type]) { | |
times[type] = 1 | |
} else { | |
times[type] ++ | |
} | |
return times |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorTheme": "One Dark Pro", | |
"workbench.iconTheme": "vscode-icons", | |
"editor.foldingStrategy": "indentation", | |
"git.autofetch": true, | |
"workbench.editor.enablePreviewFromQuickOpen": false, | |
"window.zoomLevel": 0, | |
"diffEditor.ignoreTrimWhitespace": true, | |
"gitlens.hovers.currentLine.over": "line", | |
"eslint.validate": ["javascript", "javascriptreact", "vue"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = function(){console.log('原始');} | |
console.log(a, a()) | |
var b = eval('(' + a.toString().replace('(){', '(){console.log("开头");').replace('}', 'console.log("结尾");}') + ')') | |
console.log(b, b()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# bash tut: http://linuxconfig.org/bash-scripting-tutorial | |
# Linux PDF,OCR: http://blog.konradvoelkel.de/2013/03/scan-to-pdfa/ | |
y="$(pwd)/$1" | |
echo Will create a searchable PDF for $y | |
x="$(basename "$y")" | |
name=${x%.*} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var path = require('path'); | |
var OpenCC = require('opencc'); | |
// Load the default Simplified to Traditional config | |
var opencc = new OpenCC('t2s.json'); | |
// Sync API | |
var converted = opencc.convertSync("漢字"); | |
console.log(converted); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "8f1a9f7f-64b6-4c43-9bd5-948101d055fc", | |
"name": "New Project", | |
"aspectRatio": "16:9", | |
"markers": [], | |
"version": 10, | |
"schemaVersion": 8, | |
"shouldCloudSync": false, | |
"createdAt": "2019-03-12T03:59:16.662Z", | |
"updatedAt": "2019-03-28T07:41:16.659Z", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"local": [ | |
{ | |
"asset_path": null, | |
"name": null, | |
"asset_size": 19932335, | |
"tags": [], | |
"created_at": "2019-03-28T07:55:27.049620", | |
"updated_at": "2019-03-28T07:55:27.049628", | |
"s3_bucket_name": null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "New Project", | |
"lastSyncedAt": "2019-03-28T07:51:57.386Z", | |
"markers": [], | |
"tracks": [], | |
"version": 13, | |
"shouldCloudSync": false, | |
"updatedAt": "2019-03-28T07:55:23.935Z", | |
"schemaVersion": 8, | |
"aspectRatio": "16:9", |