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 <benchmark/benchmark.h> | |
#include <string> | |
#include <sstream> | |
#include <windows.h> | |
#include <iostream> | |
constexpr static unsigned io_chunk_size = 1024 * 1024 * 8; // 8 MiB | |
static void BM_write_file_nochunks(benchmark::State& state) { | |
state.PauseTiming(); |
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
glActiveTexture | |
glAttachShader | |
glBeginQuery | |
glBeginTransformFeedback | |
glBindBuffer | |
glBindBufferBase | |
glBindBufferRange | |
glBindFramebuffer | |
glBindProgramPipeline | |
glBindSampler |
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
// SpotifyAdMuter.cpp : Defines the entry point for the console application. | |
// | |
#include <iostream> | |
#include <string> | |
#include <windows.h> | |
#include <stdio.h> | |
#include <tlhelp32.h> | |
#include <stdlib.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
#include <stdio.h> | |
#include <stdbool.h> | |
#define MAX_IP_LEN 15 // Max length is 4*3 + 3, (max of 4 3-digit numbers, plus 3 periods) | |
typedef unsigned char BYTE; | |
// Enum for all possible IP classes | |
typedef enum { | |
A, B, C, D, E, LOOPBACK |
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
import os | |
import time, datetime | |
from collections import deque | |
# Python 2.7.x | |
# Made for the decaf emulator | |
# Prints last X lines of each log in given directory (current by default) | |
last_x_lines = 20 | |
log_lines_cutoff = 17 # number of chars to cut from each logfile (the date/time) |
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
import subprocess | |
import os | |
import time | |
# For Python 2.7.x | |
# Configure the paths (by default, it works if you place it in a new folder in the decaf-emu directory) | |
# Logs are placed in that directory | |
# Warning: Will probably get pretty crazy with lots of games |
NewerOlder