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
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 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 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 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 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 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 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 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 git@github.com:covalence-io/barebones-react-typescript-express.git | |
else | |
# Clone boilerplate with the first argument as the directory name & cd into that directory | |
git clone git@github.com: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 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 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