Skip to content

Instantly share code, notes, and snippets.

View hputzek's full-sized avatar
😎
Whaddup?

Hendrik Putzek hputzek

😎
Whaddup?
View GitHub Profile
@DVegasa
DVegasa / gist:248fea16aa1443f5d9a7fcaa1f3b043d
Last active April 18, 2021 16:49 — forked from error454/gist:3229018
QR Code WiFi Scheme Regex

QR Code WiFi Scheme Regexs of Extreme Awesomeness

A few regular expressions to parse WIFI schemes such as:

WIFI:T:WEP;S:test;P:rainbows\;unicorns\:jedis\,ninjas\\ secure;;

Network Type

Raw

(?<=T:)[a-zA-Z]+(?=;)

@arleighdickerson
arleighdickerson / watch.js
Created December 24, 2017 17:25
hot reloading of server-side feathersjs application (put this in src/)
const logger = require('winston');
const invalidate = require('invalidate-module');
const { resolve } = require('path');
const chokidar = require('chokidar');
process.on('unhandledRejection', (reason, p) => {
logger.error('Unhandled Rejection at: Promise ', p, reason);
});
const src = (...args) => resolve(__dirname, ...args);
@idettman
idettman / add-to-existing-namespaces.js
Last active February 26, 2024 00:57
JavaScript: JSDoc Advanced Tips
/* https://leahayes.wordpress.com/2011/08/28/documenting-javascript-with-jsdoc3/
Namespaces can still be documented when a more abstract mechanism is used. @lends allows members to be added to an existing namespace:
*/
/**
* Root namespace
* @namespace root
*/
$namespace('root', /** @lends root **/ {
/**
@bringfire
bringfire / fastLEDSampleCode.ino
Created November 8, 2016 21:15
FastLED Sample Code
/* Title: inoise8_pal_demo.ino
*
* By: Andrew Tuline
*
* Date: August, 2016
*
* This short sketch demonstrates some of the functions of FastLED, including:
*
* Perlin noise
* Palettes
@igrigorik
igrigorik / github.bash
Last active December 22, 2023 23:55
Open GitHub URL for current directory/repo...
alias gh="open \`git remote -v | grep git@github.com | grep fetch | head -1 | cut -f2 | cut -d' ' -f1 | sed -e's/:/\//' -e 's/git@/http:\/\//'\`"