These are some simple bash functions and scripts for making CSV/TSV files prettier on the command line
see http://stefaanlippens.net/pretty-csv.html for more information.
*.beam | |
*.erltypes |
# Volker Hilsenstein | |
# BSD-3 license | |
import numpy as np | |
import skimage.morphology | |
from rotating_calipers import min_max_feret | |
def get_min_max_feret_from_labelim(label_im, labels=None): | |
""" given a label image, calculate the oriented | |
bounding box of each connected component with |
These are some simple bash functions and scripts for making CSV/TSV files prettier on the command line
see http://stefaanlippens.net/pretty-csv.html for more information.
const renderer = new marked.Renderer() | |
let originParagraph = renderer.paragraph.bind(renderer) | |
renderer.paragraph = (text) => { | |
const blockRegex = /\$\$[^\$]*\$\$/g | |
const inlineRegex = /\$[^\$]*\$/g | |
let blockExprArray = text.match(blockRegex) | |
let inlineExprArray = text.match(inlineRegex) | |
for (let i in blockExprArray) { | |
const expr = blockExprArray[i] | |
const result = renderMathsExpression(expr) |
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
On mac:
/usr/local/bin
.THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
If you ever need to download an entire website, perhaps for off-line viewing, wget can do the job — for example:
$ wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains website.org --no-parent www.website.org/tutorials/html/
This command downloads the website www.website.org/tutorials/html/.
The options are:
--recursive
: download the entire website--domains website.org
: don't follow links outside website.org#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
As configured in my dotfiles.
start new:
tmux
start new with session name: