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
[push] | |
default = simple | |
[core] | |
pager = cat | |
editor = code --wait | |
autocrlf = true | |
[color] | |
ui = true | |
[color "status"] | |
changed = red bold |
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
1) git branch -d <branch_name> | |
2) git checkout -b <branch name> | |
3) git show-branch | |
4) git add --all | |
5) git push -u origin <branchName> | |
6) git fetch origin | |
7) git push origin --delete <branch name> | |
8) Add remote Github repo to local exisitng: | |
git remote add origin <remote repository URL> | |
# Sets the new remote |
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
-check file names first | |
restore filelistonly | |
from disk = 'c:\dev\EMS.2016-07-11.bak' | |
-Then restore filename to a local disk location of your choice (make sure the entire path is already created before running this) | |
restore database EMS | |
from disk = 'c:\dev\EMS.2016-07-11.bak' | |
with move 'EMS' to 'c:\dev\SQLData\EMS.mdf', | |
move 'EMS_log' to 'c:\dev\SQLData\EMS_log.ldf', | |
replace; |
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
public override int SaveChanges(){ | |
foreach (var history in this.ChangeTracker.Entries() | |
.Where(e => e.Entity is IModificationHystry && (e.State == EntityState.Added || e.State == EntityState.Modified)) | |
.Select(e => e.Entity as IModificationHistory) | |
){ | |
history.DateModified = DateTime.Now; | |
if(history.DateCreated == DateTime.MinValue){ | |
history.DateCreated = DateTime.Now; | |
} | |
} |
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
(function(module){ | |
var setupDom = function (element){ | |
var input = element.querySelector("input, textarea, select, custom-directive"); | |
var type = input.getAttribute("type"); | |
if (type !== "checkbox" && type != "radio"){ | |
input.classList.add("form-control"); | |
} //we can add an else to add different classes for radio and checkbox since | |
//form-control doesn't render nicely with these 2 input types | |