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 { Client } = require('discord.js'); | |
const client = new Client(); | |
const token = 'dein user token hier: https://discordhelp.net/discord-token'; | |
client.on('ready', () => { | |
console.log("Servers:") | |
client.guilds.forEach((guild) => { | |
console.log(" - " + guild.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
# Below we construct a large but non-exhaustive list of names which | |
# users probably should not be able to register with, due to various | |
# risks: | |
# | |
# * For a site which creates email addresses from username, important | |
# common addresses must be reserved. | |
# | |
# * For a site which creates subdomains from usernames, important | |
# common hostnames/domain names must be reserved. | |
# |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Text2Speech</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
</head> | |
<body> |
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
private: | |
const char* getStatusCodeString(int code) { | |
switch (code) { | |
case 100: return "Continue"; | |
case 101: return "Switching Protocols"; | |
case 102: return "Processing"; | |
case 200: return "OK"; | |
case 201: return "Created"; | |
case 202: return "Accepted"; | |
case 203: return "Non-Authoritative Information"; |
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
# mumbledj -server=mumble.example.net -port=11900 -username=MumbleDJ -channel=Jukebox | |
Configuration successfully loaded! | |
panic: Song download failed. | |
goroutine 27 [running]: | |
runtime.panic(0x737180, 0xc20810abc0) | |
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5 | |
main.(*mumbledj).OnSongFinished(0xbfd0e0) | |
/root/mumbledj/main.go:99 +0x10f | |
main.*mumbledj.OnSongFinished·fm() |
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
mumbledj -server=mumble.example.net -port=11900 -username=MumbleDJ -channel=Jukebox | |
Configuration successfully loaded! | |
panic: runtime error: index out of range | |
goroutine 20 [running]: | |
runtime.panic(0x772540, 0xbe30bc) | |
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5 | |
main.add(0xc208037578, 0x8, 0xc208090784, 0x1b, 0x0, 0x0, 0x0, 0x0) | |
/root/mumbledj/commands.go:158 +0x391 |
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 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 gevent | |
from gevent import socket, queue | |
from gevent.ssl import wrap_socket | |
import logging | |
logger = logging.getLogger('irc') | |
logger.setLevel(logging.DEBUG) | |
ch = logging.StreamHandler() |
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
""" | |
PyAudio Example: Make a wire between input and output (i.e., record a | |
few samples and play them back immediately). | |
This is the callback (non-blocking) version. | |
""" | |
import pyaudio | |
import time |