A walkthrough on how to get a pgp key from keybase.
- Install pgp --
brew install gnupg
Go to keybase and create an account.
| layout python3 | |
| # Automatically install dependencies when requirements.txt changes | |
| LAST_INSTALLED_DEPENDENCIES_FLAG="$VIRTUAL_ENV/.dependencies_installed" | |
| echo $LAST_INSTALLED_DEPENDENCIES_FLAG | |
| if [ ! -f $LAST_INSTALLED_DEPENDENCIES_FLAG ] || [ requirements.txt -nt $LAST_INSTALLED_DEPENDENCIES_FLAG ]; then | |
| echo "Installing dependencies..." | |
| pip install -r requirements.txt | |
| touch $LAST_INSTALLED_DEPENDENCIES_FLAG |
| <html> | |
| <body> | |
| <div data-ad="true" class="reactive-embed" data-replay-id="ef3a1887-e996-4e85-8ab0-368fdab0327d"></div> | |
| <script src="https://consumer-app-staging.reactive.live/bundle.js"></script> | |
| </body> | |
| </html> |
A walkthrough on how to get a pgp key from keybase.
brew install gnupgGo to keybase and create an account.
| from locust import HttpLocust, TaskSet, task | |
| class MostBasicLoadTest(TaskSet): | |
| def on_start(self): | |
| """ on_start is called when a Locust start before any task is scheduled """ | |
| self.login() | |
| def login(self): | |
| self.client.post("/api/api-token-auth/", | |
| { |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| const { promisify } = require('util') | |
| const { promises: fs } = require('fs') | |
| const hostile = require('hostile') | |
| const setHost = promisify(hostile.set) | |
| const removeHost = promisify(hostile.remove) | |
| const LOCALHOST = '127.0.0.1' | |
| const hosts = [ | |
| [LOCALHOST, 'youralias'], | |
| ] |
| class Solution_recursive: | |
| """ | |
| Runtime: O(2^n) | |
| Spacetime: O(1) | |
| The classic approach to solving the Fibonacci sequence. The code is elegant but its runtime isn't | |
| very pretty. Its recursive nature necessitates that we calculate some values of f(n) multiple times. | |
| Consider this call graph where duplicated calls are denoted with `~`: | |
| fib(7) |
| const http = require("http") | |
| const getWeather = () => new Promise((resolve, reject) => { | |
| const options = { | |
| hostname: 'nodejs.org', | |
| path: '/dist/index.json', | |
| method: 'GET', | |
| }; | |
| http.get(options, (res) => { |