- GitHub Staff
This file contains hidden or 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
| var seed = require('../../seed'); | |
| // with Promise (choice 1) | |
| module.exports.reseedData = function (req, res) { | |
| clearAllData() | |
| .then(seed.allData) | |
| .then(res.ok) | |
| .catch(res.serverError) | |
| }; |
This file contains hidden or 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
| javascript: (function() { var root = $(document.getElementsByTagName('html')); var watchers = []; var attributes = []; var attributes_with_values = []; var elements = []; var elements_per_attr = []; var scopes = []; function include(arr, obj) { return (arr.indexOf(obj) != -1); } function is_not_duplicate(arr, obj) { if (typeof arr == "undefined") { return true; } else { if (include(arr, obj)) { return false; } else { return true; } } } var f = function(element) { if (element.data().hasOwnProperty('$scope')) { if (typeof scopes[element.data().$scope.$id] == "undefined") { scopes[element.data().$scope.$id] = true; angular.forEach(element.data().$scope.$$watchers, function(watcher) { watchers.push(watcher); for (index = 0; index < element[0]['attributes'].le |
This file contains hidden or 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="minos-public"> | |
| <head> | |
| <title>Minos Disposition Engine </title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="/assets/vendor/font-awesome/css/font-awesome.css"/> | |
| <link rel="stylesheet" href="/assets/vendor/bootswatch/yeti/bootstrap.css"/> | |
| <link rel="stylesheet" href="/assets/styles/style.css"/> |
This file contains hidden or 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
| Mapper.CreateMap<TestClass, TestClassViewModel>() | |
| .ForMember(dest => dest.Bar, opt => opt.MapFrom(src => src.Foo)); | |
| var map = new Mapper<TestClass, TestClassViewModel>(Mapper.Engine); |
This file contains hidden or 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
| //javascript namespacing | |
| //start class | |
| var CallDirector_application = {}; | |
| (function () { | |
| //private members | |
| var $selectedMenuAction; | |
| //public memeber |
This file contains hidden or 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
| /// <reference path="..\jquery-1.6.1-vsdoc.js"/> | |
| /// <reference path="..\Calldirector.base.js"/> | |
| //javascript namespacing | |
| var CallDirector_application = {}; | |
| (function () { | |
| //same as private | |
| var messageWindow; |
This file contains hidden or 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 type="text/template" id="item-template"> | |
| <div class="todo <%= done ? 'done' : '' %>"> | |
| <input class="check" type="checkbox" <%= done ? 'checked="checked"' : '' %> /> | |
| </div> | |
| </script> |
This file contains hidden or 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> | |
| <title>Backbone.js Todos</title> | |
| <link rel="stylesheet" href="todos.css"/> | |
| </head> | |
| <body> |
This file contains hidden or 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
| this.bindTouchEvents = function (targetElement, touchEndFunction, context) { | |
| var _context = context; | |
| var moved = false; | |
| $(document).off("touchstart", targetElement); | |
| $(document).off("touchmove", targetElement); | |
| $(document).off("touchend", targetElement); | |
| $(document).on("touchstart", targetElement, null, function (event) { | |
| }); |
This file contains hidden or 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
| [assembly: WebActivator.PreApplicationStartMethod(typeof(IDM.CMS3.Web.Admin.App_Start.NinjectWebCommon), "Start")] | |
| [assembly: WebActivator.ApplicationShutdownMethodAttribute(typeof(IDM.CMS3.Web.Admin.App_Start.NinjectWebCommon), "Stop")] | |
| namespace IDM.CMS3.Web.Admin.App_Start | |
| { | |
| using System; | |
| using System.Web; | |
| using Microsoft.Web.Infrastructure.DynamicModuleHelper; |
OlderNewer