Skip to content

Instantly share code, notes, and snippets.

Rogier Slag rogierslag

Block or report user

Report or block rogierslag

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rogierslag
rogierslag / top-100-badge.html
Last active Apr 30, 2019
Magnet.me top 100 popular jobs employer badge
View top-100-badge.html
<a href="https://magnet.me/"
target="_blank">
<!-- You can set the width of your button to any value between 150 and 284. The bigger the value, the bigger the badge will be -->
<img width="150"
alt="Top 100 popular jobs on Magnet.me"
src="https://cdn.magnet.me/badges/employers/nl/top100-popular-jobs-badge-2019_2x.png" />
</a>
View center.html
<html>
<head>
<style>
body {
width: 500px;
border: 1px solid red;
}
.block {
display: flex;
@rogierslag
rogierslag / 1 SETUP.md
Last active Aug 3, 2018
password length vs hashing time
View 1 SETUP.md

Experiment setup

I'm gonna use Ruby since it's the most readily available right now. Combined with Ruby I'm gonna use the bcrypt gem version 3.1.11.

Create the inputs

head -c 100M </dev/urandom > /tmp/100M
@rogierslag
rogierslag / Companies page.json
Created Jul 26, 2018
Example breadcrumbs Magnet.me
View Companies page.json
{
"//": "Occurs on eg https://magnet.me/en-GB/companies/Netherlands",
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "/en-GB/companies",
@rogierslag
rogierslag / translate.js
Created Sep 26, 2017
Maily example 11 - translations
View translate.js
const React = require('react');
const translations = require('./translations');
const tokenizeRegex = new RegExp(`({:[a-zA-Z]*})`, 'g');
const translationKeyRegex = new RegExp(`{:([a-zA-Z]*)}`);
let id = 0;
const dummyReactElement = (input) => {
id++;
return React.createElement('span', {key : id}, input);
@rogierslag
rogierslag / translate.js
Created Sep 26, 2017
Maily example 10 - translation react components
View translate.js
let id = 0;
const dummyReactElement = (input) => {
id++;
return React.createElement('span', {key : id}, input);
};
const realReactElement = (input) => {
id++;
return React.cloneElement(input, {key:id});
};
@rogierslag
rogierslag / translations.js
Created Sep 26, 2017
Maily example 9 - translations
View translations.js
module.exports = {
en : {
// English translations will appear here
},
nl : {
// And the Dutch ones do here
}
};
@rogierslag
rogierslag / names.json
Last active Sep 16, 2017
Random fixture data
View names.json
This file has been truncated, but you can view the full file.
[
"Erling Durgan",
"Ludwig Morissette",
"Annabel Maggio",
"Zita Raynor",
"Donavon Cormier",
"Stan Kilback",
"Gaston Stracke",
"Earline Bode",
@rogierslag
rogierslag / invoice.js
Created Aug 30, 2017
rogierslag.nl - maily example 8
View invoice.js
const React = require('react');
const style = require('../style');
const Envelope = require('./envelope');
const Text = require('./text');
const FullWidthSection = require('./fullWidthSection');
const Invoice = React.createClass({
@rogierslag
rogierslag / envelope.js
Last active Aug 20, 2018
rogierslag.nl - maily example 7
View envelope.js
const React = require('react');
const style = require('../style');
const Header = require('./header');
const Contact = require('./contact');
const Divider = require('./divider');
const FullWidthSection = require('./fullWidthSection');
const Envelope = React.createClass({
You can’t perform that action at this time.