This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import datetime | |
import imp | |
import os | |
import time | |
import numpy as np | |
import tensorflow as tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import tkinter as tk | |
import time | |
import datetime | |
import threading | |
import random | |
import queue | |
import enum | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
struct C {}; | |
C* f() { return (C*)0x80000000; } | |
C* b() { return (C*)0x70000000; } | |
int main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void printCurrentMethod() | |
{ | |
StackTraceElement[] ste = Thread.currentThread().getStackTrace(); | |
System.out.println("DEBUG: " + ste[2].getMethodName()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] | |
"RealTimeIsUniversal"=dword:00000001 | |