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 / 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 '' />
@jfrux
jfrux / boxen_output.txt
Created October 31, 2013 12:00
Boxen Console Output
mccme-rountrjf:boxen joshua$ git clone https://github.com/boxen/our-boxen.git repo
Cloning into 'repo'...
remote: Counting objects: 1520, done.
remote: Compressing objects: 100% (889/889), done.
remote: Total 1520 (delta 675), reused 1346 (delta 522)
Receiving objects: 100% (1520/1520), 47.97 MiB | 6.64 MiB/s, done.
Resolving deltas: 100% (675/675), done.
mccme-rountrjf:boxen joshua$ cd repo
mccme-rountrjf:repo joshua$ nano Puppetfile
mccme-rountrjf:repo joshua$ cd ../
@jfrux
jfrux / guide.sh
Last active January 3, 2016 03:19 — forked from teamon/guide.sh
For newer versions of Mac OS X
# Install pow
$ curl get.pow.cx | sh
# Install powder
$ gem install powder
# See Pow takes over port 80 in the firewall... even though nginx was using it...
$ sudo ipfw show
00100 0 0 fwd 127.0.0.1,20559 tcp from any to me dst-port 80 in <- THIS ONE!!!
65535 81005 28684067 allow ip from any to any
@jfrux
jfrux / gist:31689706eba8d0c15a1b
Last active April 30, 2017 21:38
Full Charter Cruise Ship Booking Plugin Requirements

###Full Charter Cruise Ship Booking Plugin

####Terminology Variable Product (parent) -> "Room Type" Product Variation (child) -> "Max Occupancy, location on ship, etc."

####Custom Price Fields on Variable Product General Tab 5 static price points (custom fields) assigned to parent variable product “Interior”, “Oceanview”, etc.

  • Single Per Guest Price: $999 (prices may vary depending on the room type, but always sold per guest)
  • Double Per Guest Price: $499