git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
import cProfile | |
import pstats | |
import StringIO | |
pr = cProfile.Profile() | |
pr.enable() | |
threes = {num for num in range(3, 100, 3)} | |
fives = {num for num in range(5, 100, 5)} | |
not_in = {num for num in range(1, 100) if num not in threes and num not in fives} |
import cProfile | |
import pstats | |
import StringIO | |
pr = cProfile.Profile() | |
pr.enable() | |
iNot = set() | |
iFizz = set() | |
iBuzz = set() |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
The following is an explanation of Ruby blocks and yield by another Bloc mentor (Adam Louis) who was trying to explain it to one of his students.
On my very first day programming, if someone asked me for "the sum of the numbers from 1 to 10", I'd have written:
puts 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10
Easy enough.
# import serial | |
import requests | |
import time | |
import json | |
url = 'https://outlook.office.com/webhook/db2a1545-a674-485a-b5df-44171ce2238b@72f988bf-86f1-41af-91ab-2d7cd011db47/IncomingWebhook/9984b53e97594d888dfbdad5102d0bbc/3627016e-c8b7-4bf2-9614-234f99bc4d0f' | |
# ser = serial.Serial('/dev/ttyACM0', 9600) | |
# ser.flushInput() |
The [instruction](https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/installation.md#docker) | |
for mounting is confusing so adding extra info on how to run it | |
1. Download `swagger-ui` [Docker image](https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/installation.md#docker) | |
```bash | |
docker pull swaggerapi/swagger-ui | |
``` | |
1. Make sure you're in the directory that contains `swagger.json` |
Revive or restore a Mac with Apple silicon with Apple Configurator 2
https://support.apple.com/lt-lt/guide/apple-configurator-2/apdd5f3c75ad/mac
The instruction to put the laptop into DFU mode doesn't work if you're off by even one sec. I have to follow this video to get it working https://www.youtube.com/watch?v=puL82I2B6Xk