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
/** | |
* A helper, internal data structure that acts as a map but also allows getting / removing | |
* elements in the LIFO order | |
*/ | |
.factory('$$stackedMap', function () { | |
return { | |
createNew: function () { | |
var stack = []; | |
return { |
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
WinJS.Namespace.define('MyFactory', { | |
2.Car: WinJS.Class.define( | |
3. // Constructor | |
4. function (color, make) { | |
5. this.color = color; |
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 () { | |
2. "use strict"; | |
3. | |
4. WinJS.Binding.optimizeBindingReferences = true; | |
5. |
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
<html> | |
<head> | |
<title>*|MC:SUBJECT|*</title> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<style type="text/css"> | |
body,#wrap{ | |
text-align:center; | |
margin:0px; | |
background-color:#FFFEF8; |
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.factory("LawnchairFactory", function($window, $log, $parse) { | |
return function(name, config) { | |
var collection = {}; | |
var array = []; | |
var isArray = config && config.isArray; | |
var idGetter = $parse((config && config.entryKey) ? config.entryKey : "id"); | |
var transformSave = (config && config.transformSave) ? config.transformSave : angular.identity; | |
var transformLoad = (config && config.transformLoad) ? config.transformLoad : angular.identity; | |
function getEntryId(entry){ |
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
// Copyright Joyent, Inc. and other Node contributors. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a | |
// copy of this software and associated documentation files (the | |
// "Software"), to deal in the Software without restriction, including | |
// without limitation the rights to use, copy, modify, merge, publish, | |
// distribute, sublicense, and/or sell copies of the Software, and to permit | |
// persons to whom the Software is furnished to do so, subject to the | |
// following conditions: | |
// |
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('ngGeolocation',[]) | |
.constant('options',{}) | |
.factory('geolocation', | |
["$q","$rootScope","options", | |
function ($q , $rootScope , options){ | |
return { | |
position: function () { | |
var deferred = $q.defer() | |
navigator.geolocation.getCurrentPosition(function (pos) { | |
$rootScope.$apply(function () { |
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'; | |
var directives = angular.module('guthub.directives', []); | |
directives.directive('butterbar', ['$rootScope', | |
function($rootScope) { | |
return { | |
link: function(scope, element, attrs) { | |
element.addClass('hide'); |
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><head> | |
<title>Redirecting...</title> | |
<meta http-equiv="refresh" content="0;url=./test.html"> | |
</head><body> | |
Redirecting... | |
</body></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
@media (min-width: 768px) and (max-width: 979px) { | |
} | |
@media (max-width: 767px) { | |
} | |
@media (min-width: 1200px) { | |
} | |
@media (min-width: 768px) and (max-width: 979px) { | |
} | |
@media (max-width: 767px) { |
NewerOlder