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; | |
using System.Globalization; | |
using System.Text.RegularExpressions; | |
namespace Tools.Service | |
{ | |
/// <summary> | |
/// Fonctionalité pour tester le format de la saisie | |
/// </summary> | |
public static class Tools |
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
var strings = new System.Collections.Generic.List<string> { "item 1", "item 2", "item 3" }; | |
var displayStringList = "list : " + System.Environment.NewLine + "- " + strings.Aggregate((s1, s2) => s1 + System.Environment.NewLine + "- " + s2); |
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
*-----------* | |
|8..|...|...| | |
|..3|6..|...| | |
|.7.|.9.|2..| | |
|---+---+---| | |
|.5.|..7|...| | |
|...|.45|7..| | |
|...|1..|.3.| | |
|---+---+---| | |
|..1|...|.68| |
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
[alias] | |
st = status | |
ci = commit | |
# Sync a branch with it's upstream without needed to checkout | |
sync = !sh -c 'git fetch upstream && git push . "upstream/$0:$0"' | |
syncma = sync master | |
#Autostash before a git command `git s rebase ....` | |
s = !sh -c \"git stash save | grep 'No local changes to save' && git $* || (git $* && git stash pop) \" | |
autostash = !sh -c \"git s $*\" |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\TeamFoundation\SourceControl\Checkin Policies] | |
"Microsoft.TeamFoundation.Build.Controls"="C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\PrivateAssemblies\\Microsoft.TeamFoundation.Build.Controls.dll" | |
"Microsoft.TeamFoundation.VersionControl.Controls"="C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\PrivateAssemblies\\Microsoft.TeamFoundation.VersionControl.Controls.dll" | |
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
[tig "bind"] | |
# Amend last commit in status view | |
status = A !?git commit --amend | |
#Create a branch | |
main = ^b !?git checkout -b %(prompt) | |
#Push to Remote repository | |
main = ^o !git push origin | |
#Stash modifications | |
generic = ^s !@git stash save | |
generic = ^S !@git stash pop |
Kata Refactoring (C#) :
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
#Script to permit to rcheckin a git repository to a newly created TFVC repository with git-tfs | |
#adaptation from my answer: http://stackoverflow.com/questions/645450/insert-a-commit-before-the-root-commit-in-git/30558271#30558271 | |
#usage: pass to the script (1) the url of the tfs server, (2) the tfs path in the repository, (3) the changeset id | |
#../replace_root.sh "https://urlOfYourTfs/DefaultCollection" "$/EmptyTfs/Trunk" 21 | |
tfsServer=$1 | |
tfsPath=$2 | |
tfsChangesetId=$3 | |
gitTfsMetadata="git-tfs-id: [$tfsServer]$tfsPath;C$tfsChangesetId" |
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
* DAG | |
* .git Folder architecture & `git cat-file -p` | |
* git reflog | |
* Git Workflows | |
* [Tracking method history](http://urbanautomaton.com/blog/2014/09/22/tracking-method-history-in-git/) | |
git log -L :MethodName:Path/Toward/File.cs | |
require `.gitattribue` diff aware config: https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html#_defining_a_custom_hunk_header | |
* git rerere |
OlderNewer