Skip to content

Instantly share code, notes, and snippets.

View iebb's full-sized avatar

ieb iebb

View GitHub Profile
import json
import os
import UnityPy
import requests
def parse_track(filename):
env = UnityPy.load(filename)
import mimetypes
import os.path
import urllib.parse
import flask
import requests
import re
from flask import Flask, request, Response
app = Flask(__name__)
@iebb
iebb / translations.php
Last active October 6, 2018 02:47
translations.php
<?php
$lang['mission_order'] = '{target} {limit} {period}';
$lang['mission_secret_release'] = '{target} {limit}';
$lang['names'] = [
"Unit" => ["", "Printemps", "BiBi", "lily white", "CYaRon!", "AZALEA", "Guilty Kiss"],
"Group" => ["", "μ’s", "Aqours", "A-RISE", "Saint Snow"],
"Personal" => ["",
101=>"Honoka", 102=>"Kotori", 103=>"Umi",
@iebb
iebb / named.conf.local
Created November 12, 2016 14:35
DNS Config
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "prod.game1.ll.sdo.com." {
@iebb
iebb / jquery.sorter.js
Created November 7, 2016 14:26
jquery.sorter.js
function getidx(base, idx) {return $(base).children('td').eq(idx).text();}
function cmp(a, b, desc) {return desc?a<b:a>b;}
$.fn.sorter = function() {
$(this).each(function() {
var tbl = this;
$($(this).find("thead").find("th")).click(function(){
var idx = $(this).index(), order = 0;
$(tbl).find("thead").find("th").each(function() {if (idx != $(this).index()) $(this).removeClass("sort-desc").removeClass("sort-asc");});
if ($(this).hasClass("sort-desc")) {order = 1; $(this).removeClass("sort-desc").addClass("sort-asc");}
else $(this).removeClass("sort-asc").addClass("sort-desc");
@iebb
iebb / NEW SKILL
Created July 6, 2016 09:23
NEW SKILL
SELECT unit_number, eponym, unit_m.name, unit_leader_skill_m.description,
member_tag_m.name as 'member',
unit_attribute_m.name as 'attribute',
unit_leader_skill_extra_m.effect_value as 'value'
FROM unit_m
LEFT JOIN unit_leader_skill_m ON unit_leader_skill_m.unit_leader_skill_id = unit_m.default_leader_skill_id
LEFT JOIN unit_leader_skill_extra_m ON unit_leader_skill_extra_m.unit_leader_skill_id = unit_m.default_leader_skill_id
LEFT JOIN member_tag_m ON unit_leader_skill_extra_m.member_tag_id = member_tag_m.member_tag_id
LEFT JOIN unit_attribute_m ON unit_leader_skill_extra_m.leader_skill_effect_type = unit_attribute_m.attribute_id
WHERE unit_m.rarity > 3
@iebb
iebb / matrix-compare-ieb.js
Last active June 7, 2016 08:30
Compare for Matrix
function compare(t) {
var btn = $(t).attr("id");
var cmp = $(t).attr("id").replace("btn", "cmp");
var std = $(t).attr("id").replace("btn", "std");
var out = $(t).attr("id").replace("btn", "out");
var diff = JsDiff.diffLines($('#'+out).text(), $('#'+std).text());
var display = document.getElementById(cmp);
display.innerHTML = '';
diff.forEach(function(part) {
var color = part.added ? 'green' : part.removed ? 'red' : 'grey';
@iebb
iebb / 超级男孩724车库表.txt
Created April 30, 2016 13:39
超级男孩724车库表
= 路虎
+ 自行车
/ 电瓶车
0 玩具车
1 兰博基尼
2 玛莎拉蒂
3 比亚迪
4 长城
5 红旗
6 三菱