Skip to content

Instantly share code, notes, and snippets.

(function(angular) {
'use strict';
angular.module('store', ['ngRoute'])
.controller('MainController', ['$scope','$route','$routeParams','$location', function($scope, $route, $routeParams, $location) {
$scope.$route = $route;
$scope.$location = $location;
$scope.$routeParams = $routeParams;
}])
<label ng-repeat="material in materials" class="materials col-lg-8 col-lg-offset-2 debug" style="border-right: 1px solid black;">
<div class="inner">
<input type="checkbox" ng-model="materials" ng-click="select(item)" checklist-model="choices.materials" checklist-value="material">
<i class="icon-{{material | lowercase}}" ng-class="{class: materials}"></i> {{material | capitalize}}
</div>
</label>
@steve228uk
steve228uk / organisations.swift
Last active November 21, 2016 10:36 — forked from crabcrabcam/organisations.swift
Organisation getter
extension GitKit {
public class func getMyOrganisations() -> Observable<[Organisation]> {
guard let organisationsURL = GitKit.currentUser.value?.organizationsUrl else { return Observable.just([]) }
return Alamofire.request(.GET, (organisationsURL))
.rx_responseJSON()
.map { response, json in
guard let array = json as? [[String:AnyObject]] else { return [] }