Skip to content

Instantly share code, notes, and snippets.

View MazeW's full-sized avatar
:octocat:

‮ezaM MazeW

:octocat:
View GitHub Profile
I unlock maps b
@MazeW
MazeW / shortArray.json
Created January 13, 2018 00:35
veri gud
This file has been truncated, but you can view the full file.
["a","aa","aah","aahed","aahing","aahs","aal","aalii","aaliis","aals","aardvark","aardvarks","aardwolf","aardwolves","aargh","aarrgh","aarrghh","aarti","aartis","aas","aasvogel","aasvogels","ab","aba","abac","abaca","abacas","abaci","aback","abacs","abacterial","abactinal","abactinally","abactor","abactors","abacus","abacuses","abaft","abaka","abakas","abalone","abalones","abamp","abampere","abamperes","abamps","aband","abanded","abanding","abandon","abandoned","abandonedly","abandonee","abandonees","abandoner","abandoners","abandoning","abandonment","abandonments","abandons","abandonware","abandonwares","abands","abapical","abas","abase","abased","abasedly","abasement","abasements","abaser","abasers","abases","abash","abashed","abashedly","abashes","abashing","abashless","abashment","abashments","abasia","abasias","abasing","abask","abatable","abate","abated","abatement","abatements","abater","abaters","abates","abating","abatis","abatises","abator","abators","abattis","abattises","abattoir","abattoirs","aba
@MazeW
MazeW / shortArray.json
Created January 13, 2018 00:36
veri gud
This file has been truncated, but you can view the full file.
["a","aa","aah","aahed","aahing","aahs","aal","aalii","aaliis","aals","aardvark","aardvarks","aardwolf","aardwolves","aargh","aarrgh","aarrghh","aarti","aartis","aas","aasvogel","aasvogels","ab","aba","abac","abaca","abacas","abaci","aback","abacs","abacterial","abactinal","abactinally","abactor","abactors","abacus","abacuses","abaft","abaka","abakas","abalone","abalones","abamp","abampere","abamperes","abamps","aband","abanded","abanding","abandon","abandoned","abandonedly","abandonee","abandonees","abandoner","abandoners","abandoning","abandonment","abandonments","abandons","abandonware","abandonwares","abands","abapical","abas","abase","abased","abasedly","abasement","abasements","abaser","abasers","abases","abash","abashed","abashedly","abashes","abashing","abashless","abashment","abashments","abasia","abasias","abasing","abask","abatable","abate","abated","abatement","abatements","abater","abaters","abates","abating","abatis","abatises","abator","abators","abattis","abattises","abattoir","abattoirs","aba
# l33t ruby bot made by yours truly
require 'discordrb'
require 'yaml'
config = YAML.load_file('config.yml')
client = Discordrb::Commands::CommandBot.new token: config['bot_token'], prefix: config['bot_prefix']
client.command(:ping, chain_usable: false, description: 'Basic ping command to test if bot is alive or not', usage: 'ping') do |event|
event.respond 'Pong!'
end
client.command(:roll, description: 'picks a random number from 1 to 6', usage: 'roll') do |event|
@MazeW
MazeW / run.js
Created December 25, 2018 20:22
Simple sleep function for node.js 9.3 or newer.
function sleep(n) {
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, (n * 1000));
}
// where n = seconds
// remove the * 1000 multiplier in the function to make it miliseconds
yea

#Hi!

image

@MazeW
MazeW / order_alphabet.pas
Created September 14, 2020 10:22
10 random english alphabet uppercase letters in order
program order;
uses
crt;
var
a: array[1..10] of char;
d:char;
i,c,r: integer;
@MazeW
MazeW / nanodisplaytest.md
Last active May 14, 2024 15:25
Connecting an IPS TFT display (ST7789) to an arduino nano and testing image output.

Guide on connecting a ST7789 display to an Arduino Nano.

I recently decided to order an arduino nano and a tft display from AliExpress. When I looked up online it took me some time to find a clear guide how to connect the display to the arduino, either the display had different pins or it was a slightly different model, but with some trial and error, I managed to get it to work.

What you'll need for this:

  • 1x Arduino Nano
  • 1x AdaFruit 1.3" 240x240 ST7789 display
  • 6x jumper wires or whatever else you can use to connect

Connecting display to the arduino