Skip to content

Instantly share code, notes, and snippets.

View jacobmllr95's full-sized avatar

Jacob Müller jacobmllr95

View GitHub Profile
@jacobmllr95
jacobmllr95 / index.php
Last active October 14, 2016 07:10
Secure Email Adresses
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Secure Email Adresses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<a id="<?= uniqid('email') ?>" href="mailto:<?= bin2hex('[email protected]') ?>"></a>
@jacobmllr95
jacobmllr95 / quill.min.js
Last active July 19, 2017 15:19
Quill with `imageHandler` option
/*!
* Quill Editor v1.3.0
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=66)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24),o=n(25),i=n(26),l=n(106),a=n(105),s=n(103),u=n(104),c=n(107),f=n(13),h=n(41),p=n(43),d=n(42),y=n(1)
@jacobmllr95
jacobmllr95 / jquery.taphold.js
Last active December 22, 2016 15:18
jQuery Taphold Event
(function($) {
$.event.special.taphold = {
tapholdThreshold: 750,
setup: function(data) {
var $this = $(this);
var tapholdThreshold = !isNaN(parseFloat(data)) ?
data : $.event.special.taphold.tapholdThreshold;
var timeout;
var isDefaultPrevented = false;
@jacobmllr95
jacobmllr95 / imagick3.4.3-PHP7.1-forge.sh
Last active November 28, 2019 01:43 — forked from pascalbaljet/imagick-3.4.0-PHP7-forge.sh
Install Imagick 3.4.3 on PHP 7.1 server (Laravel Forge)
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.3.tgz
tar xvzf imagick-3.4.3.tgz
@jacobmllr95
jacobmllr95 / test.js
Last active March 19, 2020 18:40 — forked from emmabostian/test.js
const fearNotLetter = (str) => {
const letters = str.split('');
const charCodes = letters.map((letter) => letter.charCodeAt(0)).sort((a, b) => a - b);
for (let i = 0; i < charCodes.length; i++) {
if ((charCodes[i + 1] - charCodes[i]) > 1) {
return String.fromCharCode(charCodes[i] + 1);
}
}