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
| // https://www.typescriptlang.org/play/?#code/MYewdgzgLgBFCmBbADgGwIYJgXgFAwJgB4AVGeADwTABMIYAFAJxGXiagE8BpeTgPgAUCFBgQBlKEwCWYAOYQAXDBJI0meJJnyIAQSZN0nADQwAdBaggA1vDABJOspIBtALoBKHP3yE-wmzsAWXRkZQZ0Dml0VCIAJXhQJhpSU2htORgAHxgAbzgQLVk5ZUEvbH4YdOKYAF9+fnKfPxbCIvkzQwB3YTUxTSliiFMLMytbBzoAfjNEUMEAiccmgomQ5Bdxu0c3GCmpmAAiQ48PAG5cXAB6K5gAUQp0UXgYAEZlAHUQJmt6LukoAALKqDeQwWycYYwdC0GAgABGACtErB0PQtmAYHNkDBcKBILBKE80PBVKINK8cHA+hoAAZEGjSABu-AAJLkAOQIaAc2qmdkcmy8-mc7lQXlEK6Mlm0vHgCAgVDwMyoEByQRE55k9QIV6CfJi5QcwHSDmmGzKAAsACY6qcYDcjgzmfwTaYbaYTZLpfxDrjrrcHsSlTBrZ9vr8YP8gTAwABXRDw9jgvhQmE0aEGIzQ9GBTHYuUE8iPLU0hC27DU8kIek+9kABj5MHZrybDdq3pdsvxCqVKrVGpLJO1-WtghchxNh3d1s8Xkdh2dLLdMA9MC9UpdfsujqDzxgAGZlOI48hkN8oPRKGhpMAATA5HZ2LeYD2pOhZFBC9Bi8HSWX4APKkRB1eAiC5eAeWyGBBWsDl+FrF0BTFYVm05IU21FSDxQ7TcZW-RVlVVdVNWHACD31aloCNE0zThawrVtWp7QXJdXWkGdPWkTsWW3IA | |
| const template = | |
| <T extends PropertyKey>(templateStrings: TemplateStringsArray, ...tokenIds: T[]) => | |
| (tokenMap: Partial<Record<T, string | { toString: () => string }>>) => |
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
| document.addEventListener("click", ({ target }) => { | |
| speechSynthesis.cancel(); | |
| speechSynthesis.speak(new SpeechSynthesisUtterance(target.textContent)); | |
| // animate outline | |
| target.animate({ | |
| outline: [ | |
| "2px solid rgb(0 0 255 / 100%)", | |
| "5px solid rgb(0 0 255 / 0%)", | |
| ], |
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
| # From https://superuser.com/questions/1465089/how-do-i-delete-a-windowsapps-folder/1619744 | |
| $appname = @( | |
| "*LinkedInforWindows*" | |
| "*Evernote*" | |
| "*MusicMakerJam*" | |
| "*GetHelp*" | |
| "*Getstarted*" | |
| "*Microsoft3DViewer*" | |
| "*MicrosoftOfficeHub*" |
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
| function diary2html(filename) | |
| % DIARY2HTML Creates a formatted HTML version of a diary file | |
| % DIARY2HTML(FILENAME) outputs a formatted HTML version of a diary file | |
| % to an HTML file (e.g. if filename is "diary.txt", the HTML file generated | |
| % will be "diary.html") | |
| arguments | |
| filename (1,:) char {mustBeNonempty} | |
| end | |
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
| myaddress = '[email protected]'; | |
| setpref('Internet','E_mail',myaddress); | |
| setpref('Internet','SMTP_Server','smtp.gmail.com'); | |
| setpref('Internet','SMTP_Username',myaddress); | |
| setpref('Internet','SMTP_Password',mypassword); | |
| props = java.lang.System.getProperties; | |
| props.setProperty('mail.smtp.auth','true'); | |
| props.setProperty('mail.smtp.socketFactory.class', ... |
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
| function y = isCarmichael(x) | |
| y = false | |
| if isprime(x) | |
| return | |
| end | |
| for b = 2:x-1 | |
| if gcd(b,x) ~= 1; continue; end | |
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
| function cprintf(color, string) | |
| %CPRINTF wraps the given string in html that colors that text. | |
| disp(['<font color="', color, '">', string, '</font>']); | |
| end |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search] | |
| "BingSearchEnabled"=dword:00000000 | |
| "AllowSearchToUseLocation"=dword:00000000 | |
| "CortanaConsent"=dword:00000000 |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU] | |
| "NoAutoRebootWithLoggedOnUsers"=dword:00000000 | |
| ; "NoAutoRebootWithLoggedOnUsers"=dword:00000001 |
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
| { | |
| "commandline": "%PROGRAMFILES%/Git/bin/bash.exe -i -l", | |
| "guid": "{b6dcc215-1356-4b6b-907b-61957457104a}", | |
| "icon": "%PROGRAMFILES%/Git/mingw64/share/git/git-for-windows.ico", | |
| "name": "Git Bash", | |
| "startingDirectory": "%USERPROFILE%/Documents/Git", | |
| "tabTitle": "Git Bash" | |
| }, | |
| { | |
| "commandline": "C:\\Program Files\\nodejs\\node.exe", |
NewerOlder