Skip to content

Instantly share code, notes, and snippets.

View thomasbnt's full-sized avatar
👋
Probably listening music now

Thomas Bonnet thomasbnt

👋
Probably listening music now
View GitHub Profile
@thomasbnt
thomasbnt / app.js
Created March 6, 2018 14:54
Simple, complete example of a bot in Discord.js
// Load up the discord.js library
const Discord = require("discord.js");
// This is your client. Some people call it `bot`, some people call it `self`,
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`,
// this is what we're refering to. Your client.
const client = new Discord.Client();
// Here we load the config.json file that contains our token and our prefix values.
const config = require("./config.json");
@thomasbnt
thomasbnt / mysql-cheatsheet.md
Last active September 16, 2022 08:40 — forked from angristan/mysql-cheatsheet.md
MySQL cheatsheet

Manage databases

Create database

CREATE DATABASE database;

Delete database

Discord

Règles sur les serveurs Discord

Règles généraux

  • Pas de pseudos vides.
  • Aucun pseudos inapproprié.
  • Pas de pseudos sexuellement explicites.
  • Pas de pseudos offensants.
@thomasbnt
thomasbnt / mysql.md
Created March 2, 2021 11:19 — forked from nesmon/mysql.md
Help for use MySQL.js with Node.js and a helper

MySQL.js Usage with Node.js and a helper.

Requirements :

Before start you will need :

  • A Node.JS project with mysql module
  • A mysql account with mysql_native_password as authentication method :
    • If this is not the case do this : ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

      Where root is your username, and password your new password.

@thomasbnt
thomasbnt / readme.md
Created July 17, 2022 00:01 — forked from AlexMercedCoder/readme.md
Web Development Glossary
  • Abstraction: Something that simplifies the complexities of something else to make it easier to use without the need to understand how it works.

  • Server: Application running on a network that takes request and generates a response. Often, these responses are either HTML web pages or data JSON format.

  • Client: Application that is made to create requests to servers and then render the response into something usable for the user. A internet browser is a client application that let's you send requests to web servers and render the html in the response as a visual webpage.

  • Web Browser: A desktop or mobile application that is for sending requests to web servers to get back a particular web site or web application.

  • Web Application: A software application written to be consumed via a web browser

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example