=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
BrainFuck Programming Tutorial by: Katie
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/* | |
Wrap specified words in the specified tag with jQuery | |
h1, h2, and h3 are preselected because of the project this was made for. | |
Separate the words you wish to wrap by the "pipe" symbol. | |
You should note that this cascades down through all child elements. So you can be as broad or narrow as you want with the selector. | |
*/ | |
$(document).ready(function(){ | |
var pattern = /\b(of|the|in|and)/gi; // target whole words globally and case insensitive | |
var replaceWith = '<span>$1</span>'; // wrap in the tag you want |
/* --- Usage --- */ | |
g++ server.c -o server | |
g++ client.c -o client | |
./server | |
./client 127.0.0.1 | |
/* --- server.c --- */ | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> |
#!/usr/bin/python | |
import time | |
def new_d(): | |
return { | |
1: 2, 3: 4, 5: 6, 7: 8, 9: 10, | |
11: 12, 13: 14, 15: 16, 17: 18, 19: 20 | |
} |
Development Status :: 1 - Planning | |
Development Status :: 2 - Pre-Alpha | |
Development Status :: 3 - Alpha | |
Development Status :: 4 - Beta | |
Development Status :: 5 - Production/Stable | |
Development Status :: 6 - Mature | |
Development Status :: 7 - Inactive | |
Environment :: Console | |
Environment :: Console :: Curses | |
Environment :: Console :: Framebuffer |
DROP DATABASE IF EXISTS ๐; | |
CREATE DATABASE ๐; | |
USE ๐; | |
CREATE TABLE ๐ค( | |
๐ INTEGER PRIMARY KEY, | |
๐ฃ varchar(64), -- name | |
๐ DATE -- date of registration |
This gist shows how to make the bot wait for a message or reaction after doing a command. This should not be copypasted.
Check the discord.py docs for a detailed explanation of how it all works internally and which kwargs it takes.
See here two commands, one waiting for any message in a channel and the other waiting for a reaction with a specific emoji.