Skip to content

Instantly share code, notes, and snippets.

View PTEstudy.js
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 Dec 13, 2017
a task to display all dependencies when run this build script
View build.gradle
// 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 Oct 1, 2017 — forked from kabaehr/app.css
Aurelia Gist .ref binding command examples
View app.css
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 Jul 29, 2016
patch zero3 iso between redump version and non redump version
View j2redump.cpp
#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 Jul 25, 2016
PS2 Game ELF CRC
View crc.py
#!/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 Nov 28, 2015
Log mouse coordinate posted to server
View update_logMouse.js
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 Aug 29, 2015
modify bilidan into acdan
View acdan.py
#!/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
#
View documentTextLength.js
alert(document.body.textContent.length);
View fontconfig.properties
# %W% %E%
#
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
#
# Version
version=1
# Component Font Mappings
@asahui
asahui / Steins;Gate 線形拘束のフェのグラム
Created May 13, 2013
Steins;Gate 線形拘束のフェのグラム
View Steins;Gate 線形拘束のフェのグラム
+--[■]---->+----[■]----+
| | |
+---[■]--->+ | |
| | | |
[■]--->+ +--[■]---->+----[■]----+-->[■]-->--[■]
| | | |
+---[■]--->+ | |
| | |
+--[■]---->+----[■]----+