This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "waypoints-elements-different-heights", | |
"version": "0.1.0", | |
"description": "Simple demonstration of using Waypoints to adjust to sticky elements with different heights", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": { | |
"type": "git", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "gulp-watch-test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Waypoints Elements Different Heights</title> | |
<style> | |
html, body { | |
height: 100%; | |
margin: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by jhines on 7/24/2015. | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
html2js: { | |
options: { | |
base: '', | |
module: 'sandbox.templates', | |
singleModule: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "angular-directive-test-sandbox", | |
"version": "0.1.0", | |
"description": "Simple application to experiment with unit testing directives in angularjs", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('SimpleService', function(){ | |
var mockWindow, mockModalSvc, sampleSvcObj; | |
beforeEach(function(){ | |
module(function($provide){ | |
$provide.service('$window', function(){ | |
this.alert= jasmine.createSpy('alert'); | |
}); | |
$provide.service('modalSvc', function(){ | |
this.showModalDialog = jasmine.createSpy('showModalDialog'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by https://www.gitignore.io | |
### Intellij ### | |
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm | |
*.iml | |
## Directory-based project format: | |
.idea/ | |
# if you remove the above rule, at least ignore the following: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// simple factory | |
angular.module('moduleUsingPromise', []) | |
.factory('dataSvc', function(dataSourceSvc, $q) { | |
function getData() { | |
var deferred = $q.defer(); | |
dataSourceSvc.getAllItems().then(function(data) { | |
deferred.resolve(data); | |
}, function(error) { | |
deferred.reject(error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by jhines on 7/28/2015. | |
*/ | |
describe('NavbarController search by three digit tail number', function(){ | |
'use strict'; | |
var scope, navbarController, $window, httpBackend, ronTableService, deferred; | |
beforeEach(function(){ | |
module('mxnet.navbar', 'mxNetApp', 'mxnet.lineplanning'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return Restangular.all('retrieveRonTails').post({ | |
filters: { | |
tails: [1234] | |
} | |
},{},{}) |