Skip to content

Instantly share code, notes, and snippets.

View coreybutler's full-sized avatar
⏱️
Working on Author (Runtime, Journal)

Corey Butler coreybutler

⏱️
Working on Author (Runtime, Journal)
View GitHub Profile
@coreybutler
coreybutler / cfconnect.js
Created February 8, 2014 21:22
CFExtConnect: This library offers an alternative for connecting to a ColdFusion-based backend from Ext JS. This library was built for Ext JS 3.3, though it shoud still work with Ext 4. It is assumes index.cfm will be in a directory called `data` and demo.cfc will be in a directory called `com`.
//Custom object
Ext.namespace('cfc');
cfc = function(config) {
//If no configuration is defined, create an empty one.
var config = this;
var pass = false;
//Main Configuration
Ext.applyIf(this, {
@coreybutler
coreybutler / ibihp.css
Created July 2, 2011 14:01
Subtle Mod for IBIHP site.
body {
background-color: #bfbfbf;
}
body,td,th {
font-family: Helvetica, Georgia, Times New Roman, Times, serif;
color: #eeeeee;//Slightly off white. Pure white is #ffffff
}
hr {
@coreybutler
coreybutler / Build.xml
Created August 25, 2011 01:35
ANT Build Example
<?xml version="1.0" encoding="UTF-8"?>
<project name="My NodeJS Project" default="" basedir=".">
<description>NodeJS Automated Builds!</description>
<property environment="env" />
<!-- Basic Properties -->
<property name="common" value="C:/Eclipse Projects/COMMON/ANT"/>
<property name="isclean" value="false"/>
<property name="isdebug" value="false"/>
<property name="isamazon" value="false"/>
@coreybutler
coreybutler / computer.properties
Created August 25, 2011 01:37
Local computer properties
#########################################
# Computer #
#########################################
ant.extras.dir = C:/Program Files (x86)/Eclipse/COMMON/JAR/
ruby.root = C:/Ruby192
@coreybutler
coreybutler / project.properties
Created August 25, 2011 01:42
Project Proerties
#################################################################
# Location #
#################################################################
drive =C:/
root =Eclipse Projects/local
dir =MyProject
src =${drive}${root}/${dir}
bin =${src}/_RESOURCES/BIN/
#################################################################
@coreybutler
coreybutler / FutureJS_All_Questions.json
Created September 1, 2011 16:13
A map/reduce query used to return all CouchDB objects (questions) to the Ext JS proxy.
{
"_id": "_design/questions",
"language": "javascript",
"views": {
"all": {
"map": "function(doc) { emit(null, doc) }"
}
}
}
@coreybutler
coreybutler / index.cfm
Created October 11, 2011 18:52
index.cfm
<cfset x = "Hello World"/>
<cfoutput>#x#</cfoutput>
@coreybutler
coreybutler / Facebook.js
Created October 19, 2011 22:01
Facebook Module
var EventEmitter= require('events').EventEmitter,
auth = require('everyauth'),
FB = {};
module.exports = exports = Facebook;
//Primary Object
function Facebook( config ) {
@coreybutler
coreybutler / debug.cfm
Created November 9, 2011 21:48
Basic debugging approach.
<cfscript>
email = createObject('component','pp.factory');
</cfscript>
<cfdump var="#email#" label="Factory"/>
@coreybutler
coreybutler / sql_Server_wsdl.sql
Created November 12, 2011 23:35
An example for creating a web service endpoint via SQL Server
CREATE ENDPOINT echo_endpoint
STATE = STARTED
AS HTTP (
AUTHENTICATION = ( BASIC ),
PATH = '/echo' ,
PORTS = ( CLEAR )
)
FOR SOAP (
WEBMETHOD
'http://data.perkpals.com/'.'echo'