We do not collect any data beyond what is provided to us.
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
# https://github.com/ericchiang/pup | |
curl -s https://en.wikipedia.org/wiki/File:Great_Wave_off_Kanagawa2.jpg | pup '.internal' 'attr{href}' | |
# Say you have a list of urls in a file, and you want to download all of them to a directory | |
cat all-hokusai-views-of-mount-fuji.txt | xargs -I{} curl -s {} | pup '.internal' 'attr{href}' | xargs -I{} wget "http:"\{\} -P hokusai-mount-fiji-collection/ |
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
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco install -y cmdutils |
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
# Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Software | |
brew cask install apptivate | |
brew cask install spectacle | |
brew cask install hyperswitch | |
brew cask install iterm | |
brew cask install iterm2 | |
brew install mackup |
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
// run this in dev console | |
// copied from https://www.quora.com/How-can-I-unfollow-everyone-on-Medium | |
var button = document.getElementsByTagName("button"); | |
for (var i = 0; i < button.length; i++) | |
{ | |
if(button[i].className.includes("js-followButton")) | |
{ button[i].click(); } | |
} |
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
var script = document.createElement('script'), | |
scripts = document.getElementsByTagName('script')[0]; | |
script.src = url; | |
scripts.parentNode.insertBefore(script, scripts); | |
// <script src="https://platform.twitter.com/widgets.js" async defer></script> |
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 parseQuery(queryString) { | |
var query = {}; | |
var pairs = (queryString[0] === '?' ? queryString.substr(1) : queryString).split('&'); | |
for (var i = 0; i < pairs.length; i++) { | |
var pair = pairs[i].split('='); | |
query[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || ''); | |
} | |
return query; | |
} |
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
Array.from({ length: 12 }, (v, i) => i + 1) |
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 getPortfoliosSync = createActionWithoutAlsoTyingDispatch(() => ({})); | |
const createActionWithoutAlsoTyingDispatchAsync = <T>(getMeAPromise: () => Promise<T>) => { | |
const retValue: any = () => { | |
return; | |
}; | |
return retValue as Promise<T>; | |
}; | |
const getPortfoliosAsync = createActionWithoutAlsoTyingDispatchAsync(() => Promise.resolve(1)); |
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
-- Functions are curried, that means when a function is called with not enough arguments, we don't get an "argument error exception", but a NEW function, that expects the remaining amount of arguments. | |
-- This can lead to some cryptic-for-beginners compiler type errors. |