Skip to content

Instantly share code, notes, and snippets.

@agopaul
agopaul / layer-cloner-clean.jsx
Created November 8, 2016 12:51
Layer cloner
#target indesign
#include "./../lib/underscore.js";
#include "./../lib/sprintf.js";
/*
* Layer cloner
* Redokun Srls 2016
*
* See: https://redokun.com/blog/indesign-copy-entire-layer-one-file-another
*
@agopaul
agopaul / UnicodeCharacterRanges.php
Created December 2, 2015 13:01
Unicode Character Ranges
<?php
$chars = array (
array (
"unicodeCodePointBegin" => "0020",
"utf8Begin" => "\x20",
"unicodeCodePointEnd" => "007F",
"utf8End" => "\x7f",
"name" => "Basic Latin",
),
@agopaul
agopaul / regexp
Last active August 29, 2015 14:23
Spam referral blacklist regexp(s) (GA filter rules)
.*((darodar|priceg|semalt|buttons\-for(\-your)?\-website|makemoneyonline|blackhatworth|hulfingtonpost|o\-o\-6\-o\-o|(social|simple\-share)\-buttons)\.com)|(econom\.co)|(ilovevitaly(\.co(m)?))|(ilovevitaly(\.ru))|(humanorightswatch(\.org)).*
.*((best(websitesawards|\-seo\-(solution|offer))|Get\-Free\-Traffic\-Now|googlsucks|theguardlan)\.com|(domination)\.ml|((rapidgator\-)?porn(hub\-forum)?)\.ga|(buy\-cheap\-online)\.info).*
((guardlink)|(floating-share-buttons)|([\w\d]+\.free-social-buttons)|(www\.event-tracking)|(howtostopreferralspam)|(sanjosestartups)|(erot))\.((org)|(com)|(eu)|(co))
@agopaul
agopaul / RequestIp.php
Created April 7, 2015 16:29
Request IP util class
<?php
namespace Utils;
/**
* Date: 04/04/2015
* @author Paolo Agostinetto <[email protected]>
*/
class RequestIp {
@agopaul
agopaul / generator.php
Last active August 29, 2015 14:14
CSS Dimension classes generator
<?php
/*
* CSS Dimension classes generator
*
* Generate a CSS file with utility classes:
*
* margin-top-1 { margin-top: 1px; }
* margin-top-2 { margin-top: 2px; }
* margin-top-3 { margin-top: 3px; }