Create React App does not provide watching build mode oficially (#1070).
This script provides watching build mode for an external tool such as Chrome Extensions or Firebase app.
Create a React app.
Put the script into scripts/watch.js.
| import numpy as np | |
| from scipy.signal import get_window | |
| from scipy.fftpack import fft, fftshift | |
| import math | |
| import matplotlib.pyplot as plt | |
| eps = np.finfo(float).eps | |
| """ | |
| A4-Part-1: Extracting the main lobe of the spectrum of a window |
| /** | |
| * Draw string in the github contribution calendar. | |
| * Usage: | |
| * 1. Create a "snippet" in the Chrome devtool -> Sources -> Snippets (in left sidebar). | |
| * 2. Visit your github profile page. | |
| * 3. Modify the string. | |
| * 4. Run | |
| * | |
| * Credit: | |
| * - 3x5 font data: https://github.com/fabiopiratininga/oled-font-3x5 |
| // Remove null or undefine from array items | |
| type NonNullableArray<T> = T extends Array<infer Item> ? Array<NonNullable<Item>> : never; |
| type TestType = { | |
| key: string; | |
| value: string; | |
| } | |
| export TestType; |
| ! Swap Alt and Cmd keys. | |
| keycode 37 = Control_L | |
| keycode 133 = Alt_L Meta_L | |
| keycode 64 = Super_L | |
| keycode 108 = Super_R | |
| keycode 134 = ISO_Level3_Shift Multi_key | |
| keycode 105 = Control_R Multi_key | |
| clear Shift | |
| clear Lock | |
| clear Control |
Create React App does not provide watching build mode oficially (#1070).
This script provides watching build mode for an external tool such as Chrome Extensions or Firebase app.
Create a React app.
Put the script into scripts/watch.js.
| FROM alpine:3.8 | |
| RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* |
| #!/usr/bin/env python | |
| import os | |
| import re | |
| import praw | |
| import requests | |
| from datetime import datetime | |
| from bs4 import BeautifulSoup | |
| for sub in subs: | |
| res = requests.get(sub.url) | |
| if (res.status_code == 200 and 'content-type' in res.headers and |
| R | Python | Note | |
|---|---|---|---|
| seq(1,5) == 1,2,3,4,5 | range(1,5) == [1,2,3,4] | The 'stop' number is included in R while excluded in Python | |
| seq(5,1) | range(5,1,-1) | The sign of 'step' is automatically determined in R while must be specified explicitly in Python |
| .Board { | |
| position: relative; | |
| margin: 0 auto; | |
| background-color: #000; | |
| } |