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
cat package.json | jq -r '.dependencies | keys | map(select(startswith("gatsby")) | "\(.)@latest") | join(" ")' | xargs npm | |
i |
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
git config --global alias.a 'add -A' | |
git config --global alias.b 'branch' | |
git config --global alias.c 'checkout' | |
git config --global alias.cb 'checkout -b' | |
git config --global alias.d 'diff' | |
git config --global alias.f 'fetch' | |
git config --global alias.l 'log --pretty=oneline --abbrev-commit' | |
git config --global alias.r 'rebase --interactive HEAD~10' | |
git config --global alias.s '-p status' |
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 static class DbSetExtensions | |
{ | |
public static void AddOrUpdateFaster<TEntity>( | |
this DbSet<TEntity> set, | |
Expression<Func<TEntity, int>> identifierExpression, | |
IEqualityComparer<TEntity> entityComparer, | |
params TEntity[] entities) | |
where TEntity : class | |
{ | |
var identifierFunction = identifierExpression.Compile(); |
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
Install-WindowsUpdate -acceptEula |
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
choco install beyondcompare | |
choco install TimRayburn.GitAliases | |
choco install gittfs | |
choco install mysql | |
choco install mysql.workbench | |
choco install notepadplusplus | |
choco install paint.net | |
choco install windirstat | |
choco install ruby | |
choco install fiddler |
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
namespace MyFriends; | |
fact Individual { | |
key: | |
string anonymousId; | |
query: | |
Friend* friends { | |
Friend f : f.individual = 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
using System.Linq; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace StatisticalLinq | |
{ | |
[TestClass] | |
public class VarianceTest | |
{ | |
[TestMethod] | |
public void VarianceOf10Numbers() |