Skip to content

Instantly share code, notes, and snippets.

View david-prv's full-sized avatar
Coffee - The finest organic suspension ever devised!

David david-prv

Coffee - The finest organic suspension ever devised!
  • Germany
View GitHub Profile
import csv
# CSV FILE
file_name = "hodgepodge_tcp.csv"
# FUNCTION TO PARSE CSV FILE
def parseCSV(file):
arr = []
with open(file, newline='') as csvf:
rd = csv.reader(csvf, delimiter=',')
{
"name": "8clicks",
"version": "0.0.1",
"description": "8clicks",
"main": "start.js",
"scripts": {
"start": "nodemon start.js"
},
"nodemonConfig": {
"ignore": [
@david-prv
david-prv / ping.js
Created November 19, 2021 08:37
Example Plugin
/*
| @name Example Plugin
| @description /ping - Command name is defined by filename
| @author David Dewes <hello@david-dewes.de>
*/
/* Add a little description for your command /ping */
module.exports.description = "A command to join the Guest group";
/* If you want to have a channel restriction for this command uncomment & replace id */
<?php
/**
* Class Database
*
* @author Ceytec <david@nani-games.net>
*/
class Database {
private $dbHost = DB_HOST;
private $dbUser = DB_USER;
private $dbPass = DB_PASS;
//Usually this variable will get passed through method parameters
$emailSendTo = "costumer@t-online.de";
//In this example: ConfirmTemplate. Works this way with every template.
$template = new ConfirmTemplate("We need your confirmation!",
"Your password was changed",
"Hello,<br/>your password was recently changed. Please confirm this action by clicking the confirmation<br/>button below. Thank you!",
"https://google.com/",
"https://nani-games.net",
"Please confirm your action here: https://google.com or cancel here: https://nani-games.net");