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
(ns db-test.core | |
(:require [clojure.java.jdbc :as j]) | |
(use [korma.db]) | |
(use [korma.core]) | |
(:gen-class)) | |
(defn setup-connection [] | |
(def oracle-db {:classname "oracle.jdbc.odbc.OracleDriver" | |
:subprotocol "oracle" | |
:subname "thin:@//remotehost:1521/derpina1" |
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
1. Download jgit.sh from here: https://eclipse.org/jgit/download/ | |
(Yes -> it's a file with a .sh extension and we want to work in Windows, but download it!) | |
2. Rename the downloaded file to something easier to deal with. E.g. "jgit.sh" | |
3. Create a new file called jgit.bat and stick it in the same folder as jgit.sh. | |
4. Type the following into the jgit.bat file: |
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.Linq; | |
namespace VolatileFieldExampleMono | |
{ | |
public class Test | |
{ | |
public volatile int Counter = 0; | |
public volatile int Counter2 = 2; | |
public int Counter3 = 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
Found this info at http://monomvc.wordpress.com/2012/03/06/nuget-on-mono/ | |
Run Nuget with Mono by using: mono --runtime=v4.0.30319 NuGet.exe or mono --runtime=v4.0 NuGet.exe | |
** Not Working on Windows 8 ** |
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
DLR - lib2.zip | |
Nuget: Nunit - nunit.framework.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
xbuild build.proj /target:Test /property:Configuration="Debug 4.0";Platform="Any CPU" | |
xbuild build.proj /target:Build /property:Configuration="Debug 4.0";Platform="Any CPU" | |
xbuild build.proj /target:Dist /property:Configuration="Debug 4.0";Platform="Any CPU" | |
xbuild build.proj /target:Test /property:Configuration="Release 4.0";Platform="Any CPU" | |
xbuild build.proj /target:Build /property:Configuration="Release 4.0";Platform="Any CPU" |
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
MSBuild.exe build.proj /target:Test /p:Configuration="Debug 4.0" /p:Platform="Any CPU" | |
MSBuild.exe build.proj /target:Build /p:Configuration="Debug 4.0" /p:Platform="Any CPU" | |
MSBuild.exe build.proj /target:Dist /p:Configuration="Debug 4.0" /p:Platform="Any CPU" | |
MSBuild.exe build.proj /target:Build /p:Configuration="Release 4.0" /p:Platform="Any CPU" | |
MSBuild.exe build.proj /target:Dist /p:Configuration="Release 4.0" /p:Platform="Any CPU" |
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
<!-- Reworked Dist target to work around Mono bug related to embeding | |
ItemGroup inside a Target tag --> | |
<Target Name="Dist" DependsOnTargets="Build"> | |
<!--DLR Files: | |
"$(OutputPath)\Microsoft.*" --> | |
<!--Clojure dlls and exes Files: | |
$(OutputPath)\Clojure.Tests.dll;$(OutputPath)\Clojure.Tests.pdb; | |
$(OutputPath)\Clojure.Source.dll;$(OutputPath)\Clojure.Source.pdb; | |
$(OutputPath)\clojure.test-clojure.genclass.examples.ExampleClass.dll; | |
$(OutputPath)\clojure.test-clojure.genclass.examples.ExampleClass.pdb; |