Skip to content

Instantly share code, notes, and snippets.

Avatar
😵
AAAAAAAAAAAAA

Marco Quinten SplittyDev

😵
AAAAAAAAAAAAA
View GitHub Profile
@SplittyDev
SplittyDev / triangular_spheres.js
Last active Oct 12, 2020
P5.js Abstract Shapes
View triangular_spheres.js
// Created by Marco Quinten (@SplittyDev).
// License: Public Domain. Do whatever you want with the code.
const W = 5000;
const H = 5500;
function isInCircle(x, y, cx, cy, r) {
return (Math.pow(cx - x, 2) + Math.pow(cy - y, 2)) < Math.pow(r, 2);
}
@SplittyDev
SplittyDev / ContactForm.md
Last active Oct 12, 2020
Several coding tests I came up with..
View ContactForm.md

Aufgabe: Kontaktformular

Ziel der Aufgabe ist es, ein visuell ansprechendes und funktionales Kontaktformular unter Verwendung moderner Webtechnologien zu erstellen.

Anforderungen

Technische Anforderungen

  • Eigene Entwicklungsumgebung einrichten
  • Webserver mit PHP und MySQL
  • Backend in PHP 7, MySQL
  • Frontend in HTML5, CSS3, JS ES6+ falls notwendig
@SplittyDev
SplittyDev / iodine_rfc_match.md
Last active Aug 23, 2017
Iodine RFC: Match Expression
View iodine_rfc_match.md

Iodine RFC: Match Expression

Proposed syntax (modified EBNF)

EBNF Syntax:

() = GROUP
[] = OPTIONAL
{}* = ZERO OR MORE
{}+ = ONE OR MORE
View jsonrpc2.js
/*
* JSON-RPC 2.0 implementation as per http://www.jsonrpc.org/specification.
* License: MIT (https://opensource.org/licenses/MIT)
* Author: Marco Quinten <splittydev@gmail.com>
*/
const debug = require('debug')('json-rpc');
// List of public API endpoints
var exposed = [];
@SplittyDev
SplittyDev / a_readme.md
Last active Mar 17, 2019
x86 bare metal protected mode itoa implementation
View a_readme.md

Freestanding x86 itoa implementation

For use in OS development.
Designed to be assembled with NASM, porting it over to other assemblers should be easy.

License

You are free to use, modify, distribute and sell this code.
A small message referring to this gist would be nice, though not required.

Important

This implementation uses a custom calling convention.

@SplittyDev
SplittyDev / eva.js
Created Aug 12, 2016
eva.js - The lightweight es6 event library.
View eva.js
// eva.js - The lightweight es6 event library.
var eva = (() => {
// Prepare local globals
var eva = {};
var receivers = [];
var gid = 0;
/**
* Verify the type of a parameter.
* Throw if the type does not match the expected type.
* @param {object} item - The argument itself
View test.html
<!-- The webpage should look something like that -->
<!DOCTYPE html>
<html>
<head>
<!-- Probably a few meta tags, scripts, etc here -->
<!-- Add the following to the end of the <head> section, just
before the </head> tag: -->
<script>
window.alert("Something!");
</script>
View keybase.md

Keybase proof

I hereby claim:

  • I am splittydev on github.
  • I am splitty (https://keybase.io/splitty) on keybase.
  • I have a public key whose fingerprint is EA4E 6964 1BCD ECB7 F04C B3B5 7C7B 5F81 9AF8 3565

To claim this, I am signing this object:

View mbam-keygen.js
var crypto = require('crypto')
var alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
function nextRand (lower, upper) {
'use strict'
return Math.floor(Math.random() * (upper - lower + 1) + lower)
}
function generateId () {
'use strict'
@SplittyDev
SplittyDev / WhirlpoolCryptoServiceProvider.cs
Last active Dec 1, 2019
Public domain Whirlpool implementation in C#
View WhirlpoolCryptoServiceProvider.cs
using System;
using System.Text;
namespace System.Security.Cryptography
{
public class WhirlpoolCryptoServiceProvider : HashAlgorithm
{
#region Constants
const int R = 10;
You can’t perform that action at this time.