Skip to content

Instantly share code, notes, and snippets.

@kartogram
kartogram / plugin.js
Created February 28, 2021 00:48
ColdFusion File Manager for TinyMCE 5
/**
* ColdFusion File Manager Plugin for TinyMCE 4
* updated to support TinyMCE 5 by kartogram
*
* Saman W Jayasekara sam@cflove.org
* Twitter : cfloveorg
*
*/
(function () {
var filemanager = (function () {
<cfthread
name="#rereplace('thrd#createUUID()#','[-_\.]','','all')#"
action="run"
thisVariable1="1"
thisVariable2="#myVar2#">
<cfset publish_notification(thisType=attributes.thisVariable1,thisObject=attributes.thisVariable2)>
</cfthread>
@kartogram
kartogram / sample-1
Created May 11, 2017 23:47
Animate div with max-height using CSS and jQuery
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script  
src="https://code.jquery.com/jquery-3.2.1.min.js"  
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="  
crossorigin="anonymous"></script>
<style>
<cfinvoke
component="PATH-TO-THE_LINKEDIN-COMPONENT/LinkedIn"
method="postStatusUpdate"
authToken="#session.linkedin_accessToken#"
authTokenSecret="#session.linkedin_accessSecret#"
postComment="hello world"
postTitle="kartogram ColdFusion LinkedIn API"
postDescription="Full ColdFusion LinkedIn API allowing you to get profile information, get network updates, get connections and post status update"
postURL="http://www.blog.kartogram.co.uk/post.cfm/coldfusion-linkedin-api"
postImageURL="http://www.blog.kartogram.co.uk/assets/content/linkedin-banner-square.jpg"
<cfinvoke
component="PATH-TO-THE_LINKEDIN-COMPONENT/LinkedIn"
method="getProfiles"
authToken="#session.linkedin_accessToken#"
authTokenSecret="#session.linkedin_accessSecret#"
returnvariable="result"
/>
<cfinvoke
component="PATH-TO-THE_LINKEDIN-COMPONENT/LinkedIn"
method="getNetworkUpdates"
authToken="#session.linkedin_accessToken#"
authTokenSecret="#session.linkedin_accessSecret#"
type="CONN,JOBS"
returnvariable="result"
/>
<cfinvoke
component="PATH-TO-THE_LINKEDIN-COMPONENT/LinkedIn"
method="getConnections"
authToken="#session.linkedin_accessToken#"
authTokenSecret="#session.linkedin_accessSecret#"
start="1"
count="10"
returnvariable="apires"
/>
<cfinvoke
component="PATH-TO-THE_LINKEDIN-COMPONENT/LinkedIn"
method="getConnections"
authToken="#session.linkedin_accessToken#"
authTokenSecret="#session.linkedin_accessSecret#"
returnvariable="result"
/>
<a id="linkedin_signin" href="path-to-the-linked-in-api-location/index.cfm">connect</a>
$(".alert_remove").bind("click",function(event){
event.stopPropagation();
$(this).parent().remove();
});