This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Instantiate the MuraProxy webservice ---> | |
<cfset muraProxy = createObject( "webservice", "http://localhost/muraFork/MuraProxy.cfc?wsdl" ) /> | |
<!--- Authenticate ---> | |
<cfset authToken = muraProxy.login( 'admin', 'admin', 'default' ) /> | |
<!--- Create our args struct and serialize it to place in the URL ---> | |
<cfset args = structNew() /> | |
<cfset args.siteID = 'default' /> | |
<cfset args = serializeJSON( args ) /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: | |
:: Directory structure based on the one listed at | |
:: http://www.coldmvc.com/guide/introduction/directory-structure | |
:: and some of my own observations on file content. | |
:: | |
@ECHO OFF | |
IF "%1" == "" GOTO NeedsArgument ELSE GOTO BuildFolderStructure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>SendGrid Demo</title> | |
</head> | |
<body> | |
<form action="process.cfm" method="POST"> | |
<div> | |
<label for="emails"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Plug in an existing datasource ---> | |
<cfquery name="qDatabases" datasource="YOUR_DSN_HERE"> | |
SHOW DATABASES; | |
</cfquery> | |
<!--- Log in to the CF admin with your password ---> | |
<cfset adminAPI = createObject( 'component', 'cfide.adminapi.administrator' ) /> | |
<cfset adminAPI.login( 'YOUR_PASSWORD_HERE' ) /> | |
<!--- Loop over our query and create datasources for each database in MySQL ---> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// Ignore cfscript tags, they're just for syntax highlighting. | |
component { | |
... | |
function onRequestStart() { | |
if( structKeyExists( url, 'ormDropCreate' ) ) { | |
dropTables(); | |
ormReload(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
string = "I'm a string!"; | |
numeric = 12345; | |
boolean = true; | |
chromelogger.log( string, numeric, boolean ); | |
</cfscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
function test() { | |
return "I break when serialized!"; | |
} | |
writeOutput( serializeJSON( test ) ); | |
</cfscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.JOptionPane | |
// for: http://www.raymondcamden.com/index.cfm/2014/2/21/Friday-Puzzler-Rolling-the-die | |
class DiceRoller { | |
static Random random = new Random() | |
static void main( String[] args ) { | |
String roller = JOptionPane.&showInputDialog "Enter your roll:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import geb.Browser | |
import geb.Page | |
import geb.Module | |
class NavigationLink extends Module { | |
def linkText | |
static content = { | |
link { $("a", text: linkText) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone [email protected]:username/username.github.com.git | |
$ cd username.github.com | |
$ git checkout source | |
$ mkdir _deploy | |
$ cd _deploy | |
$ git init | |
$ git remote add origin [email protected]:username/username.github.com.git | |
$ git pull origin master | |
$ cd .. |
OlderNewer