Skip to content

Instantly share code, notes, and snippets.

View afriza's full-sized avatar

Afriza N. Arief afriza

  • Indonesia
  • 16:49 (UTC +07:00)
View GitHub Profile
@afriza
afriza / jgit.cmd
Created June 11, 2011 08:07
Batch file wrapper to call JGit.Pgm JAR in Microsoft Windows
@REM Author: Afriza N. Arief <[email protected]>
@REM ### automatically search for common JRE/JDK folder path ###
@echo off
set JAVA_CMD=
set JGIT_JAR=
set JGIT_EXT=.JAR;.SH
set JGIT_FILE_PATTERN=*jgit.pgm*
if not defined JAVA_HOME for /d %%d in ("C:\Program Files\Java\jre*") do set JAVA_HOME="%%d"
@afriza
afriza / sqlite_cpp-cli.cpp
Created May 13, 2011 04:01
SQLite ADO.NET Provider with C++/CLI
// sqlite_cpp-cli.cpp
// Demonstrate SQLite ADO.NET Provider with C++/CLI
#include "stdafx.h"
#using "System.Data.SQLite.dll" // put this file in the project directory
using namespace System;
using namespace System::Data::SQLite;
int main(array<System::String ^> ^args)