Skip to content

Instantly share code, notes, and snippets.

@RadAd
RadAd / custom_rules.xml
Created July 9, 2013 11:59
Custom rules for Android to change the intermediate output directory to the users temp directory.
<?xml version="1.0" encoding="UTF-8"?>
<project name="rad_rules" default="debug">
<property name="out.intermediate.dir" value="${java.io.tmpdir}/${ant.project.name}" />
<property name="out.classes.absolute.dir" value="${out.intermediate.dir}/classes" />
<property name="out.res.absolute.dir" value="${out.intermediate.dir}/res" />
<property name="out.aidl.absolute.dir" value="${out.intermediate.dir}/aidl" />
<property name="out.dexed.absolute.dir" value="${out.intermediate.dir}/dexedLibs" />
<target name="clean" depends="android_rules.clean" >
<delete dir="${out.intermediate.dir}" verbose="${verbose}" />
@RadAd
RadAd / vcopy.vbs
Created July 12, 2013 05:04
Copy a file with a visual progress window just like explorer except that it can be used from the command line.
'From http://blogs.technet.com/b/heyscriptingguy/archive/2006/10/10/how-can-i-provide-a-visual-indicator-when-copying-files.aspx
'CopyHere method See http://msdn.microsoft.com/en-us/library/bb787866%28v=VS.85%29.aspx
Const FOF_CREATEPROGRESSDLG = 0
Set oShell = CreateObject("WScript.Shell")
Set objShell = CreateObject("Shell.Application")
If WScript.Arguments.Count > 1 Then
strTargetFolder = WScript.Arguments.Item(1)
@RadAd
RadAd / pipes.md
Last active December 25, 2015 18:19 — forked from anonymous/readme.txt
Game of Pipes for Puzzlescript
@RadAd
RadAd / antrc_pre.bat
Last active April 2, 2023 14:29
Ant build script for java projects.
set JAVA_HOME=%UTILS_DIR%\Devel\jdk1.7_x64
if not exist "%JAVA_HOME%" echo JAVA_HOME doesnt exist & exit /B 1
if not defined RAD_BUILD_HOME set RAD_BUILD_HOME=%DROPBOX_DIR%\Current\Development\Java\Build
set ANT_ARGS=-logger org.apache.tools.ant.listener.AnsiColorLogger
@RadAd
RadAd / Steam Launcher
Last active August 3, 2022 04:52
Mini steam grid launcher
A launcher for your steam games.
@RadAd
RadAd / iecookies.vbs
Created April 9, 2015 02:51
List all ie cookies
Set wshShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
'http://weitips.blogspot.com.au/2006/04/cookie-file-format-of-internet.html
'http://nirsoft.net/utils/internet_explorer_cookies_view.html
Name = ""
Value = ""
Host = ""
void DebugOut(const char* format, ...)
{
char buffer[1024];
va_list args;
va_start(args, format);
vsnprintf(buffer, 1024, format, args);
OutputDebugStringA(buffer);
va_end(args);
}
@RadAd
RadAd / ConsoleFontLink.reg
Created January 17, 2017 01:36
Use font linking to support more unicode ranges in the console
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <windows.h>
FILE* stddbg = NULL;
FILE* wstddbg = NULL;
static DWORD WINAPI OutputDebugStringAProc(_In_ LPVOID lpParameter)
{
typedef int(__stdcall *MSGBOXAAPI)(IN HWND hWnd,
IN LPCSTR lpText, IN LPCSTR lpCaption,
IN UINT uType, IN WORD wLanguageId, IN DWORD dwMilliseconds);
typedef int(__stdcall *MSGBOXWAPI)(IN HWND hWnd,
IN LPCWSTR lpText, IN LPCWSTR lpCaption,
IN UINT uType, IN WORD wLanguageId, IN DWORD dwMilliseconds);
int MessageBoxTimeoutA(IN HWND hWnd, IN LPCSTR lpText,
IN LPCSTR lpCaption, IN UINT uType,
IN WORD wLanguageId, IN DWORD dwMilliseconds);