Skip to content

Instantly share code, notes, and snippets.

View klaseskilson's full-sized avatar

Klas Eskilson klaseskilson

View GitHub Profile
@klaseskilson
klaseskilson / run-changed-files.sh
Created February 27, 2018 09:10
Run modified spec files
#!/bin/bash
bundle exec rspec $(git diff --name-only develop | grep spec)
# Modified from
# https://coderwall.com/p/usrhyq/running-modified-specs-with-git
@klaseskilson
klaseskilson / keybase.md
Created April 5, 2017 08:29
keybase.md

Keybase proof

I hereby claim:

  • I am klaseskilson on github.
  • I am klas (https://keybase.io/klas) on keybase.
  • I have a public key ASBFHyqRH5765Gwdb2yEgWosbEeuoVTdatQdAd3qc7pQfgo

To claim this, I am signing this object:

@klaseskilson
klaseskilson / cmakelists.txt
Last active November 6, 2015 13:35
TNM084 lab 1 cmakelists
#
#
# this cmakelists places the binaries in the folder bin/ in this
# folder.
#
#
@klaseskilson
klaseskilson / english.tex
Created February 19, 2015 22:51
Simple tex scrum illustration
% A simple illustration of the scrum process
% Klas Eskilson
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning}
\begin{document}
\begin{figure}[h!]
\centering
\begin{tikzpicture}
\node
@klaseskilson
klaseskilson / Default (OSX).sublime-keymap
Last active June 7, 2016 20:53
My Sublime Text OSX keymap
[
{ "keys": ["super+ä"], "command": "next_view" },
{ "keys": ["super+ö"], "command": "prev_view" },
{ "keys": ["super+]"], "command": "next_view" },
{ "keys": ["super+["], "command": "prev_view" },
{ "keys": ["super+'"], "command": "next_view" },
{ "keys": ["super+;"], "command": "prev_view" },
{ "keys": ["super+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
@klaseskilson
klaseskilson / latex-starter.md
Last active October 5, 2015 08:34
Latex starter document

Latex starter document

A neat document to use each time you're about to start writing a new LaTeX document.

@klaseskilson
klaseskilson / en-us.md
Last active August 29, 2015 14:07
Sublime Text 3 Tips and Tricks

Sublime Text 3 Tips and Tricks

These are written from a OS X perspective. To use them on a Windows/Linux machine, replace with CTRL in most cases.

This is a work in progress.

Word highlighting/cursor placement

  • Highlight a word and press ⌘ + D. Each time you do this, the next occurrence of the same word will be highlighted. To skip a word, press ⌘ + K and then ⌘ + D again. CMD + D
@klaseskilson
klaseskilson / realtime.m
Created September 10, 2014 09:09
Semi real time audio recording in MatLab
for n = 1:50;
tempAudioObj = audiorecorder;
disp('Recording part');
disp(n)
recordblocking(tempAudioObj, 0.05);
disp('Done with part');
disp(n)
tempAudioData = getaudiodata(tempAudioObj);