- Download and unzip IPFUnpacker
- Make a copy of
patch
directory into the folder of IPFUnpacker - Open cmd.exe,
cd
to the folder of IPFUnpacker. - Batch decrypt all
patch/*.ipf
by commandfor /R %x in (patch\*.ipf) do ipf_unpack.exe %x decrypt
- Batch extract all lua and xml files by command
for /R %x in (patch\*.ipf) do ipf_unpack.exe %x extract lua xml
- Now
extract
folder contains the latest updated lua scripts.
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
from pathlib import Path | |
from tqdm.auto import tqdm | |
import json | |
def delete_google_drive_json_recursively(drive_path): | |
drive_path = Path(drive_path) | |
for f in (pbar := tqdm(drive_path.glob("**/*.json"))): | |
try: | |
data = json.loads(f.read_bytes()) |
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
# Trie-based solution | |
# https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ffc7/00000000001d3ff3 | |
# Seems to be feasible solution with good efficicency, though unfortunately got WA in larger test | |
from sys import stdin, stdout | |
class TrieNode(object): | |
def __init__(self, char: str): |
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
#!/usr/bin/env python | |
import sys | |
import re | |
import textwrap | |
def str2txt(srt): | |
lines = re.sub(r'^$\n|^[0-9].*\n|^\n','', srt, flags=re.MULTILINE | re.UNICODE) | |
print(textwrap.fill(lines, 70)) | |
if __name__ == '__main__': |
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 <stdlib.h> | |
#include <math.h> | |
typedef double (*func)(double); | |
double f(double x) { | |
return x * x - 2.0 * x - 5.0; | |
} | |
double fd(double x) { |
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
{ | |
"configurations": [ | |
{ | |
"name": "Win32", | |
"intelliSenseMode": "clang-x64", | |
"includePath": [ | |
"${workspaceRoot}", | |
".", | |
"C:/Users/001151/Documents/MinGW/lib/gcc/mingw32/6.3.0/include/c++", | |
"C:/Users/001151/Documents/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32", |
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
174 | |
2 | |
0 2 | |
2 | |
1 1 | |
2 | |
2 0 | |
3 | |
0 0 3 | |
3 |
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
var phantom = require('phantom'); | |
var fs = require('fs'); | |
let pageScraper = (function () { | |
'use strict'; | |
let module = { | |
content: null, | |
onResourceRequested: function (requestData, request) { | |
// run in phantomjs runtime: https://github.com/amir20/phantomjs-node#pageon |
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
/*----------------------------------------------------*/ | |
#pragma mark - XCTAsserts | |
/*----------------------------------------------------*/ | |
XCTAssert(expression, format...); | |
XCTAssertTrue(expression, format...); | |
XCTAssertFalse(expression, format...); | |
XCTAssertEqual(expression1, expression2, format...); | |
XCTAssertNotEqual(expression1, expression2, format...); | |
XCTAssertNil(expression, format...); |
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
0,0 | |
1,1 | |
2,2 | |
3,3 | |
4,4 | |
5,5 | |
6,6 | |
7,7 | |
8,8 | |
9,9 |
NewerOlder