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
How to use CodeRush to create a default implementation of ToString() which emits the names and values of all of the classes properties: | |
The following 3 sets of data represet CodeRush templates | |
The first line of each is the name of the template | |
The following lines (until the row of hyphens) represents the body of the template | |
Add these 3 templates to be able to Type: "PropertyToString<space>" (no quotes) and have CodeRush generate a default implementation of ToString() which emits the values of each property. | |
------------------------------------------------------------- | |
PropertyToString | |
public override string ToString() |
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
gitk --all $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' ) |
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
You like the way you have to stop work when your network crumbles around you, because you can't commit. | |
You like the idea of putting all your eggs in one basket (server) | |
You like getting exclusive access to files and keeping it so no-one else can do anything useful. | |
You like paying licence fees for the right to have your own VCS server(s) | |
You like micro-managing the setup of your existing VCS with 'Extensions' just to get the same functionality as git :D | |
You don't want easy branching and merging. | |
You hate the idea that *any* clone of a git repo, could replace a build repo in as much time as it takes to copy that repo. | |
You hate the idea of a truly fast and flexible VCS |
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 Interface ISomeInterface | |
Sub Method1() | |
Sub Method2() | |
Sub Method3() | |
End Interface | |
Public MustInherit Class GrandParentExplicit | |
Implements ISomeInterface | |
Public Sub Method1() Implements ISomeInterface.Method1 |
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 interface IMyComplete | |
{ | |
// generated gubbins | |
void DoWork(); | |
//manual gubbins | |
void DoWorkImpl(); | |
} | |
// generated 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
' Ok now pay attention because this is already confusing enough. | |
' Have you already had your coffee? | |
' No? Well go and get one. You're going to need it... |
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
#------------------------------------------------------------- | |
# Git - Pushing and Pulling | |
#------------------------------------------------------------- | |
#fetch all changes from a remote (Does not merge any changes with your local repo) | |
git fetch <RemoteName> | |
# Pull specific branch from a named remote | |
git pull <RemoteName> <Branch> |
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
#------------------------------------------------------------- | |
# Git Remotes (Adding and removing) | |
#------------------------------------------------------------- | |
#Add a file share remote | |
git remote add <remoteName> //MyServer/SomeShare/RestOfPath[.git] | |
#Add a bitbucket remote | |
git remote add <remoteName> git@bitbucket.org:[username]/[RepoName].git |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<targets> | |
<target name="InfoFile" xsi:type="File" fileName="${basedir}/Info.txt" /> | |
<target name="OtherFile" xsi:type="File" fileName="${basedir}/Other.txt" /> | |
</targets> | |
<rules> | |
<logger name="*" levels="Info" writeTo="InfoFile" /> |
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
#------------------------------------------------------------- | |
# git repo creation | |
#------------------------------------------------------------- | |
#Create new 'empty' repo in the current folder. | |
git init | |
#Create new 'empty' repo with no working folder component. | |
# - Suitable for a central repo model | |
git init --bare |
NewerOlder