Skip to content

Instantly share code, notes, and snippets.

View xiaohutai's full-sized avatar

Xiao-Hu Tai xiaohutai

  • The Netherlands
View GitHub Profile
@xiaohutai
xiaohutai / .htaccess
Last active September 6, 2018 10:23
.htaccess for no-www and yes-www
# -- no-www --
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
# -- yes-www --
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
@xiaohutai
xiaohutai / boltforms.bolt.yml
Last active August 22, 2018 10:29 — forked from ankedsgn/boltforms.bolt.yml
Maak een Honeypot dmv een hidden field in de boltforms config
form:
...
fields:
...
custom:
type: hidden
options:
label: 'Custom'
required: false
attr:

Ik schrijf u in uw hoedanigheid als gegevensbeschermingsfunctionaris voor uw bedrijf.

Door een situatie waarin uw bedrijf mij zonder expliciete toestemming heeft aangemeld voor solliciaties bij bedrijven die geen relevantie houden tot mijn profiel heb ik zorgen over de verwerking van data binnen uw bedrijf.

Ik zou graag willen dat u van meet af aan weet dat ik binnen een maand antwoord verwacht op mijn verzoek, zoals vereist krachtens artikel 12, bij gebreke waarvan ik mijn verzoek zal doorzenden met een klachtbrief aan de bevoegde autoriteiten.

Gelieve het volgende te adviseren:

  1. Bevestig mij of mijn persoonlijke gegevens worden verwerkt. Als dit het geval is, geef me dan de categorieën persoonlijke gegevens die u over mij hebt in uw bestanden en databases.
  2. Vertel me in het bijzonder wat u over mij weet in uw informatiesystemen, al dan niet in databases, inclusief e-mail, documenten op uw netwerken of spraak of andere media die u opslaat.
const dateFormatOptions = {
year: 'numeric',
month: 'numeric',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
};
const dateFormatter = new Intl.DateTimeFormat(document.documentElement.lang, dateFormatOptions);
@media print {
body {
width: 21cm;
height: 29,7cm;
}
}
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
@xiaohutai
xiaohutai / meta.meta
Created February 22, 2019 12:47
meta
M E T A T E M E T A T E M E T A
E T E T E T
T E T E T E
A T E M E T A T E M E T A T E M
E T
T E
M E T A T E M
E T
T E
A T E M E T A
@xiaohutai
xiaohutai / decagon-clip-path.css
Last active April 5, 2019 12:46
Decagon clip-path
.decagon {
clip-path: polygon(
34.54915% 2.44717%,
65.45085% 2.44717%,
90.45085% 20.61074%,
100% 50%,
90.45085% 79.38926%,
65.45085% 97.55283%,
34.54915% 97.55283%,
9.54915% 79.38926%,
* { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
* * * * * * { background-color: rgba(255,255,0,.2); }