Skip to content

Instantly share code, notes, and snippets.

Chris Bushell cbushell

View GitHub Profile
@cbushell
cbushell / gist:909104
Created Apr 8, 2011
Trinidad, no web.xml present, default configuration
View gist:909104
cbushell [jruby-jruby-1.4.1@playup] [trinidad] [~/dev/playup/puge] $ jruby -S trinidad
Apr 8, 2011 10:52:36 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-3000"]
Apr 8, 2011 10:52:36 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Apr 8, 2011 10:52:36 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.11
Apr 8, 2011 10:52:36 AM org.apache.catalina.startup.ContextConfig webConfig
INFO: No global web.xml found
Apr 8, 2011 10:52:39 AM org.apache.catalina.startup.TaglibUriRule body
View Trinidad, apps default web.xml in config dir, default configuration
cbushell [jruby-jruby-1.4.1@playup] [trinidad] [~/dev/playup/puge] $ !jruby
jruby -S trinidad
Apr 8, 2011 10:23:58 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-3000"]
Apr 8, 2011 10:23:58 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Apr 8, 2011 10:23:58 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.11
Apr 8, 2011 10:23:59 AM org.apache.catalina.startup.ContextConfig webConfig
INFO: No global web.xml found
@cbushell
cbushell / gist:781681
Created Jan 16, 2011
Verifying constructor was called with Jasmine
View gist:781681
describe('iPhone', function() {
it('should construct an instance of iphone analytics', function() {
spyOn(window, 'iPhoneAnalytics');
analytics.install();
expect(window.iPhoneAnalytics).toHaveBeenCalled();
});
});
@cbushell
cbushell / gist:771566
Created Jan 9, 2011
Include Bluprint css with haml
View gist:771566
= stylesheet_link_tag 'blueprint-1.0/screen.css', :rel => 'stylesheet', :type => 'text/css', :media => 'screen, projection'
= stylesheet_link_tag 'blueprint-1.0/print.css', :rel => 'stylesheet', :type => 'text/css', :media => 'print'
<!--[if lt IE 8]>
= stylesheet_link_tag 'blueprint-1.0/ie.css', :rel => 'stylesheet', :type => 'text/css', :media => 'screen, projection'
<![endif]-->
View gist:719832
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 6,
interval: 6000,
width: 'auto',
height: 300,
theme: {
@cbushell
cbushell / gist:709744
Created Nov 22, 2010
Embedding Flot image
View gist:709744
<div id="all_builds" style="width: 800px; height: 600px; position: relative;"></div>
@cbushell
cbushell / gist:709705
Created Nov 22, 2010
Plotting build times with jQuery, Flot and DateJS
View gist:709705
$(document).ready(
function() {
var builds = [
{ url: "/build_results/start",
legend: "Start"
}
];
$.each(builds, function(build_index, build) {
$.get(build.url, function(data) {
You can’t perform that action at this time.