Skip to content

Instantly share code, notes, and snippets.

Avatar

Christoph Matthies chrisma

View GitHub Profile
@klange
klange / _.md
Last active May 17, 2023 13:46
It's a résumé, as a readable and compilable C source file. Since Hacker News got here, this has been updated to be most of my actual résumé. This isn't a serious document, just a concept to annoy people who talk about recruiting and the formats they accept résumés in. It's also relatively representative of my coding style.
View _.md

Since this is on Hacker News and reddit...

  • No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later). My actual résumé is a good bit crazier.
  • I apologize for the use of _t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
  • Since people kept complaining, I've fixed the assignments of string literals to non-const char *s.
  • My use of type * name, however, is entirely intentional.
  • If you're using an older compiler, you might have trouble with the anonymous unions and the designated initializers - I think gcc 4.4 requires some extra braces to get them working together. Anything reasonably recent should work fine. Clang and gcc (newer than 4.4, at le
@drozzy
drozzy / README.md
Last active April 6, 2023 19:17
FMC (http://www.fmc-modeling.org/) compositional and dynamic elements draw.io libraries
View README.md

ABOUT

This is just some stencils I created for myself to draw FMC (http://www.fmc-modeling.org/) diagrams with draw.io.

Here is how they look:

lib_fmc_compositional

lib_fmc_dynamic

@timpulver
timpulver / GetNameAndTitleOfActiveWindow.scpt
Created February 11, 2013 10:38
[AppleScript] Get Name of active window | Returns the name / title of the active (frontmost) window
View GetNameAndTitleOfActiveWindow.scpt
# taken from user Albert's answer on StackOverflow
# http://stackoverflow.com/questions/5292204/macosx-get-foremost-window-title
# tested on Mac OS X 10.7.5
global frontApp, frontAppName, windowTitle
set windowTitle to ""
tell application "System Events"
set frontApp to first application process whose frontmost is true
set frontAppName to name of frontApp
@alexander-yakushev
alexander-yakushev / latex-cheatsheet-template.tex
Last active January 4, 2023 15:37
Beautiful cheatsheet template for key bindings, compiled with XeLaTeX
View latex-cheatsheet-template.tex
%% Copyright 2020 Alexander Yakushev
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
View uninstall_gems.sh
#!/usr/bin/env bash
#
# Originally from https://gist.github.com/IanVaughan/2902499
#
# authors: Ian Vaughan
# Jacob Zimmerman
#
# usage: uninstall_gems [<version> ...]
#
# examples:
@chrisma
chrisma / README.md
Created June 4, 2021 09:44 — forked from drozzy/README.md
FMC (http://www.fmc-modeling.org/) compositional and dynamic elements draw.io libraries
View README.md

ABOUT

This is just some stencils I created for myself to draw FMC (http://www.fmc-modeling.org/) diagrams with draw.io.

Here is how they look:

lib_fmc_compositional

lib_fmc_dynamic

@avandeursen
avandeursen / diffs.make
Last active January 25, 2018 08:03
Track-changes-like rendered diff for latex documents from two git versions.
View diffs.make
MAKEFILE=$(lastword $(MAKEFILE_LIST))
# Simple set of make targets to create an msword-track-changes like
# diff for tex, based on two versions committed in git.
#
# Copyright (c) Arie van Deursen, 2014.
# Distributed under Apache License Version 2.0.
# https://www.apache.org/licenses/LICENSE-2.0
#
# Note: Either this Makefile should be the same in both the OLD and the NEW version,
@TheWaWaR
TheWaWaR / argparse_helper.py
Last active December 31, 2017 10:25
An argparse helper
View argparse_helper.py
#!/usr/bin/env python
# coding: utf-8
"""
A simple argparse helper.
Features:
=========
* Make nesting commands more elegant and easy to write.
* Without lose argparse's ability (means you can refactor current code)
@lehmannro
lehmannro / soundboard.py
Created November 12, 2014 16:43
Video board for terminal use
View soundboard.py
import csv
import itertools
import os
import subprocess
import sys
import termios
import tty
CONFIG_FILE = 'videos.cfg'
YOUTUBE = 'http://www.youtube.com/watch?v=%s'
View gist:99b10089cb53a038c942
# This will give all the ICSE2015/2016 papers filenames extracted from the titles of the PDF metadata,
# and put them in a folder on your desktop. It's been tested on OSX and depends on wget and pdfinfo,
# available via the macports xpdf package on pre-Yosemite OSX, and here for Yosemite users:
#
# ftp://ftp.foolabs.com/pub/xpdf/xpdfbin-mac-3.04.tar.gz
#
# It's a manual install, unfortunately, but I trust you're geared up for that.
#
# The username and password are available from these public-facing pdfs:
# http://atlantis.isti.cnr.it/ICSE2015ProgramBrochureOnLineVersion.pdf (2015 - icse15/conf15)