This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
// ==UserScript== | |
// @name Datadog Redirect | |
// @namespace Tampermonkey Scripts | |
// @match https://www.datadoghq.com/ | |
// @grant none | |
// @version 1.0 | |
// @author github.com/kendallm | |
// @description Datadog redirect to regional endpoint | |
// ==/UserScript== |
// Please refer to https://github.com/mbrt/gmailctl#configuration for docs about | |
// the config format. | |
local lib = import 'gmailctl.libsonnet'; | |
// Some useful variables on top | |
// TODO: Put your email here | |
local me = 'email@example.com'; | |
local toMe = { to: me }; | |
// Non-@mention GitHub notifications |
AdamCaviness.theme-monokai-dark-soda | |
alanz.vscode-hie-server | |
alexanderte.dainty-dark-plus-vscode | |
alexanderte.dainty-vscode | |
arcticicestudio.nord-visual-studio-code | |
dnlytras.nord-wave | |
Equinusocio.vsc-community-material-theme | |
Equinusocio.vsc-material-theme | |
equinusocio.vsc-material-theme-icons | |
fvclaus.sort-json-array |
git push --mirror {student_repo} | |
cd .. | |
git clone {student_repo} | |
git remote add upstream {class_repo} |
import matplotlib.pyplot as plt | |
import numpy as np | |
import math | |
x = np.arange(1000) | |
y = np.log2(x) | |
plt.plot(x,y, label="log(x)") | |
plt.legend() |
def euclid(x,y): | |
if x < y: | |
temp = y | |
y = x | |
x = temp | |
if y == 0: | |
return x | |
return euclid(y, x % y) |
def pow(x, y): | |
if y == 0: | |
return 1 | |
z = pow(x, y//2) | |
if y % 2 == 0: | |
return z * z | |
return x * z * z |
from math import * | |
def nearest_power_of_2(n): | |
return 2 ** ceil(log2(n)) |
from textwrap import wrap | |
from math import inf | |
from collections import Counter | |
import cv2 | |
import numpy as np | |
def get_layers(): | |
with open('../input/input_8.txt') as f: | |
input = wrap(f.readline(), 25) |