Skip to content

Instantly share code, notes, and snippets.

View citylims's full-sized avatar
🎯
Focusing

Austin Formica citylims

🎯
Focusing
View GitHub Profile
'use strict';
//auth routes with ui.router, and middleware auth headers for http client;
var app = angular
.module('clientApp', [
'ui.router',
'angular-storage',
]);
app.filter('selectedCategories', function(){
return function(items, cats){
if(!cats){
return items;
}
var choices = cats.reduce(function(p,cat){
if (cat.checked){
p.push(cat.catName);
}
var request = function(method, path, params, callback) {
params.client_id = sc.soundcloud.client_id;
params.oauth_token = sc.soundcloud.access_token;
$http({
method: method,
url: sc.soundcloud.api.host + path,
params: params
})
.success(callback);
div{
.box-shadow(inset 0 0 0 1px black) !important;
}
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \