Note: Has to be run multiple times until it will not match anything. Has been verified in Visual Studio Professional 2017.15.7
- Search RegularExpression
(?<=(^[\t]*))[ ]{4}
. - Replace with
\t
. - File mask
*.cs
.
https://www.tensorflow.org/get_started/premade_estimators |
git log 16316a --author="^MrSmith" --pretty=format:"%h%x09%an%x09%ad%x09%s" -20 |
import cv2 | |
import math | |
import numpy as np | |
import sys | |
def apply_mask(matrix, mask, fill_value): | |
masked = np.ma.array(matrix, mask=mask, fill_value=fill_value) | |
return masked.filled() | |
def apply_threshold(matrix, low_value, high_value): |
#!/usr/bin/env bash | |
SHA=$1 | |
echo "Creating file list for $SHA" | |
git diff-tree --no-commit-id --name-only -r "$SHA" > | |
vim diff-tree.filelist | |
cat diff-tree.filelist | xargs -0 -I -r {} git checkout "$SHA^" {} | |
rm diff-tree.filelist |
#show settings | |
git config --list --show-origin | |
$ git config --list --show-origin | grep crlf | |
file:"C:\\ProgramData/Git/config" core.autocrlf=false | |
#csharp .gitattributes | |
*.sln text eol=crlf | |
*.config text eol=crlf |
git log --no-merges --format=format:%H master..a_branch | sort > master.ahead | |
git log --no-merges --format=format:%H development..a_branch.development | sort > development.ahead | |
diff master.ahead development.ahead |
using System; | |
using System.Text; | |
namespace Hashing | |
{ | |
public static class FowlerNollVo | |
{ | |
public static string ToFnv1aHashInt64(this string text) | |
{ | |
string Fnv1a(byte[] bytes_) |
First git tag with commit | |
https://unix.stackexchange.com/questions/47659/how-to-find-the-first-tag-that-contains-a-git-commit | |
git name-rev --tags --name-only <SHA> |