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
" Place in ~/vimfiles/vimrc, on native Windows OS (not WSL). | |
" Basic setup to remove. | |
set number | |
set mouse=a | |
set autoindent | |
set showtabline=2 | |
set clipboard=unnamed | |
set t_Co=256 |
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
#!/bin/bash | |
# Usage: | |
# Undo the last commit by: | |
# > git uncommit | |
# Installation: | |
# 1. Put this file in `~/bin/git-uncommit` | |
# 2. `chmod +x ~/bin/git-uncommit` |
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
#!/bin/bash | |
# Usage: | |
# In case of emergency, IF POSSIBLE, run | |
# > git fire | |
# | |
# Unsaved changes will be saved and pushed to a new branch named: | |
# $USER/fire/some-long-hash | |
# | |
# Optionally, a name can be provided, e.g. |
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 scipy.spatial import KDTree | |
import matplotlib.pyplot as plt | |
# Color map. | |
cmap = plt.get_cmap("bwr") | |
# True surface. | |
def f(X): | |
return np.cos(X[:, 0] * 10) + np.sin(X[:, 1] * 10) * 2 |
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
# Comparing AD backends. | |
# - Zygote, ForwardDiff, ReverseDiff, Complex-step differentiation | |
using ForwardDiff, ReverseDiff, Zygote, Tracker | |
using StatsFuns | |
using Random | |
using ProgressMeter | |
using BenchmarkTools | |
import LinearAlgebra.I as eye |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
auto_activate_base: true | |
auto_stack: 1 |
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
linters: linters_with_defaults( | |
assignment_linter = NULL | |
) |
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 matplotlib.pyplot as plt | |
with sns.axes_style("darkgrid"), sns.plotting_context("talk", font_scale=1.2): | |
plt.plot(np.random.randn(100)) | |
plt.show() |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder