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
#!/bin/bash | |
VERSION=3.11.8 | |
VERSION_SHORT=3.11 | |
mkdir -p /usr/local/src | |
cd /usr/local/src | |
if [ ! -f Python-${VERSION}.tgz ]; then | |
wget -O Python-${VERSION}.tgz https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz |
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.Security.Cryptography; | |
using System.Linq; | |
using System.Text; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
int[] res = Max(393489189116837918); |
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
/** | |
* Every country (ISO3166) split into geographical region. | |
* https://meta.wikimedia.org/wiki/List_of_countries_by_regional_classification | |
* https://en.wikipedia.org/wiki/Commonwealth_of_Independent_States#Member_states | |
* https://en.wikipedia.org/wiki/Southeast_Asia | |
*/ | |
export namespace CountryByRegion { | |
export enum Europe { | |
AX = 'Aland Islands', | |
AL = 'Albania', |
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
# Character index based search. | |
# Each line is seperated into words | |
# each word is then categories into indexes | |
# INPUT_PATH = r"PATH" | |
text = """What the fuck did you just fucking say about me, you little bitch? | |
I'll have you know I graduated top of my class in the Navy Seals, | |
and I've been involved in numerous secret raids on Al-Quaeda, | |
and I have over 300 confirmed kills. |
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 Discord = require('discord.js'); | |
const { JsonDB } = require('node-json-db'); | |
const { DataError } = require('node-json-db/dist/lib/Errors'); | |
const { Config } = require('node-json-db/dist/lib/JsonDBConfig'); | |
const db = new JsonDB(new Config('db', true, false, '/')); | |
const client = new Discord.Client(); | |
// Initialize db | |
try { |
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(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.xml2js=f()}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r}()({1:[function(require,module,exports){(function(){"use strict";exports.stripBOM=function(str){if(str[0]==="\ufeff"){return str.substring(1)}else{return str}}}).call(this)},{}],2:[function(require,module, |
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 "base64.hpp" | |
#include <regex> | |
/* | |
ENCODE/DECODE Functions | |
*/ | |
std::string b64_encode(const std::string &input, bool strip_padding = false) { | |
static std::string encoded; // define output string | |
// resize string for space for the base64 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
#!/usr/bin/env python3 | |
import requests | |
import os | |
import sys | |
import argparse | |
''' | |
This function takes a string and checks if it uses the format [http(s)][://mangadex.org/chapter/]* | |
aka. if it's a valid link to a mangadex manga/chapter. |
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
exec ac_config | |
exec ac_crosshair | |
exec ac_baited | |
exec ac_expr | |
exec ac_spam | |
bind mouse1 "+attack" | |
bind mouse2 "+attack2" | |
bind mouse4 "+voicerecord" | |
bind w "+forward" |
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
""" | |
DEFINE FUNCTIONS HERE | |
""" | |
import re | |
# get steamid of trader | |
def TradeLink2SteamId(tradeurl): | |
tradeurl = str(tradeurl) | |
partnerid = re.search("(=).*?(&)", tradeurl).group().strip("=").strip("&") |
NewerOlder