A list of the best LeetCode questions that teach you core concepts and techniques for each category/type of problem. Many other LeetCode questions are a mashup of the techniques from these individual questions.
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
# Submit CURL requests in a loop with rough RPS calculation | |
# Example usage: `make_requests 10.0.5.28` | |
_call($1) { | |
num_requests=0; | |
start_time="$(date -u +%s)"; | |
base_url="$1/entities/" | |
sleep_time=5 |
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
# Submit CURL requests in a loop with rough RPS calculation | |
run() { | |
num_requests=0; | |
start_time="$(date -u +%s)"; | |
base_url="localhost/entities/" | |
while :; do | |
endpoint={base_url}$(date +"%S") | |
echo "Sending request to ${endpoint}..." | |
curl -s -o /dev/null -w "Response: %{http_code}\n" ${endpoint} |
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://packagecontrol.io/packages/Sync%20Settings |
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 config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
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
# Update | |
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git stash && git fetch -a && git checkout master && git pull && git stash pop" \; |
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
# | |
# script to register Python 2.0 or later for use with | |
# Python extensions that require Python registry settings | |
# | |
# written by Joakim Loew for Secret Labs AB / PythonWare | |
# | |
# source: | |
# http://www.pythonware.com/products/works/articles/regpy20.htm | |
# | |
# modified by Valentine Gogichashvili as described in http://www.mail-archive.com/distutils-sig@python.org/msg10512.html |
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 console of dev tools in browser to make all text on rendered page editable (but retains style etc) */ | |
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 |
NewerOlder