Skip to content

Instantly share code, notes, and snippets.

View vobject's full-sized avatar

Volker Schneider vobject

View GitHub Profile
@vobject
vobject / win2utc.reg
Created June 29, 2012 10:39
Make Windows 7 clock use UTC instead of localtime
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
@vobject
vobject / sizeof.c
Created October 3, 2012 05:30
Sizes of C data types
/*
* gcc -std=c99 -pedantic -Wall sizeof.c && ./a.out
* clang -std=c99 -pedantic -Wall sizeof.c && ./a.out
*/
#include <stdio.h>
#include <stdbool.h>
#include <time.h>
#include <sys/time.h>
@vobject
vobject / typedef_struct.cpp
Created December 15, 2012 03:05
Some simple typdef/struct compilation tests in C/C++.
/*
* Some simple typdef/struct compilation tests.
* Tested with gcc4.7 and clang3.1
*/
struct AAA {
int a, b, c, d;
};
typedef struct _BBB { // Windows header style.
static void printCurrentMethod()
{
StackTraceElement[] ste = Thread.currentThread().getStackTrace();
System.out.println("DEBUG: " + ste[2].getMethodName());
}
#include <iostream>
using namespace std;
struct C {};
C* f() { return (C*)0x80000000; }
C* b() { return (C*)0x70000000; }
int main()
{
#!/usr/bin/env python3
import tkinter as tk
import time
import datetime
import threading
import random
import queue
import enum
#!/usr/bin/env python3
import argparse
import datetime
import imp
import os
import time
import numpy as np
import tensorflow as tf