Skip to content

Instantly share code, notes, and snippets.

@libbymo
libbymo / Move it, baby!
Created May 5, 2013 22:27
A rude introduction to trying to animate a one page app in Angular. Some gotchas.
Animations
==========
Wow, so this was the first time trying to add them. I can see it's a game of nuance. Animations on the view, is probably not the best. If I have time I'll try to do something on the ngRepeat.
I opted for making animations a focus prior to consolidating my $http calls, as I'd like to get a semi-prototype and make it look like it's actually a one page app. But wonder if I should have done more with ngHide, ngShow. But no time! So trying to do the best. What I think is awful - the disappearing content when switching views. So trying to obscure that as much as possible with the transition. To no avail. Like lipstick on a pig. But I'm hoping if I make the pig disappear fast enough, you won't have time to wretch into your wastebasket.
@libbymo
libbymo / Make it editable
Created May 5, 2013 22:24
Navigating to Github to allow the user to edit the post.
Edit Button
===========
Wasted some time trying to figure out how to directly link to the edit view of the page. But given Github redirects/adds current users name when navigating to the gist, it became futile. I find it annoying that when you click edit, you can't actually edit. But I guess that's for another day, and would ideally be done via the API as well.
@libbymo
libbymo / Use Github API
Created May 5, 2013 22:19
One of the requirements is real data. I'm not sure if that means quality content over lorem, or hooking into an API, so we'll try for both.
Use Real Data
=============
So currently I have two $http calls, and I'm thinking I should consolidate that into a Resource, and perhaps a factory? That uses JSONP, and then I can just root around in my object to provide both the list as well as the content for the post detail.
But the first step was to get the calls figured out, and get the items I needed.
@libbymo
libbymo / What the hell are you trying to do?
Last active December 17, 2015 00:10
Tech exercise using gists as blog posts. Post #1.
Blog Task Introduction
======================
Create a blog using Github gists. Presenting
a list of all articles, which, on click will display the main
article content. Preferably no separate page, but rather on the
same page.
In this attempt I'm hoping to: