Skip to content

Instantly share code, notes, and snippets.

View garywu's full-sized avatar
🌴
On vacation

Gary Wu garywu

🌴
On vacation
View GitHub Profile
@garywu
garywu / gist:bcb9259da58c1e70044355b77c9e1078
Created January 18, 2018 15:58
puppeteer resize browser
I'm using this code:
await page.setViewport({height, width});
// Window frame - probably OS and WM dependent.
height += 85;
https://github.com/GoogleChrome/puppeteer/issues/1183
// Any tab.
# for a date, returns 3 letter month and week number of the month
6/25/2017 -> JUN-W4
7/1/2017 -> JUN-W4
CONCATENATE(upper(text(A15-WEEKDAY(A15, 2)+1, "mmm")), "-W", INT((6+DAY(A15+1-WEEKDAY(A15-1)))/7))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@garywu
garywu / frequency_estimator.py
Created March 17, 2017 02:12 — forked from endolith/frequency_estimator.py
Frequency estimation methods in Python
from __future__ import division
from numpy.fft import rfft
from numpy import argmax, mean, diff, log
from matplotlib.mlab import find
from scipy.signal import blackmanharris, fftconvolve
from time import time
import sys
try:
import soundfile as sf
except ImportError:

This instruction is for mac only.

Installation

brew install rclone

Configuration

rclone config
<style type="text/css">
/*!
* from: https://sharmamohit.com/css/jupyter.css
* why: https://sharmamohit.com/post/jupyter-notebooks-in-blog/
* Twitter Bootstrap
*
*//*! normalize.css v3.0.2 | MIT License | git.io/normalize */
*
* Font Awesome
*