- Windows 系统下,workbench.desktop.main.css 文件位置:
[用户目录]\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench
- Mac 系统下,workbench.desktop.main.css 文件位置:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench
This file contains 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
// https://astexplorer.net/#/gist/48d24982fceb3f258cc2dcd764fe8e38/937f48fc25443224a08bb20774a7d8868052770c | |
export default function ({types: t}) { | |
return { | |
visitor: { | |
ObjectMethod(path) { | |
if (path.node.generator) { | |
path.node.async = true | |
path.node.generator = false | |
} |
This file contains 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
# $language = "python" | |
# $interface = "1.0" | |
import base64 | |
import hmac | |
import struct | |
import sys | |
import time | |
TOTP_KEY = 'YOUR_GOOGLE_AUTH_KEY' |
This file contains 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
function parseQueryString(str) { | |
var strArr = String(str).replace(/^&/, '').replace(/&$/, '').split('&') | |
var sal = strArr.length | |
var i | |
var j | |
var ct | |
var p | |
var lastObj | |
var obj | |
var chr |
This file contains 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
import Vue from 'vue' | |
import App from './App' | |
import axios from 'axios' | |
const plugins = { | |
install(Vue) { | |
Vue.prototype.$fetch = function(url, options) { | |
return axios(url, options) | |
.then(response => { | |
console.log(this) |
This file contains 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
import axios from 'axios' | |
import qs from 'qs' | |
const axiosInstance = axios.create({ | |
transformRequest: [function(data) { | |
return qs.stringify(data); | |
}], | |
headers:{ | |
'Content-Type': 'application/x-www-form-urlencoded' | |
} |
This file contains 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
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* Pagination Class | |
* | |
* @package Transformers | |
* @subpackage Libraries | |
* @category Pagination | |
* @author Hex |
This file contains 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
FROM codeigniter/nginx-php-fpm:13 | |
# set timezone | |
RUN apk add --no-cache tzdata \ | |
&& mv /usr/share/zoneinfo/Asia/Shanghai /tmp/ \ | |
&& rm -rf /usr/share/zoneinfo/* \ | |
&& mkdir -p /usr/share/zoneinfo/Asia \ | |
&& mv /tmp/Shanghai /usr/share/zoneinfo/Asia/ \ | |
&& ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | |
&& echo Asia/Shanghai > /etc/timezone \ |
This file contains 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> | |
<!-- 请把这个文件放到 templates 目录下 --> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<title>Wechat</title> | |
</head> | |
<body> | |
{% if alive %} |
NewerOlder