Skip to content

Instantly share code, notes, and snippets.

View misugijunz's full-sized avatar

Oscar Kurniawan misugijunz

View GitHub Profile
@misugijunz
misugijunz / ilearnentrepreneurship_sessions_atamerica_videolinks.txt
Created November 29, 2012 08:09
ilearnentrepreneurship sessions atamerica videolinks
@misugijunz
misugijunz / gist:3820720
Created October 2, 2012 16:28
CascadesAppInitSample
CowBellApp::CowBellApp()
{
// Obtain a QMLDocument and load it into the qml variable, using build patterns.
QmlDocument *qml = QmlDocument::create("asset:///cowbell.qml");
// If the QML document is valid, we process it.
if (!qml->hasErrors()) {
// Create the application Page from QMLDocument.
Page *appPage = qml->createRootObject<Page>();
@misugijunz
misugijunz / keyboardasha.java
Created August 1, 2012 13:53
keyboard handling asha
protected void keyPressed(int key) {
System.out.println("Key pressed ascii code: " + key);
char temp = (char)key; //casting to char;
//silahkan diolah
}
package com.ts.test.stp;
import com.ts.test.stp.util.FPS;
import nme.Assets;
import com.ts.test.stp.Scene;
import nme.display.Bitmap;
import nme.events.Event;
import nme.events.MouseEvent;
import nme.Lib;
import nme.geom.Point;
@misugijunz
misugijunz / oophelloworld.java
Created December 19, 2010 15:03
is your Java's "Hello World" OOP enough?
interface Printer {
void print(Message message);
}
class Message {
private String message;
public Message(String message) {
this.message = message;
}
@misugijunz
misugijunz / helloworldprocedural.java
Created December 19, 2010 14:51
"usual" "hello world" Java
public class Hello {
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
@misugijunz
misugijunz / helloworldprocedural.java
Created December 19, 2010 14:49
Hello World procedural
public class Hello {
public static void main(String[] args) {
System.out.println("Hello World!"); }
}