Skip to content

Instantly share code, notes, and snippets.

Avatar

Innokentiy Sokolov keshon

View GitHub Profile
@himanshuxd
himanshuxd / Tutorial.md
Created Feb 25, 2020
A short discord.js tutorial with examples
View Tutorial.md

Discord.js Tutorial - a short tutorial

After this tutorial you are able to code a cool bot with many commands and a level system.

Setup

Did you ever want to write your own bot but you think you are too bad for it or you don't have motivation to do so? Stop thinking that way. Writing discord bots using discord.js is really, really, easy if you know some javascript basics.

In this tutorial we will use some ES6, which makes javascript more powerful. If you have never heard of ES6, I'll explain some stuff whenever I use it. Found a mistake? Just comment.

@chuckreynolds
chuckreynolds / fetch-dadjoke-api.php
Last active Aug 8, 2019
Fetches a dad joke from icanhazdadjoke.com
View fetch-dadjoke-api.php
<?php
$url = 'https://icanhazdadjoke.com/';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Accept:text/plain']);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
echo $data;
@dantheman213
dantheman213 / install-deepin-arch-manjaro-readme.md
Last active Sep 22, 2021
Install Deepin Desktop Environment from a minimum Arch or Manjaro Install Operating System
View install-deepin-arch-manjaro-readme.md

Install Deepin Desktop Environment In Arch or Manjaro

I recommend doing this as a net/minimum install with Manjaro (no desktop manager attached with the install).

Update sources & packages

pacman -Syu
reboot -h now