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
#!perl -w | |
use strict; | |
use warnings; | |
use XML::Parser; | |
use PerlIO::via::gzip; | |
use feature 'say'; | |
use Archive::Zip; | |
use Image::Magick; | |
use Algorithm::Diff 'sdiff'; | |
use List::Util qw/min max first/; |
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
function process_command() { | |
if [ "$$" -eq "$BASHPID" ]; then | |
if [[ "$HANDLER_INSTALLED" -ne "1" ]]; then | |
exec > >( | |
trap "" INT TERM; | |
awk '{ print strftime("%Y-%m-%d %H:%M:%S ", systime()) $0; fflush(stdout) }' | |
) | |
exec 2> >( | |
trap "" INT TERM; | |
awk '{ print strftime("%Y-%m-%d %H:%M:%S ", systime()) $0; fflush(stdout) }' >&2 |
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
program LgpUnp; | |
(* Extracts Files from SquareSoft's Final Fantasy VII .LGP files *) | |
(* Copyright (c) 1998 by Bjoern Hoehrmann All rights reserved *) | |
var Index:record { Entry in the filelist at the beginning } | |
Name:array[0..19] of char; { Filename } | |
offset:longint; { FileOffset of this file } | |
res:longint; { Unused Data } | |
end; |
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
{ _Add wildcards, parameter comfort, seperate file extraction for manipulation, | |
graphical output, check for xdim, memory using Speedup for swapping,..._ } | |
{$Q-} | |
program TEXfileUnpack; | |
(* Converts .TEX Files from SquareSoft's Final Fantasy VII TO BMP files *) | |
(* Copyright (c) 1998 by Bjoern Hoehrmann All rights reserved *) | |
type |
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/perl | |
use strict; | |
use warnings; | |
use DBI; | |
use JSON; | |
use YAML::XS; | |
my $dbh = DBI->connect('dbi:SQLite:dbname=:memory:'); | |
our $Arg; |
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
WITH | |
bytes AS ( | |
SELECT 0x00 AS byte | |
UNION ALL | |
SELECT byte+1 FROM bytes WHERE byte < 0xFF | |
), | |
base AS ( | |
SELECT 0x0000 AS cp | |
UNION ALL | |
SELECT cp+1 FROM base WHERE cp < 0x10FFFF |
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
WITH | |
args AS ( | |
SELECT | |
' | |
[ | |
[[1,3]], | |
[[3,5],[7,8]], | |
[[8,8]], | |
[[0,100]] | |
] |
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
const through2 = require('through2'); | |
const split2 = require('split2'); | |
var vowels = through2({ objectMode: true }); | |
var consonants = through2({ objectMode: true }); | |
var muxed = through2({ objectMode: true, highWaterMark: 1 }); | |
[vowels, consonants].forEach(x => x.pipe(muxed)); | |
muxed.pipe(process.stderr); |
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
export namespace api { | |
export interface Request< | |
> { | |
method: string; | |
params: any; | |
result: any; | |
} | |
export interface Notification< |
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
export namespace api { | |
export interface Request<T extends string> { | |
params: any; | |
result: any; | |
__name: { | |
[name in T]: T | |
} | |
} |