Skip to content

Instantly share code, notes, and snippets.

View jpluimers's full-sized avatar

Jeroen Wiert Pluimers jpluimers

  • wiert.me
  • Amsterdam, The Netherlands
View GitHub Profile
@jpluimers
jpluimers / gist:6140864
Last active December 20, 2015 13:39
svn 1.8.1 update and checkout from CodePlex works again.
C:\>cd dev
C:\dev>mkdir BeSharp.CodePlex.com
C:\dev>cd BeSharp.CodePlex.com
C:\dev\BeSharp.CodePlex.com>svn --version
svn, version 1.8.1 (r1503906)
compiled Jul 22 2013, 19:58:17 on x86-microsoft-windows
@jpluimers
jpluimers / gist:6141011
Created August 2, 2013 15:53
CodePlex: svn, version 1.7.5 (r1336830) fails with svn: E130003: XML data was not well-formed
C:\Users\developer\VersionControl\BeSharp.codeplex.com>svn --version
svn, version 1.7.5 (r1336830)
compiled May 11 2012, 02:21:17
Copyright (C) 2012 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
@jpluimers
jpluimers / gist:6173912
Created August 7, 2013 13:12
MarkdownPad syntax highlighting issue: ordered inner lists are highighted as `code`, but should be text.
- A inner list highlighted as `code`
1. I
2. II
3. III
1. B inner list highlighted as text
- I
- II
- III
@jpluimers
jpluimers / gist:6174804
Created August 7, 2013 14:59
MarkdownPad inner list rendering: when empty line after inner list in markdown, there will be an empty line before the inner list during rendering.
Renders compact inner list:
1. Item A
- Item I
- Item II
- Item III
1. Item B
- Item IV
- Item V
- Item VI
@jpluimers
jpluimers / gist:6175103
Created August 7, 2013 15:28
MarkdownPad syntax highlighting bug: in lists, some lines should not be syntax highlighted as `code` but they are

Both of the lines no source code wil be highlighted as source code in the markdown.

  • item A with two spaces at line end
    no source code

A

  1. item B with two spaces at line end
    no source code
@jpluimers
jpluimers / FromCodePlexSvnToBitBucketHg.txt
Created August 13, 2013 10:19
Moving from CodePlex.com to HG on BitBucket. First hg convert, then hg push. Note that [email protected] is not my email address. It is part of http basic authentication: http://en.wikipedia.org/wiki/Basic_access_authentication#Features
C:\Users\Developer\HG\bitbucket.org\jeroenp>hg convert --authormap BeSharp.codeplex.com-svn-hg-autor-map.txt https://besharp.svn.codeplex.com/svn BeSharp.net-hg
initializing destination BeSharp.net-hg repository
svn: cannot probe remote repository, assume it could be a subversion repository. Use --source-type if you know better.
scanning source...
sorting...
converting...
108 Created team project folder $/besharp via the Team Project Creation Wizard
107 first publication
106 Base folder structure
@jpluimers
jpluimers / delete-empty-DDP-files.bat
Created August 16, 2013 09:41
Up until Delphi 7, .ddp files were used to store the Diagram Portfolios. Often these files were empty like `Empty.ddp`, so this batch file helps to clean up those. https://bitbucket.org/jeroenp/besharp.net/commits/b07d3474006a0035a8ffac4d52ced5b1532a4d76#chg-Scripts/Delphi/delete-empty-DDP-files.bat
@echo off
if #%1#==## goto :help
setlocal
call :main %*
endlocal
goto :eof
:help
echo Syntax: %0 Project-Root-Path [Empty.ddp]
@jpluimers
jpluimers / ShowParentDirectory.bat
Created August 17, 2013 14:14
Batch file to get parent directory without need of intermediate environment variables (so no need for setlocal as it is a one-liner)
echo batchfile=%0
echo full=%~f0
setlocal
for %%d in (%~dp0.) do set Directory=%%~fd
echo Directory=%Directory%
for %%d in (%~dp0..) do set ParentDirectory=%%~fd
echo ParentDirectory=%ParentDirectory%
endlocal
@jpluimers
jpluimers / gist:6365014
Created August 28, 2013 11:25
ADT paths should not contain spaces: overview of batch files and their compatibility with spaces
+ ...\adt-bundle-windows-x86-20130522\sdk\build-tools\android-4.2.2\dx.bat
+ ...\adt-bundle-windows-x86-20130522\sdk\tools\android.bat
+ ...\adt-bundle-windows-x86-20130522\sdk\tools\ddms.bat
+ ...\adt-bundle-windows-x86-20130522\sdk\tools\draw9patch.bat
+ ...\adt-bundle-windows-x86-20130522\sdk\tools\hierarchyviewer.bat
+ ...\adt-bundle-windows-x86-20130522\sdk\tools\jobb.bat
+ ...\adt-bundle-windows-x86-20130522\sdk\tools\lint.bat
+ ...\adt-bundle-windows-x86-20130522\sdk\tools\monitor.bat
+ ...\adt-bundle-windows-x86-20130522\sdk\tools\monkeyrunner.bat
+ ...\adt-bundle-windows-x86-20130522\sdk\tools\traceview.bat
@jpluimers
jpluimers / ReadOnlyErrorTextBoxWithRedText.cs
Created August 30, 2013 16:22
To make WinForms use the ForeColor, make sure to set the BackColor as well...
ErrorTextBox.Text = "something went wrong";
ErrorTextBox.BackColor = ErrorTextBox.ForeColor;