At the command prompt, use this command:
type *.txt > outfileIf you name
outfile with the extension .txt, you'll actually wind up with stuff duplicated because the *.txt will cause the output file to be input, too! Stuff related to software development (PC, mobile, and embedded), scuba, my life, and whatever else I find to write about.
type *.txt > outfileoutfile with the extension .txt, you'll actually wind up with stuff duplicated because the *.txt will cause the output file to be input, too! git svn dcommit means delta commit.sudo apt-get install mercurial is a relatively old one. But, if you download it from http://mercurial.selenic.com/, you can get the latest. However, in a fresh install of Linux Mint, I got the following error when I tried to run sudo make install:
To fix this, you need to install the python-dev package using:mercurial/base85.c:13:20: fatal error: Python.h: No such file or directory compilation terminated.
sudo apt-get install python-dev
You'll need to install python-docutils, too.
Then you can run make install.
sudo apt-get install pythonsudo apt-get install python-pipsudo pip install markdownmarkdown_py input.md
private void OnEventOccurred(EventOccurredEventArgs args)
{
var handler = EventOccurred;
if ( handler != null )
{
handler(this, args);
}
}Due to their nature, the event delegates are often used in multi-threaded code and could potentially become null at any point in time. To correctly deal with that problem, the copy of the handler on the first line of the method is required to prevent problems when the last delegate method is removed from the handler after the compare to null but before we invoke it. (event handlers are immutable, so there's no chance of EventOccurred becoming null while we're invoking it):public static class EventHandlerExtensions
{
public static void Raise<TEventArgs>(this EventHandler<TEventArgs> handler,
object sender, TEventArgs args) where TEventArgs : EventArgs
{
if (handler != null) handler(sender, args);
}
}Because it's a static method, it can be invoked on even a null delegate and doesn't need to be copied to each class that uses it.EventOccurred.Raise(this, new EventOccurredEventArgs());Beautiful! (Microsoft's Framework Design Guidelines for .NET indicate that "raise" is the correct term to use when referring to what happens to an event. [Other systems use "fire" or "signal."])