This file contains 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
{"meta":{"code":200,"response_time":{"time":1.15,"measure":"seconds"}},"notifications":{"type":"notifications","unread_count":{"comments":0,"toasts":0,"friends":0,"messages":0,"news":0}},"response":{"mg":true,"checkins":{"count":25,"items":[{"checkin_id":43080032,"created_at":"Wed, 28 Aug 2013 07:13:17 +0000","checkin_comment":"Free after work beer.","rating_score":2,"user":{"uid":362611,"user_name":"Abalster9","first_name":"Alan","last_name":"Balster","location":"Kansas City","url":"","is_supporter":0,"relationship":"friends","bio":"","user_avatar":"https:\/\/untappd.s3.amazonaws.com\/profile\/111c5e9fdb9e014ad4c12740f93c0fd5_thumb.jpg"},"beer":{"bid":3834,"beer_name":"Coors Light","beer_label":"https:\/\/untappd.s3.amazonaws.com\/site\/beer_logos\/beer-coorsLight.jpg","beer_style":"American Light Lager","beer_abv":4.2,"auth_rating":0,"wish_list":false,"beer_active":1},"brewery":{"brewery_id":399,"brewery_name":"Coors Brewing Company","brewery_label":"https:\/\/untappd.s3.amazonaws.com\/site\/brewery_logos\/ |
This file contains 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
public abstract class ViewModel : INotifyPropertyChanged { | |
public event PropertyChangedEventHandler PropertyChanged; | |
protected void OnPropertyChanged(string name) { | |
if (PropertyChanged != null) | |
PropertyChanged(this, new PropertyChangedEventArgs(name)); | |
} | |
} |
This file contains 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
function slideshow_hero($postid) { | |
$thumb_ID = get_post_thumbnail_id($postid); | |
$args = array( | |
'post_type' => 'attachment', | |
'numberposts' => -1, | |
'post_mime_type' => 'image', | |
'post_status' => null, | |
'exclude' => $thumb_ID, | |
'post_parent' => $postid); | |
This file contains 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
// POST Working in RestSharp | |
var client = new RestClient(url); | |
var request = new RestRequest("/oauth/access_token?client_id=" + clientid + "&client_secret=" + clientsecret, Method.POST); | |
request.AddParameter("grant_type", "password"); | |
request.AddParameter("username", username); | |
request.AddParameter("password", password); | |
client.ExecuteAsync(request, response => | |
{ | |
// Do stuff with the response | |
}); |
This file contains 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
public class SampleDataItem | |
{ | |
public SampleDataItem(String uniqueId, String title, String subtitle, String imagePath, String description, String content) | |
{ | |
this.UniqueId = uniqueId; | |
this.Title = title; | |
this.Subtitle = subtitle; | |
this.Description = description; | |
this.ImagePath = imagePath; | |
this.Content = content; |
This file contains 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
foreach ($podcasts as $podcast) { | |
$ourPodcast = Podcast::where('itunes_id', '=', $podcast->trackId)->first(); | |
// If we don't have a record of the podcast, go ahead and create it. | |
if (is_null($ourPodcast)) | |
{ | |
$return[] = App::make('PodcastsController')->createFromItunes($podcast); | |
} else { | |
$return[] = $ourPodcast; | |
} | |
} |
This file contains 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
public function getRecentEpisodes() | |
{ | |
$podcastid = Input::get('podcast_id'); | |
$podcast = Podcast::find($podcastid); | |
$episode = Podcast::find($podcastid)->episodes()->first(); | |
if(!$episode) | |
{ | |
This file contains 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
if(App.EpisodeViewModel.IsOpen && App.EpisodeViewModel.IsPlaying) | |
{ | |
// Pause | |
Debug.WriteLine("Pause"); | |
App.EpisodeViewModel.Pause(); | |
} | |
else if (App.EpisodeViewModel.IsOpen) | |
{ | |
// Play current | |
Debug.WriteLine("Play Current"); |
This file contains 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
public function getHash($hash) | |
{ | |
$binary = $this->base64url_decode($hash); | |
$values = unpack("LS", $binary); | |
var_dump(bin2hex($binary)); | |
var_dump($values); | |
$episodeId = $values['S']; |
This file contains 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
<?php namespace App\Services; | |
use Config, File, Log; | |
class Image { | |
/** | |
* Instance of the Imagine package | |
* @var Imagine\Gd\Imagine | |
*/ |
OlderNewer