Skip to content

Instantly share code, notes, and snippets.

View prdolmos's full-sized avatar

Pablo Delgadillo prdolmos

View GitHub Profile
@prdolmos
prdolmos / PantonePlusSolidCoated.js
Last active March 19, 2020 19:18
Pantone+ Solid Coated
var pantone_solid_coated = {
"Yellow C": { "hex": "#FEDD00", "rgb": "rgb(254,221,0)" },
"Yellow 012 C": { "hex": "#FFD700", "rgb": "rgb(255,215,0)" },
"Orange 021 C": { "hex": "#FE5000", "rgb": "rgb(254,80,0)" },
"Bright Red C": { "hex": "#F93822", "rgb": "rgb(249,56,34)" },
"Warm Red C": { "hex": "#F9423A", "rgb": "rgb(249,66,58)" },
"Red 032 C": { "hex": "#EF3340", "rgb": "rgb(239,51,64)" },
"Rubine Red C": { "hex": "#CE0058", "rgb": "rgb(206,0,88)" },
"Rhodamine Red C": { "hex": "#E10098", "rgb": "rgb(225,0,152)" },
"Pink C": { "hex": "#D62598", "rgb": "rgb(214,37,152)" },
@prdolmos
prdolmos / Prawn2ZundPDF.jsx
Created June 20, 2018 10:05
Add layers with cut paths to an open PrawnPDF file
#target Illustrator
// script.name = Prawn2ZundPDF.jsx;
// script.description = cleans and organizes single layer sticker PDFs for ZUND cut center;
// script.parent = Pablo D. Camaloon // 22/03/2017
// script.elegant = false?
/**
* Prerequisites:
* Single layer PDF with Register and Cut paths on a single layer.
* All elements are RGB. Register circles have path+fill; Cutlines only have stroke.

Keybase proof

I hereby claim:

  • I am prdolmos on github.
  • I am pablod (https://keybase.io/pablod) on keybase.
  • I have a public key ASA-B6a0htPcMM-6kFjan1Mg63LNR11gXWQzd-FY_pBAEAo

To claim this, I am signing this object:

@prdolmos
prdolmos / Prawn2ZundPDF-FOLDER.jsx
Last active June 20, 2018 10:04
Prepare PrawnPDF document for Zund CutCenter with layers
#target Illustrator
// script.name = Prawn2ZundPDF-FOLDER.jsx;
// script.description = cleans and organizes single layer sticker PDFs for ZUND cut center;
// script.parent = Pablo D. Camaloon // 22/03/2017
// script.elegant = false?
/**
* Prerequisites:
* Single layer PDF with Register and Cut paths on a single layer.
* All elements are RGB. Register circles have path+fill; Cutlines only have stroke.
@prdolmos
prdolmos / css-arrow-mixin.scss
Created May 3, 2016 13:23
css arrow mixin with direction, border, and different nesting
@mixin css-arrow($direction, $arrow-width, $arrow-height, $arrow-left-offset, $arrow-color, $arrow-border-color, $arrow-border-width, $arrow-type: container) {
@if not index(top bottom, $direction) {
@error "Direction must be either `top` or `bottom`.";
}
@if not index(container child, $arrow-type) {
@error "Type must be either `container` or `child`. ";
}
$base-element: '&:before';
@if $arrow-type == child { $base-element: '&' }
@prdolmos
prdolmos / base64.js
Created March 17, 2015 13:58
stringencoders - base64.js
/*
* Copyright (c) 2010 Nick Galbreath
* http://code.google.com/p/stringencoders/source/browse/#svn/trunk/javascript
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
@prdolmos
prdolmos / gist:cc5bcb67610acc04cdbd
Last active August 29, 2015 14:16
Email processing Gulp config
var gulp = require("gulp"),
slim = require("gulp-slim"),
concatCss = require('gulp-concat-css'),
uncss = require('gulp-uncss'),
stripCssComments = require('gulp-strip-css-comments'),
processhtml = require('gulp-processhtml'),
smoosher = require('gulp-smoosher'),
premailer = require('gulp-premailer'),
htmlmin = require('gulp-htmlmin'),
jpegoptim = require('imagemin-jpegoptim'),