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
module.exports = function( grunt ) | |
{ | |
grunt.initConfig({ | |
//Create jsResources and cssResources configuration properties | |
jsResources: [], | |
cssResources: [], | |
clean: { | |
build: { | |
dot: true, |
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
module.exports = function( grunt ) | |
{ | |
grunt.initConfig({ | |
open: { | |
joyoftech: { | |
path: 'http://www.geekculture.com/joyoftech/', | |
app: 'Chrome' | |
}, | |
dilbert: { | |
path: 'http://www.dilbert.com/', |
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 convertPhoneLetters(required string oldNumber) { | |
var newNumber= arguments.oldNumber; | |
var regArray= [ | |
"[A-Ca-c]", | |
"[D-Fd-f]", | |
"[G-Ig-i]", | |
"[J-Lj-l]", | |
"[M-Om-o]", | |
"[P-Sp-s]", | |
"[T-Vt-v]", |
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
<cfif StructKeyExists(session,"userId") EQ false> | |
<cfif StructKeyExists(session,"NetId")> | |
<!---Look for a user account with the user identifier returned by CAS---> | |
<cfquery name="qry" datasource="{My Mura Datasource}"> | |
select userId, type | |
from tUsers | |
where username= <cfqueryparam value="#session.NetId#" cfsqltype="cf_sql_varchar" /> | |
</cfquery> | |
<cfif qry.recordcount EQ 1> |
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
<cfif cgi.script_name EQ "/admin/index.cfm" and cgi.query_string EQ ""> | |
<cfif IsDefined('session.mura') and session.mura.userId EQ ""> | |
<cfif StructKeyExists(session,"NetId")> | |
<!---Look for an admin (type 2) account with the user identifier returned by CAS---> | |
<cfquery name="qry" datasource="{My Mura Datasource}"> | |
select userId | |
from tUsers | |
where username= <cfqueryparam value="#session.NetId#" cfsqltype="cf_sql_varchar" /> | |
and type= <cfqueryparam value="2" cfsqltype="cf_sql_numeric" /> | |
</cfquery> |
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
<cffunction name="collectFormDataAndTrim" access="public" returntype="void" output="false" hint="I collect the form values"> | |
<cfargument name="event" type="any"> | |
<cfset var loc= StructNew()> | |
<cfset loc.propertyList= arguments.event.getArgument("propertyList","")> | |
<cfif loc.propertyList EQ ""> | |
<cfset loc.propertyList= arguments.event.getValue("fieldnames")> | |
</cfif> | |
<cfset loc.form= StructNew()> |
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
jQuery.validator.addMethod("dateComparison",function(value,element) { | |
var result= true; | |
if($("#startDateOptionLater:checked").length== 1) | |
{ | |
var dateArray= $("#startDate").val().split("/"); | |
var startDateObj= new Date(dateArray[2],(dateArray[0]-1),dateArray[1],0,0,0,0); | |
} | |
else | |
{ | |
var exactDate= new Date(); |
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
<event-types> | |
<event-type name="permitted"> | |
<before> | |
<broadcasts> | |
<message name="checkAuthorization" /> | |
<message name="secureTransmissionURL" /> | |
</broadcasts> | |
<results> | |
...<!--Whatever you do if user is not authenticated yet--> |
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
<cffunction name="secureTransmissionURL" access="public" returntype="void" output="false"> | |
<cfargument name="event" type="any"> | |
<cfif arguments.event.valueExists("token") EQ false> | |
<cfset session.token= CreateUUID()> | |
</cfif> | |
<cfset arguments.event.setValue("secureMyself","index.cfm?token=" & Hash(session.token,"SHA-256") & "&" & arguments.event.getValue("eventValue") & "=")> | |
</cffunction> | |
<cffunction name="validateTransmissionURL" access="public" returntype="void" output="false"> | |
<cfargument name="event" type="any"> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:background="@color/pageColor"> | |
<include android:id="@+id/header" layout="@layout/main_header" /> | |
<ListView android:id="@+id/android:list" |
NewerOlder