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 / 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 / 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 / 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 / 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 / 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]