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
ForFiles /p "C:\Users\%USERNAME%\Desktop" /s /d -90 /c "cmd /c del /F /Q @file" | |
ForFiles /p "C:\Users\%USERNAME%\Downloads" /s /d -30 /c "cmd /c del /F /Q @file" |
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
import Foundation | |
extension Array where Element: Hashable { | |
func difference(from other: [Element]) -> [Element] { | |
let thisSet = Set(self) | |
let otherSet = Set(other) | |
return Array(thisSet.symmetricDifference(otherSet)) | |
} | |
} |
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
INDEX_RESIZE=0 | |
for file in ./*.jpg; do | |
[ -e "$file" ] || continue | |
convert $file -resize 1000x1000^ $file | |
let INDEX_RESIZE=$(expr $INDEX_RESIZE+1) | |
done | |
INDEX_THUMBNAIL=0 | |
for file in ./*.jpg; do | |
[ -e "$file" ] || continue |
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
#ποΈ===================================================================== | |
#πΌοΈcOPyRigHTπ2017π£ββοΈ-π¦presENtπββοΈChOCOlATeyπββοΈsOFTwaRE,βοΈiNC,π£AnDπtHE | |
#π OrIGiNaLπ§ββοΈaUthors/CoNTRibuTORsπFROMπchocoLAtEyGAllErY | |
#πCopyRIGhTπ2011βοΈ-π΅2017π΅rEAlDIMeNsiONsβSofTWARe,πllc,πAnDβ¬οΈThe | |
#πOrIGiNaLπAuThOrs/CONTrIBuTOrsποΈFROMπchOcOlAtEygalLerY | |
#βaTπ―οΈhTTpS://giTHub.COM/cHOCOlAtey/cHoCOlAtEY.OrG | |
# | |
#βlIceNSEdπUNderπ¨Theπ€APachEπ¨βπ¨βπ§βπ¦LiCense,βΊοΈverSiONπΈ2.0π£οΈ(theπ"lIcENsE"); | |
#πyoUβMayπNOtπUseπ₯thisπFILEπ―eXceptβοΈInπcOmpLIaNCeπ«οΈwiTHπ»theπ§ββοΈlICENse. | |
#πYouπ maYπ obTAiNπ€aπ΅COPyπ°OFπ§οΈTheπlIceNseπ©ββοΈat |
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() { | |
let users = [...$('#usersTable')[0].firstElementChild.children]; | |
users.splice(0,1); | |
let queryString = "INSERT INTO users (firmid, password, onSupport) values "; | |
function parseBoolFrom(text) { return text === "Yes" ? true : false; } | |
users.forEach(usr => { | |
firmId = usr.firstElementChild.innerText; |
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
# Add other repos, update package listings, upgrade OS if available | |
sudo add-apt-repository multiverse | |
sudo add-apt-repository ppa:obsproject/obs-studio | |
sudo add-apt-repository ppa:otto-kesselgulasch/gimp | |
sudo add-apt-repository ppa:ubuntuhandbook1/audacity | |
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable | |
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - | |
curl https://build.opensuse.org/projects/home:manuelschneid3r/public_key | sudo apt-key add - | |
echo 'deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_19.04/ /' | sudo tee /etc/apt/sources.list.d/home:manuelschneid3r.list | |
curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add - |
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
import f from 'node-fetch'; | |
let M=new Map(); | |
f('https://www.olo.com/pizzas.json').then(r=>r.json()).then(p=>{ | |
p.forEach(c=>[...c.toppings].forEach(c=>!M.has(c)?M.set(c,0):M.set(c,M.get(c)+1))); | |
console.log([...M.entries()].sort((a,b)=>a[1]>b[1]?-1:a[1]<b[1]?1:0).splice(0,20)); | |
}); | |
// Returns this: | |
/* | |
[ |
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 fullstack () { | |
if [ "$#" -eq 0 ] # If no arguments are provided with the function call just clone the repo as-is | |
then | |
git clone [email protected]:covalence-io/barebones-react-typescript-express.git | |
else | |
# Clone boilerplate with the first argument as the directory name & cd into that directory | |
git clone [email protected]:covalence-io/barebones-react-typescript-express.git $1 && cd $1 | |
# Delete the git directory and reinitialize project as a git repo | |
rm -rf .git && git init |
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
Aπcπcπoπrπdπiπnπgπ πtπoπ πaπlπlπ πkπnπoπwπnπ πlπaπwπsπ | |
πoπfπ πaπvπiπaπtπiπoπnπ,π | |
π | |
π π π | |
πtπhπeπrπeπ πiπsπ πnπoπ πwπaπyπ πaπ πbπeπeπ | |
πsπhπoπuπlπdπ πbπeπ πaπbπlπeπ πtπoπ πfπlπyπ.π | |
π | |
π π π | |
πIπtπsπ πwπiπnπgπsπ πaπrπeπ πtπoπoπ πsπmπaπlπlπ πtπoπ πgπeπtπ | |
πiπtπsπ πfπaπtπ πlπiπtπtπlπeπ πbπoπdπyπ πoπfπfπ πtπhπeπ πgπrπoπuπnπdπ.π |
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
javascript:(() => { const solution = JSON.parse(localStorage.getItem("nyt-wordle-state")).solution; const realDoc = document.body.lastElementChild["$keyboard"]["$keyboard"]; [...solution].forEach(char => { const button = realDoc.querySelector(`button[data-key="${char}"]`); button.click() }); const enter = realDoc.querySelector(`button[data-key="%E2%86%B5"]`); enter.click(); })() |
OlderNewer