Skip to content

Instantly share code, notes, and snippets.

<cfcomponent>
<cffunction name="getData" access="public" returntype="any" output="false">
<!--- Get the feed --->
<cfset var feed = application.feedManager.readByName("Programs", "DCTC") />
<!--- Set the feed to include enough records that it won't get cut off --->
<cfset feed.setNextN(100) />
<cfset feed.setMaxItems(100) />
<!--- Grab the query from the feed, I also could have done this with the iterator, but it is easier to look at the data this way --->
'use strict';
describe('Controller: TodoListController handles Todo Lists', function () {
// load the controller's module
beforeEach(module('todosApp'));
var todoListCtrl,
scope;
@twelverobots
twelverobots / FlashPointDamageCounter.js
Last active December 24, 2015 20:49
Flash Point: Fire Rescue Scripts for Roll20.net
var methods = methods || {};
methods.showExplosion = function () {
var exp = findObjs({name:"explosion"})[0];
toFront(exp);
exp.set("height", 720);
exp.set("width", 720);
exp.set("left", 800);
exp.set("top", 500);
sendChat("System", "The Building Collapsed");
<Engine name="Catalina" defaultHost="11robots.com" jvmRoute="cfusion">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Engine name="Catalina" defaultHost="11robots.com" jvmRoute="cfusion">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Engine name="Catalina" defaultHost="localhost" jvmRoute="cfusion">
<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->
<!-- Use the LockOutRealm to prevent attempts to guess user passwords
<cfcomponent>
<cfset this.name = "sessionCookies_test" >
<cfset this.sessionManagement=true>
<cfset this.setdomaincookies = true >
<cfset this.sessioncookie.httponly=true> <!--- if cookie to be httponly --->
<cfset this.sessioncookie.timeout = "10" > <!--- session cookie age --->
<cfset this.sessioncookie.secure = "true" > <!--- only https session cookie --->
<cfset this.sessioncookie.domain = ".shilpikhariwal.com" > <!--- domain for which session cookies are valid --->
<cfset this.authcookie.timeout = createTimeSpan(0, 0, 0, 20) > authentication cookie age --->
<cfset this.sessioncookie.disableupdate = true > <!--- if session cookie can be modified by coldfusion tags --->
Dinner Stuff
Ice Cream
Cheese
Soy Milk
Milk
Bread
Bagels
Fresh Fruit
Laundry Soap
Dingo Sticks
<cfcomponent>
<cffunction name="QueryToStruct" access="public" returntype="any" output="false"
hint="Converts an entire query or the given record to a struct. This might return a structure (single record) or an array of structures.">
<!--- Define arguments. --->
<cfargument name="Query" type="query" required="true" />
<cfargument name="Row" type="numeric" required="false" default="0" />
<cfscript>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Making Links</title>
<script>
window.onload = function() {
var links = [
{