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 cv2 | |
import numpy as np | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import pyautogui | |
class CamHandler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
if self.path.endswith('.mjpg'): | |
self.send_response(200) | |
self.send_header('Content-type','multipart/x-mixed-replace; boundary=--jpgboundary') |
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
# 2019-01-29 21:44:41 | |
[General] | |
dns-server = 1.2.4.8, 114.114.114.114, 223.5.5.5, 8.8.8.8, system | |
ipv6 = true | |
skip-proxy = 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,100.64.0.0/10,17.0.0.0/8,localhost,*.local,169.254.0.0/16,224.0.0.0/4,240.0.0.0/4 | |
bypass-system = true | |
[Rule] |
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 numpy as np | |
import cv2 | |
from numpy.fft import fft2, ifft2 | |
import numpy as np | |
cap = cv2.VideoCapture('data.mp4') | |
cap2 = cv2.VideoCapture('in.mp4') | |
DENSITY = 10 |
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 numpy as np | |
from matplotlib import pyplot as plt | |
NUM_PEOPLE = 10000 | |
SHUFFLE_SEQ = np.arange(NUM_PEOPLE) | |
coins = np.ones(NUM_PEOPLE) * 100 | |
for i in range(100000): |
We can't make this file beautiful and searchable because it's too large.
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
time,hum,pm01,pm10,pm25,tc,pressure | |
1496055566.9861677,44.4780655859387,11.685786224350602,15.028218400689576,13.864547438152512,29.63095288049607, | |
1496059170.883296,48.802584171295166,11.749699074074075,14.9380787037037,13.80851851851852,29.29816748936971, | |
1496062774.7723284,49.04658399899801,12.923555068226118,16.577614522417157,15.315606725146198,28.989999961853027, | |
1496067441.328689,51.788095235377014,9.65302374293221,12.148919778310509,11.25103238924606,28.872821715218688, | |
1496071045.2175376,53.20250063896178,7.9643287037037025,10.032731481481477,9.283449074074074,28.628667157491048, | |
1496075042.9485977,54.61931124918388,8.610370370370369,10.613842592592594,9.854004629629632,28.40766700267791, | |
1496078646.8541663,56.04033413887023,8.788773148148149,10.723796296296292,10.073194444444443,28.132917173703497, | |
1496082250.7668355,56.885917924245184,7.483635477582846,9.139502923976606,8.550604288499024,27.993999977111816, | |
1496085854.6636848,57.2112507279714,7.639215399610135,9.46486842105263,8.80893762183236,27.8 |
- Create a project like this (parent tasks with children of one level indent), and assign due dates.
- Run
main.py
in Terminal, input project id, press enter and copy the generated texts. - In
Drafts 4
on iOS, paste and runQuick-Add to Fantastical Reminder
workflow. - In
Sorted
or any other apps, use functionalities likeReminder Capture
to import these tasks.
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
/* | |
How to use? | |
Install Node.js and run 'npm init', than install the dependency 'lodash'. | |
Install the Anki addon from 'https://ankiweb.net/shared/info/1788670778', and export your deck to JSON. | |
Run 'node index.js', and there will be a generated 'index.html'. | |
*/ | |
const _ = require('lodash'); | |
const fs = require('fs'); |