Skip to content

Instantly share code, notes, and snippets.

View MarvinJWendt's full-sized avatar
😀
Vibing

Marvin Wendt MarvinJWendt

😀
Vibing
View GitHub Profile
@MarvinJWendt
MarvinJWendt / Oxford-Word-List-With-Definition.txt
Created August 25, 2017 00:00
Oxford wordlist with definitions.
This file has been truncated, but you can view the full file.
A
A- prefix (also an- before a vowel sound) not, without (amoral). [greek]
Aa abbr. 1 automobile association. 2 alcoholics anonymous. 3 anti-aircraft.
Aardvark n. Mammal with a tubular snout and a long tongue, feeding on termites. [afrikaans]
@MarvinJWendt
MarvinJWendt / color-fade.js
Created September 7, 2017 03:15
Fade android url-bar color with javascript and jquery.
var colors = ['#000000', '#080808', '#0F0F0F', '#171717', '#1F1F1F', '#262626 ', '#2E2E2E'];
var colors_length = colors.filter(function () { return true; }).length -1;
var currentColor = 0;
var forwards = true;
setInterval(function() {
if(forwards)
{
$("meta[name='theme-color']").attr("content", colors[currentColor]);
currentColor++;
@MarvinJWendt
MarvinJWendt / wordlist-english.txt
Created September 7, 2017 03:17
All english words (English wordlist).
This file has been truncated, but you can view the full file.
&c
'd
'em
'll
'm
'mid
'midst
'mongst
'prentice
're
@MarvinJWendt
MarvinJWendt / wordlist-german.txt
Created September 7, 2017 03:19
All german words (german wordlist).
This file has been truncated, but you can view the full file.
AA
AAA
Aachen
Aachener
Aachenerin
Aachenerinnen
Aachenern
Aacheners
Aachens
Aal
@MarvinJWendt
MarvinJWendt / Generate UUID
Created October 22, 2017 01:09
Generates an UUID in JavaScript
function generateUUID() {
var date = new Date().getTime();
if (typeof performance !== 'undefined' && typeof performance.now === 'function') {
date += performance.now();
}
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var random = (date + Math.random() * 16) % 16 | 0;
date = Math.floor(date / 16);
return (c === 'x' ? random : (random & 0x3 | 0x8)).toString(16);
});
@MarvinJWendt
MarvinJWendt / primes-with-1337.txt
Created March 18, 2018 17:41
Prime numbers which contain "1337"
31337
111337
113371
133709
133711
133717
133723
133733
133769
133781
@MarvinJWendt
MarvinJWendt / primes-starts-with-1337.txt
Created March 18, 2018 17:49
Prime numbers which start with "1337"
133709
133711
133717
133723
133733
133769
133781
1337003
1337023
1337027
@MarvinJWendt
MarvinJWendt / rest-api-template.php
Last active September 16, 2018 09:54
PHP REST API template with JSON response (single file | Usage: see x-README.md)
<?php
//Uncomment to show errors
//ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);
$response = array();
$method = $_SERVER['REQUEST_METHOD'];
header('Content-Type: application/json');
@MarvinJWendt
MarvinJWendt / .eslintrc
Last active November 26, 2018 10:04
Prettier config for TypeScript and JavaScript
{
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error"
}
}
@MarvinJWendt
MarvinJWendt / text-style.md
Created December 3, 2018 15:45
Special markdown html tags

<em>Italic</em>
Italic


<strong>Bold</strong>
Bold