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 / 1 - firstthingsfirst.md
Last active February 1, 2018 21:57
Python Google Spreadsheet API - Tutorial

Console commands

Windows (CMDer):

λ pip install oauth2client gspread

Linux:

$ sudo pip install oauth2client gspread
@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 / 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 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 / urbanDictionaryApi.js
Created April 18, 2018 11:32
Simple UrbanDictionary.com API module for NodeJS
/**
* © 2018-present Ringo Hoffmann (zekro Development)
* zekro.de | contact@zekro.de
* READ BEFORE USAGE: http://zekro.de/policy
*
* ATTENTION:
* This code is inspired and refers on the code from
* mvrilo's Project 'urban' on GitHub:
* https://github.com/mvrilo/urban/blob/master/lib/urban.js#L66
*/
@zekroTJA
zekroTJA / cloc_args.txt
Last active May 4, 2018 21:26
script to cloc all repositroies from a specific github user
--exclude-lang=XML,Markdown,JSON,TOML,YAML,"MSBuild script","Qt Project","Windows Resource File" --not-match-f \w+.Designer.cs
@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 / Ubuntu 17.10 VM Documentation.md
Last active May 13, 2018 11:51
How to set up a VM with Ubuntu 17.10

How to create a Ubuntu 17.10 VM

Setup

  1. Create VM, Configuring and adding Disk Image
  2. VRAM → 256MB
λ VBoxManage.exe modifyvm "Ubuntu 17.10" --vram 256
  1. start VM