View CSSRuleCounter
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
<script> | |
function countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} |
View index.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
<!doctype html> | |
<html ng-app="myModule"> | |
<head> | |
</head> | |
<body> | |
<div> | |
<label>Name:</label> | |
<input type="text" ng-model="name" placeholder="Enter a name here"> | |
<hr> |
View app.js
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
// Initialize the module | |
angular.module('myModule', []); | |
// Access the module via angular.module('myModule'); | |
// Add the controller to the module using method chaining | |
angular.module('myModule').controller('myController', function($scope) { | |
// Anything added to the scope is available to the view | |
$scope.name = 'Aaron Roberson'; | |
}); |
View update_pledge.sql
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
# REPLACE THE BRACKETS WITH THE APPROPRIATE VALUES | |
# For example, WHERE user.email = '[the email address]' | |
# becomes WHERE user.email = 'aaron@blaremedia.net' | |
# This SELECT query returns the email, pledge and pledge id | |
# for the user. You will use the pledge id returned from this | |
# query to update the pledge in the UPDATE query below | |
SELECT user.email, pledge.pledge, pledge.id | |
FROM `jos_users` as user |
View update_team.sql
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
#Update team name | |
UPDATE `jos_ibike_team` | |
SET name = 'RideSunnyside' | |
WHERE name = 'Ridesunnyside' |
View product-filters.json
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
[ | |
{ "id": 1, "name": "Color", "properties": [ | |
{ "id": 0, "name": "Blue", "selected": false }, | |
{ "id": 1, "name": "Red", "selected": false }, | |
{ "id": 2, "name": "Green", "selected": false } | |
] }, | |
{ "id": 2, "name": "Gender", "properties": [ | |
{ "id": 3, "name": "Female", "selected": false }, | |
{ "id": 4, "name": "Male", "selected": false }, | |
{ "id": 5, "name": "Unisex", "selected": false } |
View product-list-controller.js
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
$scope.displayType = 'grid'; | |
$scope.toggleDisplay = function() { | |
$scope.displayType = ($scope.displayType === 'grid') ? 'list' : 'grid' | |
} |
View featured-product-directive.js
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
(function(angular) { | |
'use strict'; | |
var app = angular.module('MyStore'); | |
app.directive('msFeaturedProduct', function() { | |
return { | |
restrict: 'E', | |
replace: true, |
View .bowerrc
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
{ | |
"directory": "public/bower_components" | |
} |
OlderNewer