Skip to content

Instantly share code, notes, and snippets.

var service = angular.module('statusboard.services', ['ngResource']);
service.factory('StatusboardService', ['$rootScope', '$resource', '$http',
function($rootScope, $resource, $http) {
// $resource endpoints
...
// application logic
(function refreshStatus() {
statusSvc.latest(function(response) {
@jrowny
jrowny / README.md
Last active December 17, 2015 01:39 — forked from jasonsanjose/README.md

Choose a directory to download both brackets-shell and brackets git respositories. The following script will setup the repositories and download required dependencies.

wget -O - https://gist.github.com/jasonsanjose/5514813/raw/ff2c9f443e7c5a283df1b0a1f6bafd6f09f47e06/setup.sh | bash
@jrowny
jrowny / popoup.js
Last active December 10, 2015 14:18 — forked from augustl/popoup.js
$scope.addTab = function () {
var popupTemplateUrl = "/angular/templates/new-tab.html";
var popupTemplate = angular.element('<div ng-include="\'' + popupTemplateUrl + '\'></div>');
var popupElement = $compile(popupTemplate)($scope);
console.log(popupElement.get(0));
};