Skip to content

Instantly share code, notes, and snippets.

View asdf8601's full-sized avatar
:octocat:
Viming...

max asdf8601

:octocat:
Viming...
View GitHub Profile
@rodneyrehm
rodneyrehm / gist:40e7946c0cff68a31cea
Last active March 12, 2025 19:23
Diagrams for Documentation

some tools for diagrams in software documentation

Diagrams For Documentation

Obvious Choices

ASCII

@nl5887
nl5887 / transfer.fish
Last active July 30, 2024 09:21
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@tillahoffmann
tillahoffmann / weighted_kde.ipynb
Last active February 21, 2026 11:05
Weighted kernel density estimation based on `scipy.stats.gaussian_kde`.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pbugnion
pbugnion / ipython_notebook_in_git.md
Last active December 4, 2025 22:24
Keeping IPython notebooks under Git version control

This gist lets you keep IPython notebooks in git repositories. It tells git to ignore prompt numbers and program outputs when checking that a file has changed.

To use the script, follow the instructions given in the script's docstring.

For further details, read this blogpost.

The procedure outlined here is inspired by this answer on Stack Overflow.

@wmvanvliet
wmvanvliet / faster.py
Last active January 22, 2022 10:32
First, second and third steps of the FASTER algorithm
import numpy as np
import scipy.signal
import mne
from scipy.stats import kurtosis
from mne.preprocessing import find_outliers
from mne.fixes import nanmean
from mne.utils import logger
#from mne.preprocessing.eog import _get_eog_channel_index
@mandiwise
mandiwise / Update remote repo
Last active February 27, 2026 16:47
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@asdf8601
asdf8601 / simulacion_montecarlo_pi
Last active August 20, 2019 10:02
simulacion_montecarlo_pi
#!/usr/bin/env python
#-*- coding:utf-8 -*-
from __future__ import division
import numpy as np
from pylab import *
pi_hat = []
nn = 1000 # numero de veces que repetimos la simulación
@psychemedia
psychemedia / election_map_example.ipynb
Last active May 10, 2016 15:08
Brief example of using folium to map election data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kwmiebach
kwmiebach / pytest.md
Last active December 26, 2025 15:32 — forked from amatellanes/pytest.sh
pytest cheat sheet

Usage

(Create a symlink pytest for py.test)

pytest [options] [file_or_dir] [file_or_dir] ...

Help: