Skip to content

Instantly share code, notes, and snippets.

View zekroTJA's full-sized avatar
🚀
Fuck it, ship it!

Ringo Hoffmann zekroTJA

🚀
Fuck it, ship it!
View GitHub Profile
@zekroTJA
zekroTJA / fraction.h
Last active March 12, 2018 08:35
A simple fraction class for c++ created while bored in scool class
/*
Simple Fraction Class v.1.2
© 2018 Ringo Hoffmann
~ USAGE ~
Initializing:
Fraction f1(1, 2);
Fraction f2(3.1415);
@zekroTJA
zekroTJA / puzzlegame.cpp
Last active May 7, 2018 05:50
Simple puzzle game created in school class
/*
Simple Puzzle Game v.1.8.2
© 2018 Ringo Hoffmann
Start Arguments:
-r Reset high score
-d Enable debug mode
*/
// Check if code is compiling on Windows.
// Then define WIN flag
@zekroTJA
zekroTJA / mining_v3.0a.lua
Created March 17, 2018 15:27
Complex room digging program for Minecraft ComputerCraft modification
-- Grid definition:
-- y x
-- | /
-- | /
-- |/
-- -------- z
_x, _y, _z = ...
t = turtle
@zekroTJA
zekroTJA / material_colors.md
Last active March 23, 2018 10:38
Some of the main material color codes as JSON
@zekroTJA
zekroTJA / example.cpp
Last active February 18, 2026 22:20
Simple C++ asynchronous timer class
/*
COPYRIGHT © 2018 Ringo Hoffmann (zekro Development)
READ BEFORE USING: https://zekro.de/policy
*/
#include "timer.h"
using namespace std;
@zekroTJA
zekroTJA / YouTubeAPIKey.md
Last active October 15, 2022 06:23
Short tutorial how to create a YouTube API key

How to create a YouTube API key

What do you need?

  • Google Account

Step 1

@zekroTJA
zekroTJA / example.cpp
Last active March 31, 2018 10:39
Simple, self created, bidirectional and dynamic list in C++ - leant to the JavaScript array syntax
/*
© 2018 - present Ringo Hoffmann (zekro Development)
If you want to use this code, please read
this first: https://zekro.de/policy
With usage of this code or parts of it in
any way, you agree to the terms above.
*/
// Pull Client class from discord.js
const { Client } = require('discord.js')
// Pull CmdParser class from discordjs-cmds
const { CmdParser } = require('discordjs-cmds')
// Create bot instance
const bot = new Client()
// Create CmdParser instance with passing bot and general prefix
const Cmd = new CmdParser(bot, '-')
@zekroTJA
zekroTJA / console_colors.sh
Last active October 21, 2022 12:24
some color codes for console
# ORIGINAL BY github.com/vratiu
# https://gist.github.com/vratiu/9780109
# Reset
Color_Off="\033[0m" # Text Reset
# Regular Colors
Black="\033[0;30m" # Black
Red="\033[0;31m" # Red
@zekroTJA
zekroTJA / cloc.js
Created April 13, 2018 11:20
Little script to impement cloc command into a node js application
const exec = require('child_process').exec
exports.cloc = (cb) => {
exec('cloc ./src --yaml', (error, stdout, stderr) => {
cb('$ cloc ./src\n' + stdout)
console.log(error, stdout, stderr)
})
}