Skip to content

Instantly share code, notes, and snippets.

@drojf
drojf / fix_yakuza0.reg
Last active April 2, 2023 03:20
Fix Yakuza 0 PC Steam stuttering bug
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Yakuza0.exe\PerfOptions]
"CpuPriorityClass"=dword:00000003
thanks for translating this :)
I found the following errors (I didn't look through everything, I just re-played through the start section):
In Map001.json
- line 7390:
"getting drawn gets embarrass..." but should be
"getting drawn gets embarrassed..."
- line 7390:
# This program does the following
# 1. Collect all the using statements of all the files
# 2. Collect the bodies of all the files (everything after the using statement)
# 3. Create the final merged file, which is all the using statements, followed by all the bodies.
import os
import sys
if len(sys.argv) != 2:
print('This program takes exactly one arguments: the folder containing cs files to merge')
@drojf
drojf / batoto_follows_to_mangadex.js
Last active January 25, 2018 01:13 — forked from akrolsmir/batoto_follows_to_mangadex.js
Import your manga from Batoto to Mangadex
/*
Instructions:
1) Go to https://mangadex.com on Chrome.
2) Open the Chrome console (Ctrl+Shift+J on Windows).
3) Copy + paste the code in this file.
If using JSON export, use (A).
If using raw CSV Text (copy from a text editor), use (B).
If using exel/newline separated values, use (C).
4) Hit Enter.
import re
import conf
findVoiceRegex = re.compile(r'"voice\\(\d\d)\\(.*?)\.ogg"')
umitweak_script = r'c:\temp\umitweak_original.utf'
current_script = r'C:\drojf\large_projects\umineko\git_repository\0.utf'
git_text = None
with open(current_script, encoding=conf.encoding) as script_in:
from __future__ import print_function, unicode_literals
import io, sys, os, struct, zlib
ogg_crc_table = [
0x0, 0x4C11DB7, 0x9823B6E, 0x0D4326D9, 0x130476DC, 0x17C56B6B,
0x1A864DB2, 0x1E475005, 0x2608EDB8, 0x22C9F00F, 0x2F8AD6D6,
0x2B4BCB61, 0x350C9B64, 0x31CD86D3, 0x3C8EA00A, 0x384FBDBD,
0x4C11DB70, 0x48D0C6C7, 0x4593E01E, 0x4152FDA9, 0x5F15ADAC,
0x5BD4B01B, 0x569796C2, 0x52568B75, 0x6A1936C8, 0x6ED82B7F,
0x639B0DA6, 0x675A1011, 0x791D4014, 0x7DDC5DA3, 0x709F7B7A,
0x745E66CD, 0x9823B6E0, 0x9CE2AB57, 0x91A18D8E, 0x95609039,
@drojf
drojf / broken.c
Last active October 29, 2016 13:10
#include "pitches.h"
int LRD = A0;
void setup() {
int buzzerPin = D1;
int LRD = A0;
pinMode(buzzerPin, OUTPUT);
pinMode(LRD, INPUT);
package com.mygdx.game;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.*;
public class MyGdxGame extends ApplicationAdapter {
private Stage stage;
grammar template;
start: in_line out_line code_group (symbol code_group)*;
in_line: IN name_type* NEWLINE;
out_line: OUT name_type* NEWLINE;
name_type: name COLON type;
name: TEXT;
type: TEXT;
@drojf
drojf / mglplot_opengl.c
Created October 14, 2016 02:15
Using IupMglPlot in OpenGL mode prints error "MathGL message - AddLight: light: ID is out of range" when graph updated
#include "stdafx.h"
#include "iup.h"
#include "iup_mglplot.h"
double plug_current_graph_y[100];
Ihandle * plot;
void update_gui_callback()
{