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
$('input:not(:disabled)'); |
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 upload(){ | |
destinationBucket = "s3://my-bucket/my-destination-folder"; | |
extractToS3(form.fileData,destinationBucket); | |
} | |
function extractToS3(zipFile,s3destination){ | |
/* init our utils cfc */ | |
var utils = new utils(); | |
var from = ""; | |
var to = ""; |
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
.custom-tweet-button a { | |
display: block; | |
padding: 2px 5px 2px 60px; | |
color:#2A7090; | |
background: url("http://platform0.twitter.com/widgets/images/tweet.png") no-repeat scroll 0 0 transparent; | |
} | |
.twitterDiv { | |
float:left; | |
border:none; | |
font-weight:bold; |
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
$('#createForm').bind("submit",function(e){ | |
//stop default form submission | |
e.preventDefault(); | |
//check the persons address, make sure it exists in google maps | |
findLocation(); | |
//hook to listings form jquery object | |
$self = $(this); | |
//we need about a second or 2 to wait on the response from google maps to get the | |
//driving distance and driving time estimates before submitting on a success | |
window.setTimeout(function(){ |
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
<cfset awsKey = "[YOUR AWS KEY]"> | |
<cfset awsSecret = "[YOUR AWS SECRET]"> | |
<cfset bucket = "[YOUR BUCKET]"> | |
<cfset objectKey = url.file> | |
<cfset s3 = createObject('amazonS3').init(awsKey,awsSecret)> | |
<cfset myURL = s3.s3Url(bucket,objectKey,"regular",2)> | |
<cfoutput>#myURL#</cfoutput> |
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
INSERT INTO | |
Tickets( | |
StartedBy, | |
TicketText | |
) | |
SELECT TOP 1000 | |
(SELECT TOP 1 id FROM Users WHERE 0.01 >= CAST(CHECKSUM(NEWID(), id) & 0x7fffffff AS float)/CAST (0x7fffffff AS int)) AS StartedBy, | |
Comments AS TicketText | |
FROM olddbserver.oldDB.dbo.Tickets |
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> | |
<body> | |
<div id="main"> | |
<a id="showlink" href="?">Pop the hidden stuff</a> | |
</div> | |
<div id="hiding" style="display:none;"> | |
<h2>You can't see us...unless you pop us up!</h2> | |
<p>This is a bunch of hidden stuff. <a href="?" id="closelink">Close it!</a></p> | |
</div> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> |
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
//Pop a hidden div | |
$('#myDiv').popup(); | |
//close a popped div | |
$('#myDiv').popup('close'); |
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
<cfdump var="#test#"> |
NewerOlder