Skip to content

Instantly share code, notes, and snippets.

View TobiasSeitz's full-sized avatar

Tobi Seitz TobiasSeitz

View GitHub Profile
@TobiasSeitz
TobiasSeitz / anonymousZxcvbn.js
Created July 19, 2016 12:55
anonymous zxcvbn: strip sensitive information
/**
* Created by TbsStz on 19.07.2016.
*/
var zxcvbn = require('zxcvbn');
var lowercaseRegex = /[a-z]/g;
var uppercaseRegex = /[A-Z]/g;
var digitsRegex = /[0-9]/g;
var specialCharsRegex = /[@'#\.\$;%\^&\+=!"\(\)\*,-\/:<>\?§]/g;
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>Message Board</title>
<style>
body {
font: 12pt Arial, sans-serif;
background-color: #eee;
@TobiasSeitz
TobiasSeitz / take-picture-mediaDevices.getUserMedia.html
Last active January 29, 2017 19:38
How to use MediaDevices API to take picture from a web cam with getUserMedia
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Media Device Access</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
video, img {
max-width:100%;
}
@TobiasSeitz
TobiasSeitz / element-template.tmpl.html
Last active May 15, 2017 06:50
Polymer 2 Element Template Webstorm/IntelliJ (Bare Minimum)
<link rel="import" href="../bower_components/polymer/polymer-element.html">
<link rel="import" href="shared-styles.html">
<dom-module id="$NAME">
<template>
<style include="shared-styles">
:host {
display: block;
}
</style>