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
{ | |
"window.zoomLevel": 2, | |
// Define profile for specified syntax or use your own profile with specific rules. | |
"emmet.includeLanguages": { | |
"javascript": "javascriptreact" | |
}, | |
// prettier | |
"editor.formatOnSave": true, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
// vim |
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
// Create bookmark with javascript: CODE_HERE | |
// Click on bookmark in meetup website | |
(function () { | |
var list = document.getElementById('rsvp-list').children, | |
item = list[Math.floor(Math.random() * list.length)], | |
name = item ? item.querySelector('h5.member-name a').innerHTML : 'N/A'; | |
item && item.parentNode.removeChild(item); | |
alert("And the winner!!! Is.... " + name); |
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
/* eslint strict: [2, "global"] */ | |
'use strict'; | |
/*** Main paths ***/ | |
var projectRoot = './', | |
root = './myProject.web/', // project root | |
index = root + 'Views/Shared/Layouts/', | |
src = root + 'Content/', // source code | |
temp = root + 'temp/', // temporary folder | |
dist = src + 'dist/', // generated code |
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
/* | |
* | |
* Memoizes call to a service using a promise | |
* | |
*/ | |
function memoizeWithPromise(getFn) { | |
let memoizedCalls = new Map(); | |
return function(...args) { | |
let serializedArgs = JSON.stringify(args); |
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
/* | |
* $description$ directive. | |
* | |
* Usage: | |
* <vtf-$directiveName$></vtf-$directiveName$> | |
* | |
*/ | |
(function () { | |
'use strict'; |
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 static class ModelStateTestHelpers | |
{ | |
public static bool HasError(this ModelStateDictionary modelState, string errorMessage) | |
{ | |
return modelState.Any(ms => ms.Value.Errors.Any(e => e.ErrorMessage == errorMessage)); | |
} | |
} |
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 static class ModelStateTestHelpers | |
{ | |
public static bool HasError(this ModelStateDictionary modelState, string errorMessage) | |
{ | |
return modelState.Any(ms => ms.Value.Errors.Any(e => e.ErrorMessage == errorMessage)); | |
} | |
} |
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
[Test] | |
public void $methodName$_When$context$_Should$expectedResult$() | |
{ | |
// Arrange | |
$END$ | |
// Act | |
// Assert | |
} |
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
using System.Data.Entity; | |
using System.Linq; | |
using Moq; | |
namespace Platform.Domain.Tests.Helpers | |
{ | |
public class QueryableDbSetMock | |
{ | |
public static IDbSet<T> GetQueryableMockDbSet<T>(params T[] sourceList) where T : class | |
{ |
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
[user] | |
name = Jaime González García | |
email = [email protected] | |
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
lo = log | |
br = branch | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all |