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 ctypes import * | |
from ctypes.wintypes import * | |
winmm = windll.winmm | |
class MciException(Exception): | |
def __init__(self, code): | |
self.code = code | |
success, self.message = mci_get_error_string(code) |
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 pdfrw import PdfReader, PdfWriter | |
fname = "Docs" | |
pdf = PdfReader(fname + ".pdf") | |
for i, page in enumerate(pdf.pages, 1): | |
writer = PdfWriter() | |
writer.addpage(page) | |
writer.write(f"{fname}-{i}.pdf") |
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 * as assert from "assert"; | |
import * as util from "util"; | |
interface Test { | |
input: any[]; | |
expected: any; | |
} | |
export class Problem { | |
readonly name: string; |
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
[DISASM] | |
000000 // | |
dcdcdc //Default color | |
4e8b60 //Regular comment | |
3b6848 //Repeatable comment | |
666666 //Automatic comment | |
dcdcdc //Instruction | |
c57aaf //Dummy Data Name | |
c57aaf //Regular Data Name | |
9fe7f9 //Demangled Name |
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
enum Result | |
{ | |
OK = 1, | |
Fail = 2, | |
NoConnection = 3, | |
InvalidPassword = 5, | |
LoggedInElsewhere = 6, | |
InvalidProtocolVer = 7, | |
InvalidParam = 8, | |
FileNotFound = 9, |
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
meta: | |
id: dc6 | |
title: Diablo CEL 6 | |
application: Diablo II | |
file-extension: dc6 | |
license: MIT | |
ks-version: 0.7 | |
encoding: ASCII | |
endian: le | |
seq: |
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 Files { | |
hidden [String] $iExt | |
hidden [String] $oCodec | |
hidden [String] $oExt | |
hidden [String] $iDir | |
hidden [String] $oDir | |
hidden [System.Object] $files | |
Files ([String] $iExt, [String] $oCodec, [String] $oExt) { | |
$this.iExt = $iExt |
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
// ==UserScript== | |
// @name OSRS HiScores | |
// @namespace orsrs_hs | |
// @description Modifies the high scores table for the Old School RuneScape website. | |
// @include *services.runescape.com/m=hiscore_* | |
// @version 1 | |
// @run-at document-end | |
// @require https://code.jquery.com/jquery-3.2.1.slim.min.js | |
// ==/UserScript== |
NewerOlder