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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,2E,E0,3D,00,30,E0,3E,00,00,00,00,00 |
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
// chrome的console加载jquery.js 最新版本 | |
(function x(s){var c=document.createElement('script');c.src=s;document.getElementsByTagName('head')[0].appendChild(c);})('https://code.jquery.com/jquery-3.7.1.min.js') | |
// JOSN格式输出对应节点属性值 | |
JSON.stringify($('.download-link >a').map(function() {return $(this).attr('href')})) |
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 x(s){var c=document.createElement('script');c.src=s;document.getElementsByTagName('head')[0].appendChild(c);})('https://code.jquery.com/jquery-3.7.1.min.js') | |
(function x(s){var c=document.createElement('script');c.src=s;document.getElementsByTagName('head')[0].appendChild(c);})('https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.10/dayjs.min.js') | |
(function x(s){var c=document.createElement('script');c.src=s;document.getElementsByTagName('head')[0].appendChild(c);})('https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.5.0/lz-string.min.js') | |
(function x(s){var c=document.createElement('script');c.src=s;document.getElementsByTagName('head')[0].appendChild(c);})('https://abcde2xxxxx.js') |
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
# npm | |
npm ls -g --depth=0 --link=true | |
C:\Program Files\nodejs -> .\ | |
└── @xx/xx-design@0.0.14 -> .\..\..\..\..\repo\xxx-design | |
# yarn | |
On Windows you can find the linked packages at ls ~/AppData/Local/Yarn/Data/link/ |
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
export const addStyle = (src: string) => { | |
let styles = document.createElement('link'); | |
styles.rel = 'stylesheet'; | |
styles.type = 'text/css'; | |
styles.media = 'screen'; | |
styles.href = src; | |
document.getElementsByTagName('head')[0].appendChild(styles); | |
}; | |
export const addScript = async (src: string) => { |
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
const clearCookieAndStorage = () => { | |
// clear cookies | |
(function () { | |
setTimeout(() => { | |
var cookies = document.cookie.split("; "); | |
for (var c = 0; c < cookies.length; c++) { | |
var d = window.location.hostname.split("."); | |
while (d.length > 0) { | |
var cookieBase = encodeURIComponent(cookies[c].split(";")[0].split("=")[0]) + '=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain=' + d.join('.') + ' ;path='; |
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> | |
<html> | |
<style type="text/css"> | |
.time {} | |
.percentage { | |
color: red; | |
font-size: 5em; | |
} | |
</style> |
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
{ | |
"python.pythonPath": "~/.virtualenvs/djangosite/bin/python", | |
"python.linting.pep8Enabled": true, | |
"python.linting.pep8Args": [ | |
"--ignore=E501" | |
], | |
"python.linting.pylintPath": "~/.virtualenvs/djangosite/bin/pylint", | |
"python.linting.pylintArgs": [ | |
"--load-plugins", | |
"pylint_django" |
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
const Adder = new function() { | |
this.sum = 0; | |
this.add = function(numbers) { | |
numbers.forEach(function(n) { | |
this.sum +=n; | |
}); | |
}; | |
} | |
Adder.add([1, 2, 3]); |
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
{ | |
"name": "Jest Tests", | |
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js", | |
"type": "node", | |
"request": "launch", | |
"args": [ | |
"-i" | |
], | |
} |
NewerOlder