Skip to content

Instantly share code, notes, and snippets.

View jfrux's full-sized avatar
👨‍💻
Full send daily.

jfrux jfrux

👨‍💻
Full send daily.
View GitHub Profile
@jfrux
jfrux / app.js
Created August 1, 2012 16:07
My Inject.js Implementation with Issues
Inject.setModuleRoot("/static/injectjs/");
Inject.addRule(/jquery/, {
path: "jquery.js",
pointcuts: {
after: function(module) {
module.setExports(jQuery.noConflict());
}
}
});
@jfrux
jfrux / template.html
Created August 17, 2012 18:34
WCCD Page Template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>West Chester Center for Dentistry - Dentists in West Chester, Ohio</title>
<meta name="keywords" content="dentists in ohio, 45069, west chester center for dentistry, dr christine mikhail, dental, smile makeovers" />
<meta name="description" content="We believe that an advantage of being a team of all female team is in the way we provide each and every patient with the very best dental care in the most supportive and nurturing manner possible. For starters, we believe that better communications and understanding leads to better results. Patient coordinators strive to assist our patient every step of the way during their dental treatment, from appointments, insurance bililng and clinical assistance. We want you to enjoy a happy, b
testing this out
Testing my code snippets out
@jfrux
jfrux / index.cfm
Created October 3, 2012 23:06
Railo Component THIS Scope Quirks
<cfscript>
work = new my_worker();
work.usesUtil();
</cfscript>
@jfrux
jfrux / execution_plan
Last active December 14, 2015 02:39
trying to improve this query... :-/
|--Compute Scalar(DEFINE:([Expr1015]=isnull(CASE WHEN [Expr1118]=N'M' THEN isnull([Expr1007],(0.000000000000000e+000)) ELSE CASE WHEN isnull([CCPD_PROD].[ceschema].[ce_Activity].[SessionType] as [A].[SessionType],N'S')=N'S' THEN isnull([Expr1013],(0.000000000000000e+000)) ELSE NULL END END,(0.000000000000000e+000)), [Expr1034]=isnull(CASE WHEN [Expr1118]=N'M' THEN CASE WHEN isnull([CCPD_PROD].[ceschema].[ce_Activity].[ParentActivityID] as [A].[ParentActivityID],(0))=(0) THEN [Expr1020] ELSE [Expr1026] END ELSE CASE WHEN isnull([CCPD_PROD].[ceschema].[ce_Activity].[SessionType] as [A].[SessionType],N'S')=N'S' THEN [Expr1032] ELSE NULL END END,(0)), [Expr1053]=isnull(CASE WHEN [Expr1118]=N'M' THEN CASE WHEN isnull([CCPD_PROD].[ceschema].[ce_Activity].[ParentActivityID] as [A].[ParentActivityID],(0))=(0) THEN [Expr1039] ELSE [Expr1045] END ELSE CASE WHEN isnull([CCPD_PROD].[ceschema].[ce_Activity].[SessionType] as [A].[SessionType],N'S')=N'S' THEN [Expr1051] ELSE NULL END END,(0)), [Expr1079]=CONVERT_IMPLICIT(fl
TodoMVC.module 'TodoApp', (App, TodoMVC, Backbone, Marionette, $, _) ->
log arguments
class App.TodoForm extends Marionette.ItemView
events:
'keypress #new-todo' : 'createOnEnter'
'click .mark-all-done' : 'toggleAllClicked'
triggers:
'click .todo-clear a' : 'clear:completed'
@jfrux
jfrux / .gitignore
Created June 25, 2013 12:45 — forked from redoPop/.gitignore
Altered this a bit for my needs...
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@jfrux
jfrux / cfquery_result_example.cfm
Last active December 19, 2015 02:59
This is definitely errored and purely PSUEDO-CODE... not sure what the intent was but here is what you need to do what you're saying Aaron.
<cfset AcceptBillMethods = "1,2" />
<cfif listFind(AcceptBillMethods,form.BillMethod)>
<cfset BillingTypeID = form.BillMethod />
<cfelse>
<cfthrow "ERROR! INVALID BILLING TYPE ENTERED!" />
</cfif>
<cfquery name="InsertMemberInfo" datasource="#Application.Settings.DSN#" result="newMember">
INSERT INTO
@jfrux
jfrux / ab1.cfm
Last active December 19, 2015 03:08 — forked from abirnbaum/ab1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<CFOUTPUT>
<!--- Check to see if Phone 2 even exists --->
<cfif #Form.Phone2# NEQ '' />