Skip to content

Instantly share code, notes, and snippets.

@GoranM
GoranM / build.xml
Created June 8, 2014 16:50
Ant build file for libgdx 1.x.x desktop projects.
<project name="project" default="run">
<property name="verbose" value="no" />
<!-- Set the package property to what it should be, for your project -->
<property name="package" value="com.orgname.projname" />
<!-- On Linux, and at this time, this is the right path, but you might have to modify this -->
<property name="modules" value="${user.home}/.gradle/caches/modules-2/files-2.1" />
<!-- Everything below should just work -->
@GoranM
GoranM / columnsquish.c
Created October 18, 2013 22:26
Column squish/packing demonstration.
// Column squish demo - Goran Milovanovic, 2013
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#define ROWS 5
#define COLS 20
#define STR_COLS "20"
@GoranM
GoranM / change.c
Created April 18, 2013 08:38
r/learnprogramming: Change example for peppercorn12.
#include <stdio.h>
int getInfo(){
int num;
printf("Enter the number of cents: ");
scanf("%d%*c", &num);
return (num);
}
void getChange(int cents, int coins[4]){