Skip to content

Instantly share code, notes, and snippets.

View samelliott89's full-sized avatar

Sam Elliott samelliott89

  • Empower
  • San Francisco, Bay Area
View GitHub Profile
page('/', index)
page('/user/:user', show)
page('/user/:user/edit', edit)
page('/user/:user/album', album)
page('/user/:user/album/sort', sort)
page('*', notfound)
page()
index is a template i've got somewhere right? that i've *required* ?
// if there is a cache, fetch from it
if (CacheFactory.get('plansCache')) {
var plansCache = CacheFactory.get('plansCache');
vm.plans = plansCache.get("/plans");
console.log("fetching from cache");
console.log(vm.plans);
setupPlans(vm.plans);
};
{{ -- Start Unico Theme Settings -- }}
{{ HOMEPAGE INSTAGRAM SETTINGS }}
{{ Do you want to show the Instagram homepage block? }}
{% assign: show-instagram-homepage-block = 'Yes' %}
{{ Enter your Instagram User ID (more info: http://jelled.com/instagram/lookup-user-id#) }}
{% assign: instagram-homepage-user-id = '638527476' %}
{{ Enter your Instagram Access Token (more info: http://jelled.com/instagram/access-token) }}
//resrouce
require 'angular'
bs = window.angular.module 'backstage'
bs.factory 'Stories', [
'$resource', 'transform', ($resource, transform) ->
resource = $resource '/api/stories/suggestions',
get:
method: 'get'