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
| \documentclass{article} | |
| \usepackage{xcolor} | |
| \begin{document} | |
| {\centering | |
| \count2=10\def\content{O} | |
| \count0=0\loop\ifnum\count0<\count2{ | |
| \count1=0\loop \ifnum\count1<\the\numexpr \count2-\count0 { | |
| {\color{white}\content} | |
| }\advance\count1 by 1\repeat | |
| \count1=0\loop \ifnum\count1<\the\numexpr 2*\count0-1{ |
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
| //convert callback function to async function | |
| var asyncalize = (func) => | |
| function(){ | |
| console.log(func) | |
| return new Promise( | |
| (callback)=>func(...arguments,callback) | |
| ) | |
| } |
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
| <script> | |
| window.onload = function(){ | |
| var Name = document.registerElement("name-div",{ | |
| prototype: Object.create(HTMLDivElement.prototype,{ | |
| createdCallback: { | |
| value: function(){ | |
| this.shadow = this.createShadowRoot(); | |
| } | |
| }, | |
| attributeChangedCallback: { |
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
| pool = [] | |
| pool.push([1,1]) | |
| plus = async (a,b)=>await a+ await b | |
| time = async (a)=>2* await a | |
| main = async() =>{ | |
| for(var i=1;i<=10;i++){ | |
| pool.push([ | |
| plus(pool[i-1][0], pool[i-1][1]), |
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
| // ==UserScript== | |
| // @name mis.USTC Helper | |
| // @namespace mis.ustc.edu.cn | |
| // @version 0.0 | |
| // @description delete login information for USTC mis automatically | |
| // @author H.Zhang | |
| // @match http://mis.teach.ustc.edu.cn/ | |
| // @match http://mis.teach.ustc.edu.cn/index.jsp | |
| // @grant none | |
| // ==/UserScript== |
NewerOlder