INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
ideally one sentence >
Picking the right architecture = Picking the right battles + Managing trade-offs
- Open Automator | |
- File -> New -> Service | |
- Change "Service Receives" to "files or folders" in "Finder" | |
- Add a "Run Shell Script" action | |
- Change "Pass input" to "as arguments" | |
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" | |
- Save it as something like "Open in Visual Studio Code" |
:: pandoc-docx-md.bat | |
:: | |
:: Don't show these commands to the user | |
@ECHO off | |
:: Set the title of the window | |
TITLE Convert docx to markdown with Pandoc | |
:: Select file marker | |
:selectfile | |
:: Clear any preexisting filename variables | |
SET filename= |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
// DarkSky API | |
// CORS requests are NOT allowed by the DarkSky server | |
// Requests from other Servers are allowed | |
// So, we would make a pass thru file on a server. | |
// Browser sends the fetch( ) AJAX request to OUR server | |
// OUR server sends the AJAX request to DarkSky server | |
// DarkSky responds to OUR Server | |
// OUR Server sends the DarkSky reply back to Browser | |
// Browser AJAX call => Our Server => DarkSky => Our Server => Browser AJAX call |
# Info on how to get your api key (kaggle.json) here: https://github.com/Kaggle/kaggle-api#api-credentials | |
!pip install kaggle | |
api_token = {"username":"USERNAME","key":"API_KEY"} | |
import json | |
import zipfile | |
import os | |
with open('/content/.kaggle/kaggle.json', 'w') as file: | |
json.dump(api_token, file) | |
!chmod 600 /content/.kaggle/kaggle.json | |
!kaggle config path -p /content |
import anki_vector | |
import time | |
from PIL import Image | |
import cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
with anki_vector.Robot(enable_camera_feed=True) as robot: | |
robot.motors.set_head_motor(-5.0) # move head to look at ground | |
robot.motors.set_wheel_motors(10, 10) # set initial driving direction |
SELECT | |
ROUND((input_value - output_value)/ size, 0) AS fees_per_byte, | |
COUNT(*) AS txn_cnt | |
FROM | |
`bigquery-public-data.crypto_bitcoin.transactions` | |
WHERE TRUE | |
AND block_timestamp >= '2018-01-01' | |
AND is_coinbase IS FALSE | |
GROUP BY 1 |
def shuffle(train_data: np.array, seed: int = 8864): | |
np.random.seed(seed) | |
n = train_data.shape[0] | |
indices = np.random.randint(0, n, n) | |
train_data = [train_data[i] for i in indices] |