This file contains hidden or 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 STEAM_SIZE 32 | |
#define STEAM_METHOD AuthId_Steam2 | |
#include <sourcemod> | |
public bool OnClientConnect(int client, char[] rejectmsg, int maxlen) { | |
char[] id = new char[STEAM_SIZE]; | |
if (GetClientAuthId(client, view_as<AuthIdType>(STEAM_METHOD), id, STEAM_SIZE, true)) { | |
if (StrEqual(id, "STEAM_ID_PENDING")) return false; |
This file contains hidden or 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 tmp import _tmp | |
def main(): | |
_tmp.dir(['html', 'html/img', 'screenshots']) | |
# https://github.com/OSCAR-WOS/python-boilerplate |
This file contains hidden or 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 flags import _flags | |
flag_lang = _flags.value(['--lang', '-l']) | |
# https://github.com/OSCAR-WOS/python-boilerplate |
This file contains hidden or 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 translations import _t | |
def main(): | |
_t.load('es') | |
translation = _t.t('usage', {'file_name': '.py', 'flags': ''}) | |
# https://github.com/OSCAR-WOS/python-boilerplate |
This file contains hidden or 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 python | |
import discord | |
import subprocess | |
import re | |
class Client(discord.Client): | |
async def on_ready(self): | |
print('Logged in as ', self.user) |
This file contains hidden or 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 crypto = require('crypto'); | |
const fetch = require('node-fetch'); | |
const checksums = ['80c5978d2d9dbe875bad3c43feb4b16b']; | |
client.on('message', async (message) => { | |
// Loop through all embeded objects | |
message.embeds.forEach((embed) => { | |
if (embed.type === 'video') checkCursedImage(message, embed); | |
}); |