Skip to content

Instantly share code, notes, and snippets.

2014-05-20T19:37:08.853155+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=quiet-ravine-1936.herokuapp.com request_id=55c5fd63-f7a0-453b-9612-758410b2881b fwd="50.190.111.66" dyno= connect= service= status=503 bytes=
2014-05-20T19:37:08.950346+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=quiet-ravine-1936.herokuapp.com request_id=c34e4bc9-eae0-4a6a-aa2f-b5da4d3c5710 fwd="50.190.111.66" dyno= connect= service= status=503 bytes=
2014-05-20T19:37:09.510673+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=quiet-ravine-1936.herokuapp.com request_id=f4252cf5-19d4-44c9-be74-143648e39e6a fwd="50.190.111.66" dyno= connect= service= status=503 bytes=
2014-05-20T19:37:09.614885+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=quiet-ravine-1936.herokuapp.com request_id=0e8607f6-ab62-491e-a2c3-0f6c075bbb90 fwd="50.190.111.66" dyno= connect= service= status=503 bytes
require 'sinatra'
require 'sinatra/reloader' if development?
require 'erb'
get '/' do
line_num = 0
#@cake = []
cake = File.open("cake.list").readlines.each do |line|
#@cake.push("#{line_num +=1}. #{line}")
"#{line_num +=1}. #{line}"
@evansmith
evansmith / evansmith
Created July 16, 2012 14:07
ejb file
package com.washingtonpost.mentionmachine.processing.beans;
import javax.annotation.PostConstruct;
import javax.ejb.LocalBean;
import javax.ejb.Singleton;
import java.util.Calendar;
import java.util.HashMap;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.regex.*;
@evansmith
evansmith / gist:3014688
Created June 28, 2012 23:23
this is functions.php. it's only adding one field, but on test runs in the html it works. starts at *image meta boxes*
<?php
/**
* Twenty Eleven functions and definitions
*
* Sets up the theme and provides some helper functions. Some helper functions
* are used in the theme as custom template tags. Others are attached to action and
* filter hooks in WordPress to change core functionality.
*
* The first function, twentyeleven_setup(), sets up the theme by registering support
* for various features in WordPress, such as post thumbnails, navigation menus, and the like.
@evansmith
evansmith / gist:2973697
Created June 22, 2012 16:03
getting a syntax error with the second embedded array.
$new_meta_boxes =
array(
"image" => array(
"name" => "image",
"std" => "",
"title" => "Image",
"description" => "Using the \"<em>Add an Image </em>\" button, upload an image and paste the URL here.")
"caption" => array(
"name" => "caption",
"std" => "",