This file contains hidden or 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
// fire event when window is resized | |
$( window ).resize( function() { | |
$body = $( 'body' ); | |
$documentWidth = $( '#document-width' ); | |
if ($documentWidth.length===0){ | |
$documentWidth = $( '<p id="document-width" />' ); | |
$body.prepend( $documentWidth ); | |
} | |
$documentWidth.text( $body.width() ); |
This file contains hidden or 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
<!--- | |
LICENSE | |
Copyright 2007 Brian Kotek | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or 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
<cfset folder = expandpath("./")> | |
<cfset warn = []> | |
<cfset alert = []> | |
<cfdirectory action="list" directory="#folder#" filter="*.cfc" recurse="true" name="cfcs" type="file"> | |
<cfoutput> | |
<style> |
This file contains hidden or 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
<cfsetting enablecfoutputonly="true" requesttimeout="500"> | |
<!--- path to folder where your application is ---> | |
<cfset applicationroot = expandpath("../../../../../../")> | |
<!--- path to folder where your tests are ---> | |
<cfset testsfolder = expandpath("../../")> | |
<!--- folders to exclude ---> | |
<cfset exclude = "dev"> | |
<!--- let's search the application first to see what methods are being called ---> |
This file contains hidden or 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 branch --merged | grep -v '^* master$' | grep -v '^ master$' | xargs git branch -d |
This file contains hidden or 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
variables.CUT.$("sayHello").$callback(variables.testFunction); | |
assertEquals("Hola Luis", variables.CUT.sayHello("Luis")) | |
// the callback method | |
private function testFunction(name){ | |
return "Hola " & arguments.name; | |
} |
This file contains hidden or 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
<cfset URL.id = 123> | |
<cffunction name="testa"> | |
<cfargument name="id" type="numeric" required="no"> | |
<cfreturn isDefined("id")> | |
</cffunction> | |
<cffunction name="testb"> | |
<cfargument name="id" type="numeric" required="no"> |
This file contains hidden or 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
component extends="testbox.system.BaseSpec" { | |
function beforeTests(){ | |
cut = fooTest(); | |
} | |
function run( testResults, testBox ){ | |
describe("A spec", function() { | |
beforeEach(function(string currentSpec) { |
This file contains hidden or 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
<cfoutput> | |
#numberformat(4.50, "_.__")#<br> | |
#numberformat(4.50, "9.99")#<br> | |
#numberformat(4.50, "0.00")#<br> | |
#numberformat("4.50", "_.__")#<br> | |
#numberformat("4.50", "9.99")#<br> | |
#numberformat("4.50", "0.00")#<br> | |
#numberformat("4.5", "_.__")#<br> | |
#numberformat("4.5", "9.99")#<br> | |
#numberformat("4.5", "0.00")#<br> |
This file contains hidden or 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> | |
// create a dummy list.... | |
list = ""; | |
elements = 5000; | |
step = 5; | |
i = 0; | |
while (i<elements) { | |
list = listAppend(list, elements + i); |
OlderNewer