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
Log: | |
(gdb) run | |
Starting program: /usr/lib/games/unvanquished/unvanquished +set in_nograb 1 +nocurses +set fs_libpath /usr/lib/games/unvanquished +set fs_basepath /var/games/unvanquished | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". | |
Unvanquished 0.30.0 Linux x86_64 Aug 4 2014 | |
+set in_nograb 1 +set fs_libpath /usr/lib/games/unvanquished +set fs_basepath /var/games/unvanquished | |
Home path: /home/gabriel/.unvanquished | |
Pak path: /var/games/unvanquished/pkg |
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 <exception> | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <cmath> | |
using namespace std; | |
const string operators1 = "+-"; | |
const string operators2 = "*/%"; |
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
local tArgs = { ... } | |
if #tArgs < 3 then | |
print("Usage: mine {1,2,3} <x> <y> [params]") | |
return | |
end | |
local height = tonumber(tArgs[1]) | |
local def1 = tonumber(tArgs[2]) | |
local def2 = tonumber(tArgs[3]) | |
local rot = "l" |
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 python2 | |
# -*- coding: utf-8 -*- | |
import os | |
import codecs | |
import zipfile | |
import textwrap | |
def print_usage(myname): | |
USAGE = textwrap.dedent(""" |
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 Clock | |
{ | |
public: | |
Clock(); | |
long reset(); | |
private: | |
long lasttime; | |
} | |
Clock::Clock() |
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
// structs taken from github.com/dkreuter/firered/ fbox.c | |
// assembler from github.com/shinyquagsire23/DisFire | |
struct fbox { | |
void *function; //0 | |
char field_4; //4 | |
char x; //5 | |
char y; //6 | |
char field_7; //7 | |
char w; //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
#!/usr/bin/env python3 | |
""" | |
This program 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 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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 playonlinux-bash | |
# Date : (2015-12-07 06-36) | |
# Last revision : (2015-12-07 06-36) | |
# Wine version used : 1.6.2 | |
# Distribution used to test : Debian Sid (Unstable) | |
# Author : Gabriel Huber [email protected] | |
# Script licence : GPL v.2 | |
# Program licence : Retail | |
# Depend : |
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
Windows Registry Editor Version 5.00 | |
[HKEY_USERS\S-1-5-21-3463664321-2923530833-3546627382-1000\Software\LAV] | |
[HKEY_USERS\S-1-5-21-3463664321-2923530833-3546627382-1000\Software\LAV\Audio] | |
"TrayIcon"=dword:00000000 | |
"DRCEnabled"=dword:00000000 | |
"DRCLevel"=dword:00000064 | |
"DTSHDFraming"=dword:00000000 | |
"AutoAVSync"=dword:00000001 |
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 python3 | |
""" | |
Solution for https://scrap.tf/raffles/2JKVYD | |
""" | |
# https://github.com/savoirfairelinux/num2words | |
from num2words import num2words | |
PRIMES = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, | |
61, 67, 71, 73, 79, 83, 89, 97] |