Skip to content

Instantly share code, notes, and snippets.

View hans2103's full-sized avatar
🏠
Working from home

Hans Kuijpers hans2103

🏠
Working from home
View GitHub Profile
@hans2103
hans2103 / _roboto-slab.scss
Created March 21, 2018 10:21
CSS Roboto Slab Embedded Font Base64 encoded
@font-face {
font-family: 'Roboto Slab';
font-weight: 100;
font-style: normal;
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAFToABAAAAAAkUAAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHUE9TAAABbAAABZ8AAAz2CrJa1UdTVUIAAAcMAAAARgAAAFix/bVDT1MvMgAAB1QAAABPAAAAYJcunFljbWFwAAAHpAAAAP0AAAFsyWHBBmN2dCAAAAikAAAALAAAADgo2gE0ZnBnbQAACNAAAATkAAAJkYsLekFnYXNwAAANtAAAAAgAAAAIAAAAEGdseWYAAA28AAA/bQAAbJilUntHaGVhZAAATSwAAAA0AAAANvkasdZoaGVhAABNYAAAAB8AAAAkEH8HymhtdHgAAE2AAAACVwAAA3qcmUrcbG9jYQAAT9gAAAHAAAABwE1KZ2JtYXhwAABRmAAAACAAAAAgArkK6G5hbWUAAFG4AAABFAAAAioonEWmcG9zdAAAUswAAAGOAAACNXDyqSZwcmVwAABUXAAAAIsAAACOCAGMoXjalJMDkGRLEEVvjdla27Zt21bg27Zt2/Zf27Zt294Nde6J7rFipipOvombrKoeOUkJKqvacp279h6sOEWJZRbyuHtvf+QBNMkJ8EVIilSS2xhFhu5Akeq6gW6glrvh7g73gntMa7VZO90L2q+TLsYVd6+5mq6+a+s6u/nsgeFN5PD0TeZj4Y2esskjXk516RIvvyqpiqqqmqqrDloDNVRTNVcLtVJrdVdfDdZwjdLH+kSf6XP9qb/0t/7Rv/pP/2u8JmiiJmmyZmqWZmuO5mqR9mivnPxWHjvYjmNH2KKQ/U0RGiqPXrQfFYtvGtoK3RucqWesOmofvWYf6E37mdkSVVjt5CfqsMapUEjxoiShnEHxhCoeU2RKZEBEofWw62jdiR2q8hpB
@hans2103
hans2103 / _roboto.scss
Last active March 21, 2018 10:21
CSS Roboto Embedded Font Base64 encoded
@font-face {
font-family: 'Roboto';
font-weight: 100;
font-style: normal;
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAE3gABIAAAAAjhQAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABlAAAAEcAAABkBYEFsEdQT1MAAAHcAAAFwQAADMC/+OBoR1NVQgAAB6AAAAEPAAAByjdiELVPUy8yAAAIsAAAAFIAAABgc9sjkGNtYXAAAAkEAAABrQAAA0zCFqbcY3Z0IAAACrQAAABIAAAASC4yAcpmcGdtAAAK/AAAATMAAAG8X/Iaq2dhc3AAAAwwAAAADAAAAAwACAATZ2x5ZgAADDwAADsAAABusqRl2BZoZG14AABHPAAAAGkAAAD4DQv/+WhlYWQAAEeoAAAANgAAADb8R9J/aGhlYQAAR+AAAAAfAAAAJAqXBmBobXR4AABIAAAAAk0AAAO2l1dkXmxvY2EAAEpQAAAB3AAAAd74xdvnbWF4cAAATCwAAAAgAAAAIAMeAvluYW1lAABMTAAAANMAAAF4GuU5LnBvc3QAAE0gAAAAEwAAACD/bQBkcHJlcAAATTQAAACqAAAA4ys2ybx42g3BMQEBUBgGwPveBlBCDZtVBD1sAEAHEEIpHfx3ohkC5pquiamYWYhljXWNbY1DjXONq7t4+mi+flIb+hgLUpd/D5ULMgB42ozSA5AcWxjF8X8jTpbPtm3btm3btm3btm1mbQSD9e5TUNrzTnVNuKg5Xb/bPd9V9e0hAMayDlsR77DTHgew2PGXnncGi5183omns9gZx15wFosR40jJ2OD0E887i9H4KRETgo2N1/KvB5KxOwbLRW9EbwSrBJtF70XfRPXRxGCbMAxHR/VhQbhIuFa4TXhceEHUGt4U3hEvEr5kM+NFYl/RStEG8VLRXnaC17jK3vD89+ZcXm9i7qqff
@hans2103
hans2103 / customvalidation.php
Last active March 13, 2018 14:37
Joomla RSForm!Pro customvalidation
<?php
defined('_JEXEC') or die('Restricted access');
require_once dirname(__FILE__) . '/validation.php';
class RSFormProCustomValidations extends RSFormProValidations
{
public static function Nederlands_Telefoonnummer($value, $extra = null, $data = null)
@hans2103
hans2103 / .htaccess
Last active November 2, 2021 19:03
https://github.com/h5bp/server-configs-apache v3.0.0 with Joomla additions
# Apache Server Configs v3.0.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have
# access to the main server configuration file (which is usually called
# `httpd.conf`), you should add this logic there.
#
# https://httpd.apache.org/docs/current/howto/htaccess.html
# ######################################################################
Verifying that "hans2103.id" is my Blockstack ID. https://explorer.blockstack.org/name/hans2103.id
@hans2103
hans2103 / customvalidation.php
Created December 20, 2017 14:10
Joomla! RSForm Custom Validation check if giftcode exists and not used yet
<?php
defined('_JEXEC') or die('Restricted access');
require_once dirname(__FILE__) . '/validation.php';
class RSFormProCustomValidations extends RSFormProValidations
{
public static function giftcode($value, $extra = null, $data = null)
@hans2103
hans2103 / _font.scss
Created July 6, 2017 20:39
scss mixin font
@mixin font($size: $font-size, $weight: $normal, $line-height: $line-height, $family: $font-family) {
font: $weight #{$size}/#{$line-height} #{$family};
}
@hans2103
hans2103 / _bem-wrapper.scss
Created July 6, 2017 20:39
scss mixin bem wrapper
/// Block Element
/// @access public
/// @param {String} $element - Element's name
@mixin element($element) {
&__#{$element} {
@content;
}
}
/// Block Modifier
@hans2103
hans2103 / injecting-JavaScript-code.js
Last active June 29, 2017 07:02
Clear out selective Google Chrome History
# https://superuser.com/questions/480646/how-can-i-delete-all-web-history-that-matches-a-specific-query-in-google-chrome
# 1. Since Chrome history is queried inside a iFrame, we have to visit: chrome://history-frame/ (copy and paste URL)
# 2. perform search query
# 3. Open the Chrome console(F12 or CtrlShifti or ⌘⌥i) and execute:
var inputs = document.getElementsByTagName('input');
for (var i = 0; i < inputs.length; ++i) {
if (inputs[i].type == "checkbox"){
inputs[i].checked = true;
@hans2103
hans2103 / local.xml
Created January 30, 2017 11:13 — forked from Maksold/local.xml
Magento XML - local.xml boilerplate
<?xml version="1.0"?>
<layout>
<default>
<!--Root/Default Layouts-->
<reference name="root">
<!--Appending Block-->
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
</reference>
<!--CSS and JS Files-->