Skip to content

Instantly share code, notes, and snippets.

View jd-alexander's full-sized avatar
🏠
Working from home

Joel Dean jd-alexander

🏠
Working from home
View GitHub Profile
// Copyright 2009 Google Inc.
// Copyright 2011 NPR
//
// 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
"message": "An error has occurred.",
"exceptionMessage": "Object reference not set to an instance of an object.",
"exceptionType": "System.NullReferenceException",
"stackTrace": " at WakeSocial.Gateway.WebApi.Host.Controllers.NotificationsController.<>c.<Get>b__4_0(Notification notification)\r\n
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()\r\n at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()\r\n at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n at WakeSocial.Gateway.WebApi.Host.Controllers.NotificationsController.<Get>d__4.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task tas
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
apply plugin: 'com.getkeepsafe.dexcount'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.mentor"
* Authors: Joel Dean and Evon Franklin
* Date: 12/31/12
* Time: 8:30 PM
*/
$(document).ready(function(){
//Grabs url path
<div id="nav">
<ul>
<li class="current-menu-item"><a href="about_us.php">About Us</a></li>
<li><a href="work.php">Our Work</a></li>
<li><a href="contact.php">Contact Us</a></li>
</ul>
</div>
/*
Slightly modified by Joel Dean
Created by TheNally
Original post here : http://bit.ly/UI2uBC
*/
$(function(){
var url = window.location.pathname,
urlRegExp = new RegExp(url.replace(/\/$/,''));
$('#nav li a').each(function(){
@jd-alexander
jd-alexander / Parser.java
Created February 11, 2013 14:29
Parser.java written by Hesham Saeed
public interface Parser {
public Route parse();
}
@jd-alexander
jd-alexander / XMLParser.java
Created February 11, 2013 14:31
XMLParser.java written by Hesham Saeed
public class XMLParser {
// names of the XML tags
protected static final String MARKERS = "markers";
protected static final String MARKER = "marker";
protected URL feedUrl;
protected XMLParser(final String feedUrl) {
try {
this.feedUrl = new URL(feedUrl);
@jd-alexander
jd-alexander / Segment.java
Created February 11, 2013 14:32
Segment.java written by Hesham Saeed
public class Segment {
/** Points in this segment. **/
private GeoPoint start;
/** Turn instruction to reach next segment. **/
private String instruction;
/** Length of segment. **/
private int length;
/** Distance covered. **/
private double distance;
@jd-alexander
jd-alexander / Route.java
Created February 11, 2013 14:32
Route.java written by Hesham Saeed
public class Route {
private String name;
private final List<GeoPoint> points;
private List<Segment> segments;
private String copyright;
private String warning;
private String country;
private int length;
private String polyline;