Skip to content

Instantly share code, notes, and snippets.

View robertlj's full-sized avatar

Robert Johnson robertlj

View GitHub Profile
@robertlj
robertlj / oracle-db-update.clj
Created July 11, 2018 16:57 — forked from gdeer81/oracle-db-update.clj
an example of updating an oracle database from clojure the server, user names, and passwords have been changed to protect the innocent
(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"
@robertlj
robertlj / JGit
Created July 9, 2018 20:41 — forked from oculushut/JGit
Using JGit in Windows
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:
@robertlj
robertlj / gist:4991982
Created February 20, 2013 01:41
Volatile Field Look up Example
using System;
using System.Linq;
namespace VolatileFieldExampleMono
{
public class Test
{
public volatile int Counter = 0;
public volatile int Counter2 = 2;
public int Counter3 = 3;
@robertlj
robertlj / gist:3554891
Created August 31, 2012 15:46
Nuget Mono
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 **
@robertlj
robertlj / gist:3552726
Created August 31, 2012 13:34
ClojureCLR Build Dependency
DLR - lib2.zip
Nuget: Nunit - nunit.framework.dll
@robertlj
robertlj / gist:3552582
Created August 31, 2012 13:20
CLojureCLR command line build Mono Win7/Win8 (4.0 Profile)
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"
@robertlj
robertlj / gist:3552549
Created August 31, 2012 13:17
CLojureCLR command line build Win7 (4.0 Profile)
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"
@robertlj
robertlj / gist:3552216
Created August 31, 2012 12:36
ClojureCLR Mono Build
<!-- 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;