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 |
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
#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
// 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
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
#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
""" | |
Retrieves log files from given ("REPO_NAMES") repositories | |
for offline/batch processing/searching. | |
Iterates thought all issues, finds the last posted comment | |
that contains at least one file and downloads all files to | |
appropriately named directories, with the filename being | |
the Issue title (game name/titleID). | |
Replaces invalid characters in that file name with '-' and | |
if there are multiple files in an issue, appends the |
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
// Vita3K emulator project | |
// Copyright (C) 2018 Vita3K team | |
// | |
// This program is free software; you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation; either version 2 of the License, or | |
// (at your option) any later version. | |
// | |
// This program is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
const DEMO_MODE : bool = false; | |
fn get_digit(num: u32, index: u32) -> u8 { | |
(num / 10u32.pow(index) % 10) as u8 | |
} | |
/* Returns true if a number was emitted */ | |
fn emit_units_tens_hundreds(num: u32, str: &mut String) -> bool { | |
let units_names = ["", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]; | |
let tens_names = ["", "ten", "twenty", "thirty", "fourty", "fifty", "sixty", "seventy", "eighty", "ninety"]; |
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
//------------------------------------------------ | |
//--- 010 Editor v2.1 Binary Template | |
// | |
// File: TIF.bt | |
// Authors: Kevin O. Grover | |
// E-mail: kevin@kevingrover.net | |
// Version: 1.7 | |
// Purpose: A template for parsing TIFF (Tagged Image File Format) files. Also now handles GeoTIFF files. | |
// Category: Image | |
// File Mask: *.tif,*.tiff |
OlderNewer