Skip to content

Instantly share code, notes, and snippets.

@efc
efc / AutoEmbed.rb
Created Mar 7, 2019
AutoEmbed.rb is a plugin for Jekyll that automatically finds and renders embeds for any "naked URL" on the site.
View AutoEmbed.rb
# AutoEmbed plugin for Jekyll
#
# Created by Eric Celeste for Tenseg LLC
# March 2019
#
# License: MIT
#
# This plugin uses the ruby-oembed library to look up an oembed for
# any "naked URL" (a URL in a paragraph by itself). If the oembed
# is found, then the HTML for the oembed is presented. If there is
@efc
efc / class-submittestaddon.php
Last active Jun 16, 2016
Submit Test Add-On for Gravity Forms
View class-submittestaddon.php
<?php
GFForms::include_addon_framework();
class SubmitTestAddOn extends GFAddOn {
protected $_version = "1.0";
protected $_min_gravityforms_version = '1.9';
protected $_slug = 'submittestaddon';
protected $_path = 'submittestaddon/submittestaddon.php';
@efc
efc / cmyk2rgb.applescript
Last active Dec 14, 2015
An AppleScript to convert a CMYK file to RGB using the ColorSync Utility. For some reason this works while sips --matchToWithIntent leaves the file all washed out and CMYKish. This script assumes a CMYK image is already open and the top window in ColorSync. I use it in combination with Automator.
View cmyk2rgb.applescript
tell application "System Events"
tell process "ColorSync Utility"
set visible to true
tell pop up button 1 of group 1 of front window
click
tell menu 1
click menu item "Match to Profile"
end tell
end tell
tell menu button 1 of group 1 of front window
You can’t perform that action at this time.