Skip to content

Instantly share code, notes, and snippets.

View xianbaum's full-sized avatar
😎
Working from home

Christian Baum xianbaum

😎
Working from home
View GitHub Profile
@xianbaum
xianbaum / 4cxc.userscript
Last active July 3, 2019 04:41
A userstyle
/* ==UserStyle==
@name 4cxc
@namespace github.com/openstyles/stylus
@version 1.0.0
@homepageURL https://gist.github.com/xianbaum/15f2d426d405e31d80f1527c637fe1fd/
@updateURL https://gist.github.com/xianbaum/15f2d426d405e31d80f1527c637fe1fd/raw/
==/UserStyle==*/
/*
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.
/* ==UserStyle==
@name 4cxcw
@namespace github.com/openstyles/stylus
@version 1.0.0
@homepageURL https://gist.github.com/xianbaum/15f2d426d405e31d80f1527c637fe1fd/
@updateURL https://gist.github.com/xianbaum/15f2d426d405e31d80f1527c637fe1fd/raw/
==/UserStyle==*/
/*
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.
@xianbaum
xianbaum / stackoverflowcompactquestions.userscript
Last active January 22, 2018 07:45
Stack Overflow Compact Questions Userstyle
/* ==UserStyle==
@name Stack Overflow Compact Questions
@namespace github.com/openstyles/stylus
@version 1.0.0
@homepageURL https://gist.github.com/xianbaum/9bfb718d9f1218d022b74fab4ebbc8a6/
@updateURL https://gist.githubusercontent.com/xianbaum/9bfb718d9f1218d022b74fab4ebbc8a6/raw/
@author Christian Michael Baum
==/UserStyle==*/
/*
@xianbaum
xianbaum / githubcompact.userstyle
Last active January 22, 2018 07:45
GitHub Compact Userstyle
/* ==UserStyle==
@name GitHub Compact
@namespace github.com/openstyles/stylus
@version 1.0.0
@homepageURL https://gist.githubusercontent.com/xianbaum/486c01881984b7aa3c77d752270508c2/
@updateURL https://gist.githubusercontent.com/xianbaum/486c01881984b7aa3c77d752270508c2/raw/
@author Christian Michael Baum
==/UserStyle==*/
/*
@xianbaum
xianbaum / helloable.cpp
Last active December 8, 2017 02:40
C++ equivalent of my helloable.c implementation to compare generated assembly for optimization
#include <stdio.h>
/*
helloable.cpp
THIS SOURCE FILE IS IN THE PUBLIC DOMAIN
This source file was used as a basis to help me understand
how vtables are implemented, so that I could implement
an interface pattern in C. Try decompiling the source code for this
@xianbaum
xianbaum / helloable.c
Last active December 8, 2017 02:37
An implementation of multiple inheritence using class-based inheritence patterns and interface/virtual class based inheritence using standard ANSI C89 to use for future reference
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
/*
helloable.c
THIS SOURCE FILE IS IN THE PUBLIC DOMAIN
Notes on this implementation:
// ==UserScript==
// @name StrayKitty
// @namespace http://christianbaum.com
// @description A cat toy
// @include *
// @version 2
// @grant none
// ==/UserScript==
/*
Christian Baum