Skip to content

Instantly share code, notes, and snippets.

View linkmckinney's full-sized avatar

Link McKinney linkmckinney

View GitHub Profile
<cfoutput>
#generateSecretKey("BLOWFISH")#
</cfoutput>
/**
* @author Link.McKinney
*/
$(document).ready(function(){
//executes function after page loads in browser
startRefresh();
//creates timer, gets data from page and updates the #myupdate_div dic
function startRefresh() {
<!DOCTYPE html>
<html>
<head>
<title>Dynamic Page Reload</title>
<meta name="description" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<title>My Updated DOM</title>
<meta name="description" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
$(document).ready(function(){
$(".media-body").find("li:last").on("click", function(){
var price = $(this).closest(".media").data('price');
$(this).text(price);
});
});
<cfcomponent>
<cffunction name="processFizz" access="remote" returntype="String">
<cfargument name="input" type="numeric">
<cfset var local = structNew()/>
<cfset local.result = ''/>
<cfif arguments.input MOD 3 EQ 0 AND arguments.input MOD 5 EQ 0>
<cfset local.result = 'fizzbuzz'/>
@linkmckinney
linkmckinney / bitSearch.cfc
Created July 17, 2012 14:24
BitAnd exercise
<cfcomponent output="false">
<cffunction name="valueSearch" returntype="Any" access="remote">
<cfargument name="searchVar" type="numeric" required="true"/>
<cfset var local.msg = ''>
<cftry>