Skip to content

Instantly share code, notes, and snippets.

@asahui
asahui / GBA.dat
Created February 5, 2021 23:40 — forked from ds84182/GBA.dat
Rehost of a potentially outdated no-intro dat.
clrmamepro (
name "Nintendo - Game Boy Advance"
description "Nintendo - Game Boy Advance"
version 20150715-185055
comment "no-intro | www.no-intro.org"
)
game (
name "007 - Everything or Nothing (USA, Europe) (En,Fr,De)"
description "007 - Everything or Nothing (USA, Europe) (En,Fr,De)"
var form = {
IDRadio: { selector: '[name=component1_SELECT_ONE_RADIOBUTTON_3422', value: 'Checked'},
languageSelect: { selector: '#component1_SELECT_ONE_LISTBOX_2945', value: 'YUE'},
policyCheck: { selector: '#component1_SELECT_ONE_CHECKBOX_2970', value: 'Checked'},
shareCheck: { selector: '#component1_SELECT_ONE_CHECKBOX_3395', value: 'Checked'},
termCheck: { selector: '#component1_SELECT_ONE_CHECKBOX_3016', value: 'Checked'},
scoreSendCheck: { selector: '[name=component1_SELECT_MANY_CHECKBOX_5145]', value: 'Checked'},
@asahui
asahui / build.gradle
Last active December 13, 2017 05:21
a task to display all dependencies when run this build script
// a task to display all dependencies when run this build script
import groovy.json.JsonOutput
task printDependencies {
doLast {
println "print dependencies:"
buildscript.configurations.getByName("classpath").allDependencies.each {
println it.name
}
println "print dependecies files:"
@asahui
asahui / app.css
Created October 1, 2017 22:03 — forked from kabaehr/app.css
Aurelia Gist .ref binding command examples
body {
font-family: "Open Sans", Helvetica, Arial, sans-serif;
margin-bottom: 30px;
}
.list {
display: block;
margin: 20px 0px;
overflow: hidden;
}
@asahui
asahui / j2redump.cpp
Created July 29, 2016 07:23
patch zero3 iso between redump version and non redump version
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, char * argv[]) {
if (argc != 2 && argc != 3) {
printf("usage: j2redump [-r] iso\n");
return -1;
}
@asahui
asahui / crc.py
Last active March 9, 2022 01:32
PS2 Game ELF CRC
#!/usr/bin/env python
import sys
from struct import unpack
# unpack way
def getCRC(filename):
with open(filename, "rb") as f:
crc = 0
data =f.read(4)
while data != b"":
@asahui
asahui / update_logMouse.js
Created November 28, 2015 12:16
Log mouse coordinate posted to server
load("script/utils.js");
load("script/ScriptData.js");
data_prefix = "logMouse_";
ApplicationMain = Java.type("logbook.gui.ApplicationMain");
function gcdFun(a, b) {
if ( ! b) {
return a;
@asahui
asahui / acdan.py
Last active August 29, 2015 14:23
modify bilidan into acdan
#!/opt/local/bin/python3.5
# Biligrab-Danmaku2ASS
#
# Author: Beining@ACICFG https://github.com/cnbeining
# Author: StarBrilliant https://github.com/m13253
#
# Biligrab is licensed under MIT licence
# Permission has been granted for the use of Danmaku2ASS in Biligrab
#
alert(document.body.textContent.length);
# %W% %E%
#
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
#
# Version
version=1
# Component Font Mappings