Skip to content

Instantly share code, notes, and snippets.

Allan L. R. Hansen AllanLRH

  • Copenhagen, Denmark
Block or report user

Report or block AllanLRH

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View image_convolution_mean_example.m
% ****************************************************************************
% * This demonstrate how to apply blur to an RGB-image, and create a third *
% * image which is composed partly of the original unblurred image, and *
% * partly of the blurred image. *
% ****************************************************************************
% Read example image built into MATLAB
I0 = double(imread('saturn.png'));
@AllanLRH
AllanLRH / st_tips.md
Last active Sep 21, 2017
Christian Sublime Text tips
View st_tips.md

Hej Christian

Lige et par tips om Sublime Text, siden du er begyndt at bruge den mere :)

Sublime Text (ST) har en pakkemanager. Den hedder Package Control, og kan i nyeste udgave af ST installeres fra Command Palette (ctrl+shift+p) ved at vælge "Install package control". Du kan finde pakker og beskriveser på https://packgecontrol.io.

Jeg vil plejer at dele pakker op i domænespecifikke pakker, fx en linter til Python, og generelle pakker, fx noget som gør navigation i teksten nemmere. Her er de pakker som jeg er gladest for...

View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
@AllanLRH
AllanLRH / Vitual keystroke example
Created May 17, 2017 — forked from chriskiehl/Vitual keystroke example
Python win32api simple Vitual keystroke example
View Vitual keystroke example
#Giant dictonary to hold key name and VK value
VK_CODE = {'backspace':0x08,
'tab':0x09,
'clear':0x0C,
'enter':0x0D,
'shift':0x10,
'ctrl':0x11,
'alt':0x12,
'pause':0x13,
'caps_lock':0x14,
@AllanLRH
AllanLRH / drAnalyse.ipynb
Last active Apr 12, 2017
DR 'kontanthjælps' plot
View drAnalyse.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AllanLRH
AllanLRH / plotCausalGraph.py
Created Apr 7, 2017 — forked from nimezhu/plotCausalGraph.py
plot directed graph (python matplotlib)
View plotCausalGraph.py
#!/usr/bin/python
# programmer : zhuxp
# usage:
import sys
from getopt import getopt
import networkx as nx
import matplotlib.pyplot as plt
def show_help():
print >>sys.stderr,"\n\nplotCausalGraph.py: drawing causal graph from LiNGAM output equation matrix B"
print >>sys.stderr,"Library Dependence: networkx , matplotlib\n\n"
View Numpy_broadcasting.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AllanLRH
AllanLRH / latexMWE.tex
Last active Feb 4, 2016
LaTeX MWE (Minimal Working Example)
View latexMWE.tex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=5cm,type=eps,ext=.1.eps,read=.1.eps]{example}
\end{document}
View 01.configure
2015-04-01 01:45:33 +0200
./configure
--disable-osx-universal-binary
--prefix=/usr/local/Cellar/imagemagick/6.9.0-10
--disable-dependency-tracking
--enable-shared
--disable-static
--without-pango
--with-modules
@AllanLRH
AllanLRH / doNotUpdateSpotify.sh
Last active Oct 31, 2018
Disable Spotify autoupdate on Mac OS X (testet on Yosemite).
View doNotUpdateSpotify.sh
# This script prevents Spotifys Autoupdating on OS X (testet on Yosemite)
# Based on this tutorial:
# http://supraliminal.net/blog/2013/4/21/how-to-revert-back-to-the-older-better-spotify-client
#
# This script must be run as root:
# sudo sh doNotUpdateSpotify.sh
#
FILE="/tmp/out.$$"
if [ "$(id -u)" != "0" ]; then
You can’t perform that action at this time.