This file contains hidden or 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
## Simple Parser | |
## | |
## This parser implments an example of a parser similiar to Hoplon or Pollen | |
## in that it translates an s expression to html | |
## ie (h1 "The Great Gatsby") produces <h1>The Great Gatsby</h1> | |
# | |
# | |
# Input | |
# |
This file contains hidden or 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
require 'parse.rb' | |
require 'rspec' | |
describe 'Reads and ouputs text from a file' do | |
end |
This file contains hidden or 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
## Gemfile Mainly for Specs | |
gem 'rspec', github: 'rspec/rspec' | |
gem 'rspec-core', github: 'rspec/rspec-core' | |
gem 'rspec-mocks', github: 'rspec/rspec-mocks' | |
gem 'rspec-expectations', github: 'rspec/rspec-expectations' | |
gem 'rspec-support', github: 'rspec/rspec-support' |
This file contains hidden or 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
require 'clio_client' | |
require 'date' | |
def token_file; "ClioToken.txt"; end | |
saved_token = nil | |
client_id = "YOUR-APP-KEY-HERE" | |
client_secret = "YOUR-APP-SECRET-HERE" | |
client = ClioClient::Session.new({client_id: client_id, client_secret: client_secret}) |
This file contains hidden or 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
imm lein immutant run | |
Starting Immutant: /Users/tmb/.immutant/current/jboss/bin/standalone.sh | |
========================================================================= | |
JBoss Bootstrap Environment | |
JBOSS_HOME: /Users/tmb/.immutant/current/jboss | |
JAVA: /System/Library/Frameworks/JavaVM.framework/Home//bin/java |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<!-- saved from url=(0014)about:internet --> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>home.png</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<style type="text/css">td img {display: block;}</style> | |
<!--Fireworks CS6 Dreamweaver CS6 target. Created Tue Jan 15 14:48:24 GMT-0500 (Eastern Standard Time) 2013--> | |
<script language="JavaScript1.2" type="text/javascript"> |
This file contains hidden or 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
= raw @page.content_for(:intro) | |
= javascript_include_tag "google_map" | |
#map_canvas | |
= raw @page.content_for(:body) | |
= render :partial => "/refinery/content_page" |
This file contains hidden or 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
window.onload = loadMap; | |
function loadMap() { | |
var latLong = new google.maps.LatLng(35.557721,-80.594043); | |
var mapOptions = { | |
zoom: 15, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, | |
center: latLong | |
}; | |
var map = new google.maps.Map(document.getElementById("map_canvas"), | |
mapOptions); |
This file contains hidden or 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
<-- Use this to write an XML feed - this particular one was used to create a feed from a databsse that included locations in Latitude and Longitude and is read DIYMaps (http://www.backspace.com/mapapp/) to plot the sites on a map --> | |
<w:kb:item:each type="site" sort="name"> | |
<state id="point"> | |
<name><w:escape_html><w:city/></w:escape_html></name> | |
<loc><w:escape_html><w:latitude/>,<w:longitude/></w:escape_html></loc> | |
<url><w:path url="/Site_des" /></url> | |
<hover><w:escape_html><w:name/></w:escape_html></hover> | |
</state> |