Skip to content

Instantly share code, notes, and snippets.

View MarvinJWendt's full-sized avatar
😀
Vibing

Marvin Wendt MarvinJWendt

😀
Vibing
View GitHub Profile
@OrionReed
OrionReed / dom3d.js
Last active October 2, 2024 11:33
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@MarvinJWendt
MarvinJWendt / dot_new_domain_list.csv
Last active February 27, 2022 18:56
A list of `.new` doamins
Domain name Company Description
ar.new Aircards Easily create and deploy WebAR activation codes to use on your next augmented reality project.
io.new Bit.io Upload data to your Bit.io cloud database.
query.new bit.io Easily query bit.io data repositories.
pen.new CodePen Prototype your frontend code in CodePen's online development sandbox.
vue.new CodeSandbox Create a new vue.js project online with CodeSandbox.
ts.new CodeSandbox Create a new Typescript project online with CodeSandbox.
js.new CodeSandbox Create a new Javascript project online with CodeSandbox.
react.new CodeSandbox Create a new React project online with CodeSandbox.
ng.new CodeSandbox Create a new Angular project online CodeSandbox.
@lenalebt
lenalebt / DefaultKeyBinding.dict
Created December 18, 2019 06:59
How to use a typical Linux / Windows Keybindung on MacOS (tested with 10.15.2 Catalina)
/*
PUT THIS FILE IN ~/Library/KeyBindings/DefaultKeyBinding.dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more closely
match default behavior on Windows systems. This particular mapping assumes
that you have also switched the Control and Command keys already.
This key mapping is more appropriate after switching Ctrl for Command in this menu:
Apple->System Preferences->Keyboard & Mouse->Keyboard->Modifier Keys...->
Change Control Key to Command
Change Command key to Control
@MarvinJWendt
MarvinJWendt / javascript_chain_functions.js
Created October 8, 2019 23:23
Chaining JavaScript Functions
const log = console.log
const is = (x) => {
return {
plus: (plus) => {
return is(x + plus)
},
ten: () => {
return (x === 10)
},
@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 / 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++;
@rxaviers
rxaviers / gist:7360908
Last active October 5, 2024 04:51
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@jbroadway
jbroadway / Slimdown.md
Last active September 4, 2024 10:27
Slimdown - A simple regex-based Markdown parser.