Skip to content

Instantly share code, notes, and snippets.

View nimms's full-sized avatar

Nimai Etheridge nimms

  • Your Pants
  • Brisbane, Australia
View GitHub Profile
@nimms
nimms / templator.rb
Created October 27, 2010 04:57 — forked from evs/templator.rb
# Cleaning up and extending the Gemfile
remove_file 'Gemfile'
create_file 'Gemfile', <<-GEMFILE
source 'http://rubygems.org'
gem 'rails', '3.0.1'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'haml', '~> 3.0.12'
<evschoemaker> http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js
<evschoemaker> there's an ie9 version too
<evschoemaker> yeah we use filter() stuff too
<evschoemaker> oh gradients
<evschoemaker> cool
<evschoemaker> http://code.google.com/p/ie7-js/. [13:51]
<evschoemaker> http://code.google.com/p/ie7-js/
<evschoemaker> my app haml looks like:
<evschoemaker> /[if lt IE 9] [13:52]
<evschoemaker> = javascript_include_tag
@import compass/reset
@import compass/css3/gradient
=box-shadow
-moz-box-shadow: 3px 3px 3px #666
-webkit-box-shadow: 3px 3px 3px #666
box-shadow: 3px 3px 3px #666
=border-radius(!radius)
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
require 'rubygems'
require 'hpricot'
require 'fileutils'
class RendererController < ApplicationController
before_filter :login_required, :only => %w[render_page_as_html save_changes_to_site]
before_filter :load_paths, :only => %w[index load_page_from_disk save_changes_to_site]
layout "renderer"
package au.com.sdx.plan_processing.service.impl;
/**
* imports and logging statements elided
*/
@SuppressWarnings("restriction")
public class TiffProcessor implements IPlanImageService {
private static final int BLACK = 0;
private static final int WHITE = 1;
using System;
using DDSGpsNav.ServiceLayer.Invoker;
namespace DDSGpsNav.ServiceLayer.Invoker.MFData
{
/// <summary>
/// Class which gets the latest Truck Master file from the server
/// </summary>
public class MasterFileUpdateCommand : ICommand
{
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using DDSGpsNav.Classes;
using DDSGpsNav.DB;
namespace DDSGpsNav.DB
{
public class CoordinateDAO : DAO<Coordinate>, IMasterFileDAO