Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="mon, 01 jan 2010 00:00:01 gmt">
<meta http-equiv="cache-control" content="no-cache">
</head>
<body>
<!-- stuff here -->
</body>
</html>
@andyj
andyj / soundings_uuid_2_int.cfm
Created May 24, 2011 22:45
Update Soundings UUID values to INT
<cfsetting showdebugoutput="false" requesttimeout="10000" />
<h1>Update Soundings UUID values to INT</h1>
<cfset dsn = "YOUR_DSN_HERE" />
<cfquery datasource="#dsn#">DROP TABLE IF EXISTS `uuids`</cfquery>
<!--- Create the UUID table --->
<cfquery datasource="#dsn#">
@andyj
andyj / excel2html
Created September 16, 2011 04:13
Paste Excel in to HTML to create at <table>
<html>
<head>
<style>
*{
font-family: arial;
font-size: 11px;
}
table{
border-collapse: collapse;
border: 1px solid silver;
@andyj
andyj / excel2html.htm
Created September 16, 2011 04:13
Paste Excel in to HTML to create at <table>
<html>
<head>
<style>
*{
font-family: arial;
font-size: 11px;
}
table{
border-collapse: collapse;
border: 1px solid silver;
@andyj
andyj / orm_2_ids
Created November 22, 2011 22:59
Trying to create a model with 2 fields as a primary key
component persistent="true" table="tableWithTwoIds" alias="tableWithTwoIds"
{
property name="id" ormtype="int" generated="never" fieldtype="id" index="true";
property name="typeofaddress" ormtype="int" fieldtype="id" index="true" ;
}
@andyj
andyj / webssql.htm
Created January 12, 2012 09:23
Look at the basics of WebSQL
<html>
<head>
<title>Look at WebSQL</title>
<script>
// Through the code below remember essentialy there are just 3 core methods we tend to use
// openDatabase
// transaction
// executeSql
// Opening a connection
@andyj
andyj / o2checker.cfm
Created January 25, 2012 13:21
o2 Mobile number checker
<cfset o2 = GetHttpRequestData() >
<table>
<cfloop collection="#o2.headers#" item="key" >
<tr>
<cfoutput>
<th>#key#</th>
<td>
<cfif trim( key ) EQ "x-up-calling-line-id" >
<span class="label important" >#o2.headers[key]#</span>
<cfelse>
@andyj
andyj / gist:2355649
Created April 10, 2012 23:37
Express, Less and less-middleware
$ mkdir expressWithLess && cd expressWithLess
$ express --css less-middleware && npm install
$ mv public/stylesheets/ public/styles
$ nano public/styles/style.less
@color: #00B7FF;
body { padding: 200px; font: 18px "Lucida Grande", Helvetica, Arial, sans-serif; }
@andyj
andyj / disableForm.js
Created July 11, 2012 16:04
Disabling a whole form
// add the class "disabled" to the form
$("form.disabled").find("input:not(:disabled), select:not(:disabled), textarea:not(:disabled)").prop("disabled",true);
@andyj
andyj / readme.md
Created October 15, 2012 23:07
blogcfc2html readme.md

To install

$ git clone https://github.com/andyj/blogcfc2html.git
$ cd blogcfc2html
$ npm install

Once set up you need to edit the MySQL and outPath settings in the config.js file