Skip to content

Instantly share code, notes, and snippets.

View kimmobrunfeldt's full-sized avatar

Kimmo Brunfeldt kimmobrunfeldt

View GitHub Profile
@kimmobrunfeldt
kimmobrunfeldt / spectre.c
Created January 4, 2018 14:13 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
const App = React.createClass({
render() {
var page = this.props.currentPage;
return <div>
{page}
</div>;
}
});
@kimmobrunfeldt
kimmobrunfeldt / pandoc.css
Last active October 15, 2018 06:46 — forked from killercup/pandoc.css
Run: `pandoc --css pandoc.css -s api.md -o api.html && open api.html` and export as PDF from browser.
/*
* I add this to html files generated with pandoc. Originally:
* https://gist.github.com/killercup/5917178#file-pandoc-css
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;