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
[{"image":"sexonthebeach.jpg","ingredients":[{"amount":"2/3 oz.","ingredient":"Peach schnapps"},{"amount":"1 1/3 oz.","ingredient":"Vodka"},{"amount":"1 1/3 oz.","ingredient":"Cranberry juice"},{"amount":"1 1/3 oz.","ingredient":"Orange juice"}],"instructions":"Combine ingredients in a cocktail shaker with ice. Shake and strain into a highball glass filled with ice.","name":"Sex on the Beach","id":"e9ac9d445adc98c9"},{"image":"kamikaze.jpg","ingredients":[{"amount":"1 oz.","ingredient":"Triple Sec or Cointreau"},{"amount":"1 oz.","ingredient":"Vodka"},{"amount":"1 oz.","ingredient":"Lime juice"},{"amount":"1","ingredient":"Lime wedge"}],"instructions":"Shake ingredients in a cocktail shaker with ice. Strain into a cocktail glass. Garnish with a lime wedge and a stir stick.","name":"Kamikaze","id":"3495e74cf9208855"},{"image":"jagerbomb.jpg","ingredients":[{"amount":"1 shot","ingredient":"Jagermeister"},{"amount":"4 oz.","ingredient":"Red Bull"}],"instructions":"Pour Red Bull into a regular glass, then drop in |
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
/* Services */ | |
var services = angular.module('app.services', []) | |
services.factory( 'Drink', function($http) { | |
// Drink is a class which we can use for retrieving and | |
// updating data on the server | |
var Drink = function(data) { angular.extend(this, data); }; | |
// a static method to retrieve Drink by ID | |
Drink.get = function(drink) { |
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
'use strict'; | |
module.exports = function (module) { | |
module.factory('PageEventsService', ['$rootScope', function ($rootScope) { | |
return { | |
// can't get it to receive :-( | |
on: function(event, callback) { | |
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
/** | |
* Paginator | |
* | |
* The paginator can be used within any controller to easily set up | |
* some pagination options, including number of pages, page navigation | |
* and more. It is built to work with Laravel's own pagination library, | |
* which returns data in a particular format. | |
* | |
* Usage: | |
* Before you can use paginator, make sure you specify the URLs to your pagination |
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
Show hidden characters
{ | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 100, // Maximum errors before stopping. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : true, // Standard browser globals e.g. `window`, `document`. | |
"node" : 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
// MOCK SERVICES | |
beforeEach(mock.module('app-name', function ($provide) { | |
getContentData = require('../data/getContentData.json'); | |
getVersionsData = require('../data/getVersionsData.json'); | |
newPost = require('../data/newPost.json'); | |
fullPost = require('../data/fullPost.json'); | |
$provide.value('ContentSvc', { | |
find: function(filter, options, cb) { |
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
jade: { | |
dynamic_mappings: { | |
files: [ | |
{ | |
expand: true, | |
cwd: 'views/', | |
src: ['**/*.jade'], | |
dest: 'static', | |
ext: '.html' | |
} |
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
angular.module('my-app', []) | |
.filter('dash', function() { | |
return function(input) { | |
return input ? input : '-'; | |
}; | |
}); |
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
// ************ Bootstrap App **************** | |
angular.element(document).ready(function () { | |
angular.bootstrap(document.getElementById('main_container'), ['my-app']) | |
}) | |
// ******************************************* |
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
fusiongrokker: please tell me sharon is pulling up irc on stage… | |
[4:40pm] RyanGuill: that would be awesome | |
[4:40pm] elizabot joined the chat room. | |
[4:40pm] fusiongrokker: YAY | |
[4:40pm] fusiongrokker: hi mom | |
[4:41pm] abram: hey Sharon | |
[4:41pm] fusiongrokker: I CAN SEE MY HOUSE FROM HERE | |
[4:41pm] bittersweetryan joined the chat room. | |
[4:41pm] sharondio: elizabot: Hello | |
[4:41pm] elizabot: sharondio: How do you do. Please tell me your problem. |
OlderNewer