Skip to content

Instantly share code, notes, and snippets.

View edwardbeckett's full-sized avatar

Edward J Beckett edwardbeckett

View GitHub Profile
@edwardbeckett
edwardbeckett / StupidTracer.cfc
Created September 9, 2012 14:11
Stupid Tracer
<!---
User: Edward
Date: 9/7/12
Time: 3:01 PM
@TODO: Finish this silly example ...
--->
<cfcomponent output="false">
<cfscript>
@edwardbeckett
edwardbeckett / Debug.java
Created September 11, 2012 17:06
ColdFire Debugging with ColdSpring AOP
package example;
import com.sun.jersey.api.container.httpserver.HttpServerFactory;
import com.sun.net.httpserver.HttpServer;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import java.io.IOException;
// The Java class will be hosted at the URI path "/debug"
@edwardbeckett
edwardbeckett / call.js
Created September 26, 2012 22:14
Nested Ajax
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
$.ajax({
type:'GET',
@edwardbeckett
edwardbeckett / call.cfm
Created September 27, 2012 19:40
jQuery Dynamic Selects
<html>
<head>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
/*
* Load the form change handlers on doc ready ...
*
@edwardbeckett
edwardbeckett / wp-query-ref.php
Created October 10, 2012 04:06 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@edwardbeckett
edwardbeckett / BadHTML.html
Created November 8, 2012 17:53
Bad HTML?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Bad HTML</title>
</head>
<body>
<div>
<input type="text" />
</div>
</body>
@edwardbeckett
edwardbeckett / MarkDown
Last active March 18, 2019 20:36
Markdown Reference Guide
## Headers ##
(Hashes on right are optional)
# Header 1 #
## Header 2 ##
### Header 3 ###
#### Header 4 ####
##### Header 5 #####
@edwardbeckett
edwardbeckett / init.js
Created January 23, 2013 19:52
Encapsulated Angular Module
//Define a function scope, variables used inside it will NOT be globally visible.
(function () {
var
//the HTTP headers to be used by all requests
httpHeaders,
//the message to be shown to the user
message,
/*
* Copyright 2011 the original author or authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
@edwardbeckett
edwardbeckett / index.html
Last active December 14, 2015 06:39
FOUC KILLER
<!-- random ... -->
<div id="problem_div" class="nojs"> <!-- problem div ... -->