Skip to content

Instantly share code, notes, and snippets.

{
"meals":[
{
"id":103,
"created_at":"2013-10-08T22:49:07-06:00",
"description":"A half pound burger with bacon.",
"location":null,
"portion_consumed":4,
"time_occurred":"2013-10-08T22:49:07-06:00",
"premeal_hunger":4,
//
// RookGame.m
// Matchismo
//
// Created by Steve Liddle on 10/19/13.
// Copyright (c) 2013 Brigham Young University. All rights reserved.
//
#import "RookGame.h"
#import "RookCardDeck.h"
#import "RookCard.h"
//
// RookGameViewController.m
// Matchismo
//
// Created by Steve Liddle on 10/16/13.
// Copyright (c) 2013 Brigham Young University. All rights reserved.
//
#import "RookGameViewController.h"
#import "RookGame.h"
#import "RookCardCollectionViewCell.h"
@jpotts18
jpotts18 / fallbackSrc.js
Last active June 18, 2016 21:30
Angular Image Src fallback Directive
Directives.directive('fallbackSrc', function() {
return {
restrict: 'A',
link: function(scope, element, attrs){
if(_.isEmpty(attrs.ngSrc)){
element.attr('src', attrs.fallbackSrc);
}
element.bind('error', function(){
element.attr('src', attrs.fallbackSrc);
});
@jpotts18
jpotts18 / AddedToReportsActivity.java
Created November 12, 2013 03:48
AddedToReportsActivity.java
private void toggleAudio(final Report report) {
System.out.println("PLAY CLICKED...");
PlayAudio.play(report.audio_url, new AudioPlayerCallback() {
@Override
public void onCompleted() {
System.out.println("PLAY COMPLETED");
response_audio.setImageResource(R.drawable.response_audio);
}
SELECT
users.display_name,
users.paypal_username,
users.billing_name,
users.address1,
users.address2,
users.city,
users.state,
users.email,
users.phone,
package com.usdietitian.android.models;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* User: jpotts
* Date: 8/23/13
* Time: 3:17 PM
@jpotts18
jpotts18 / movie_clips.json
Created December 3, 2013 17:35
Rotten Tomatoes Movie Clip Resource
{
"clips": [{
"title": "Toy Story 3",
"duration": "149",
"thumbnail": "http://content.internetvideoarchive.com/content/photos/3465/14553712_.jpg",
"links": {
"alternate": "http://www.rottentomatoes.com/m/toy_story_3/trailers/11028566"
}
}, {
"title": "Toy Story 3: Meet Ken",
Gradle 'android-starter' project refresh failed:
Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'.
A problem occurred configuring project ':android'.
A problem occurred configuring project ':android'.
Could not resolve all dependencies for configuration ':android:_debugCompile'.
Could not find com.jakewharton.butterknife:butterknife:4.0.1.
Required by:
android-starter:android:unspecified
@jpotts18
jpotts18 / gist:9240598
Created February 26, 2014 22:58
Xamarin Dual build Jenkins Script
# Source Path Variables
source ~/.bash_profile
# uncomment to run this script in your local environment (outside of jenkins)
set -x
#WORKSPACE="/Users/parivedadeveloper/Projects/pariveda-finternship-2013"
# ANDROID
ANDROID_FOLDER="${WORKSPACE}/source/BBP.Droid"
ANDROID_CSPROJ="${ANDROID_FOLDER}/BBP.Droid.csproj"