Skip to content

Instantly share code, notes, and snippets.

View joehuchette's full-sized avatar

Joey Huchette joehuchette

View GitHub Profile
@mbauman
mbauman / .juliarc.jl
Last active August 29, 2015 14:03
juliarc
module RC
## Method sorting: https://github.com/JuliaLang/julia/pull/6119 (closed wontfix)
Base.isless(a::Method, b::Method) = isless(a.func.code.name, b.func.code.name)
## Simplify life when calling methodswith. I always do it wrong.
Base.methodswith(x, showparents::Bool=false) = methodswith(typeof(x), showparents)
if VERSION < v"0.3-"
ENV["JULIA_HISTORY"] = joinpath(homedir(), "~/.julia_history_v0.2")
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@chi-feng
chi-feng / preamble
Created September 17, 2013 01:38
Latex Listings language definition/style for Julia
\usepackage{inconsolata} % very nice fixed-width font included with texlive-full
\usepackage[usenames,dvipsnames]{color} % more flexible names for syntax highlighting colors
\usepackage{listings}
\lstset{
basicstyle=\ttfamily,
columns=fullflexible, % make sure to use fixed-width font, CM typewriter is NOT fixed width
numbers=left,
numberstyle=\small\ttfamily\color{Gray},
stepnumber=1,