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 () { | |
// Establish the root object, `window` in the browser, or `global` on the server. | |
var root = this; | |
requirejs.config( | |
{ | |
baseUrl: 'scripts/app', /* script default location */ | |
} | |
); | |
registerNonAmdLibs(); |
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
public class EFRepository<T> : IRepository<T> where T : class | |
{ | |
public EFRepository(DbContext dbContext) | |
{ | |
if (dbContext == null) | |
throw new ArgumentNullException("dbContext"); | |
DbContext = dbContext; | |
DbSet = DbContext.Set<T>(); | |
} |
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
define('model.attendance', | |
['ko'], | |
function (ko) { | |
var attendanceMakeId = function (personId, sessionId) { | |
return (personId + ',' + sessionId); | |
}; | |
var Attendance = function () { | |
var self = this; |
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
saveCmd = ko.asyncCommand({ | |
execute: function (complete) { | |
if (canEditSession()) { | |
setTimeout(function() { | |
$.when(datacontext.sessions.updateData(session())) | |
.always(complete); | |
}, 3000); | |
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
{ | |
"key": "cmd+=", | |
"command": "workbench.action.zoomIn" | |
}, | |
{ | |
"key": "cmd+-", | |
"command": "workbench.action.zoomOut" | |
} |
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 parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u @ \w$\[\033[32m\]\$(parse_git_branch)\[\033[00m\] \n$ " |
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
define(function () { | |
var mapper = { | |
mapDtosToEntities: mapDtosToEntities | |
}; | |
return mapper; | |
function mapDtosToEntities(manager, dtos, entityName) { | |
// Map an array of DTO's for a type of entity | |
// to an array of Breeze entities that are managed by |
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
define( | |
function () { | |
var defaultExtension = { isPartial: true }; | |
var mapper = { | |
mapDtosToEntities: mapDtosToEntities | |
}; | |
return mapper; | |
/** |
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": "angular2-getting-started", | |
"version": "1.0.0", | |
"description": "", | |
"scripts": { | |
"tsc": "tsc -p src -w" | |
}, | |
"license": "ISC", | |
"dependencies": { | |
"angular2": "2.0.0-alpha.44", |
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
<div class="paper-snackbar"> | |
Your message was sent | |
</div> |