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
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Runtime.CompilerServices; | |
namespace ConsoleApp2 | |
{ | |
internal class GHX2 | |
{ | |
struct GHX2_Header |
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
import javax.crypto.*; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.PBEKeySpec; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.io.UnsupportedEncodingException; | |
import java.security.*; | |
import java.security.spec.InvalidKeySpecException; | |
import com.qiniu.util.Base64; // https://github.com/qiniu/java-sdk/blob/master/src/main/java/com/qiniu/util/Base64.java | |
class Scratch { |
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
/// | |
/// This code is licensed under the terms of the MIT license | |
/// | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace MultiSimConverter |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
public class NeopetsPak | |
{ | |
private static readonly HashSet<int> MidiFiles = new HashSet<int> | |
{ | |
58, 57, 56, 49, 55 | |
}; |
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
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using System.Text.RegularExpressions; | |
using System.Linq; | |
using ICSharpCode.SharpZipLib.Zip.Compression.Streams; | |
using System.IO.Compression; |
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
// iterate each sample file | |
foreach (var sample in Directory.GetFiles(@"C:\Users\temp\Downloads\sample")) | |
{ | |
// open the file stream and create a reader | |
using var stream = File.OpenRead(sample); | |
using var reader = new BinaryReader(stream); | |
// read the header | |
var magic = reader.ReadString(4); | |
var fileTableCompressedSize = reader.ReadInt32(); |
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 PackageItemType; | |
(function (PackageItemType) { | |
PackageItemType[PackageItemType["Image"] = 0] = "Image"; | |
PackageItemType[PackageItemType["MovieClip"] = 1] = "MovieClip"; | |
PackageItemType[PackageItemType["Sound"] = 2] = "Sound"; | |
PackageItemType[PackageItemType["Component"] = 3] = "Component"; | |
PackageItemType[PackageItemType["Atlas"] = 4] = "Atlas"; | |
PackageItemType[PackageItemType["Font"] = 5] = "Font"; | |
PackageItemType[PackageItemType["Swf"] = 6] = "Swf"; | |
PackageItemType[PackageItemType["Misc"] = 7] = "Misc"; |
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
struct MukArchive { | |
uint16 version | |
uint16 fileCount | |
uint32 fileNameLength; // unused, game always uses 8 | |
FileInfo fileInfos[fileCount]; | |
byte fileData[x]; | |
} | |
struct FileInfo { | |
char Name[8]; |
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
/* Ghostbusters texture converter | |
Copyright 2010 Jonathan Wilson | |
The Ghostbusters texture converter is free software; you can redistribute it and/or modify it under | |
the terms of the GNU General Public License as published by the Free | |
Software Foundation; either version 2, or (at your option) any later | |
version. See the file COPYING for more details. | |
*/ | |
#include <stdio.h> | |
#include <string.h> |
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
class WoWMatrixCard | |
{ | |
public uint Width = 8; // SECURITYMATRIX_NUM_COLUMNS in SecurityMatrix.lua, default of 8 | |
public uint Height = 10; // SECURITYMATRIX_NUM_ROWS in SecurityMatrix.lua, default of 10 | |
public uint DigitCount = 2; // SECURITYMATRIX_NUM_MIN_DIGITS in SecurityMatrix.lua, default of 2 | |
public uint ChallengeCount; // number of cells/rounds to be completed | |
public ulong Seed; | |
public uint[] Coordinates; | |
private readonly byte[] _IPad = new byte[0x40]; |
NewerOlder