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> | |
QueueName = "QTransactions"; | |
durable = true; | |
loadPaths = arrayNew(1); | |
loadPaths[1] = expandPath("lib/rabbitmq-java-client-bin-2.8.4/rabbitmq-client.jar"); | |
// load jars | |
javaLoader = createObject("component", "lib.javaloader.JavaLoader").init(loadPaths); |
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
public string function createRandomString() | |
{ | |
var rules = { minLength = 8, maxLength = 12 }; | |
var length = randRange(rules.minLength,rules.maxLength,'SHA1PRNG'); | |
var passwd = ['2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','J','K','M','N','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','j','k','m','n','p','q','r','s','t','u','v','w','x','y','z','##','@','$','&','*','+']; | |
createObject('java','java.util.Collections').shuffle(passwd); | |
return arrayToList(arraySlice(passwd,1,length),''); | |
} |
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
// Location to your properties file | |
var pFile = 'location_to_your_properties_file/filename.properties'; | |
// Init Props | |
var props = CreateObject("java","java.util.Properties").init(); | |
// Load the file into the props | |
props.load( CreateObject("java","java.io.FileInputStream").init(pFile) ); | |
// Assume properties file has the following value | |
// Property1=Foo | |
// Property2=Bar |
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 init - navigate to the appropriate directory and just type that. | |
git add . - adds everything in that path | |
git commit -m 'stuff' - Commits with the message 'stuff' | |
git branch - views branches | |
git checkout -b <new branch> - Creates & switches to new branch | |
git checkout <branch> - switches to branch | |
git merge <branch> - merges that branch to the existing branch that you're already in. | |
git branch -d <branch> - deletes branch | |
git push - This assumes you already have a remote setup (like github) |
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
<!----------------------------------------------------------------------------------- | |
@@Author: Matthew Bryant | |
@@Company: TORO Waste Equipment | |
@@license: The MIT License (http://opensource.org/licenses/MIT) | |
@@Version: 0.1 $ | |
@@Description: For use with Xero API (https://api.xero.com) | |
STEP 1. GENERATE SSL KEY | |
1.1. Download openSSL for windows: http://slproweb.com/products/Win32OpenSSL.html |
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
[ | |
{ | |
"name":"New South Wales", | |
"abbreviation":"NSW" | |
}, | |
{ | |
"name":"Victoria", | |
"abbreviation":"VIC" | |
}, | |
{ |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
function editDiagram(image) | |
{ | |
var initial = image.getAttribute('src'); | |
image.setAttribute('src', 'http://www.draw.io/images/ajax-loader.gif'); | |
var iframe = document.createElement('iframe'); | |
iframe.setAttribute('frameborder', '0'); | |
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
/* Google - Standard new analytics code. Replace the UA-XXXXXXXX-X and example.com. */ | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','http://www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-XXXXXXXX-X', 'example.com'); | |
ga('send', 'pageview'); | |
/* Catch any outbound links, register them with Google Analytics. | |
Outbound links will be displayed in your analytics account as 'out/[outbound url]'. |
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
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
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
/* | |
Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod | |
May contain errors where latitude and longitude are off. Use at own non-validated risk. | |
*/ | |
SET NAMES utf8; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
DROP TABLE IF EXISTS postcodes_geo; |
OlderNewer