Skip to content

Instantly share code, notes, and snippets.

View anta40's full-sized avatar

Andre Tampubolon anta40

  • Jakarta, Indonesia
  • 03:43 (UTC +07:00)
View GitHub Profile
@anta40
anta40 / gist:4557461
Created January 17, 2013 16:51
bingung
import bb.cascades 1.0
import bb.cascades.pickers 1.0
NavigationPane {
id: navigationPane
Page {
titleBar: TitleBar {
title: qsTr ("ExiView")
}
@anta40
anta40 / gist:4557512
Created January 17, 2013 16:59
bingung lagi
import bb.cascades 1.0
import bb.cascades.pickers 1.0
NavigationPane {
id: navigationPane
Page {
titleBar: TitleBar {
title: qsTr ("ExiView")
}
@anta40
anta40 / gist:4557752
Created January 17, 2013 17:28
main.qml
import bb.cascades 1.0
import bb.cascades.pickers 1.0
NavigationPane {
id: navigationPane
// The initial page
Page {
titleBar: TitleBar {
title: qsTr ("ExiView")
import bb.cascades 1.0
import bb.cascades.pickers 1.0
NavigationPane {
id: navigationPane
// The initial page
Page {
titleBar: TitleBar {
title: qsTr ("ExiView")
<html>
<head>
<title>Registration Form</title>
</head>
<script language="javascript">
function isEmpty(){
if (document.forms['input_form'].imsi.value == "" || document.forms['input_form'].msisdn.value == "" || document.forms['input_form'].sdid.value == ""){
alert("All required values must be inputted.");
return false;
/**
* Copyright (c) E.Y. Baskoro, Research In Motion Limited.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
public static void deleteFile(String path) {
if (path.startsWith("file://")) {
// do nothing
} else if (!path.startsWith("/"))
path = "file:///" + path;
else if (path.startsWith("//"))
path = "file:/" + path;
else
path = "file://" + path;
/**
* This is how to use ScreenSplash.java
*/
package com.durianapp.brandapp;
import com.durianapp.brandapp.ui.ScreenSplash;
public class BrandApp extends UiApplication {
public BrandApp() {
@anta40
anta40 / Lakban.java
Last active August 29, 2015 14:06 — forked from amrishodiq/Lakban.java
package com.durianapp.kertasdanlakban;
import net.rim.device.api.ui.UiApplication;
public class Lakban extends UiApplication {
public Lakban() {
pushScreen(new LakbanScreen());
}
public static void main(String[] args) {
/**
* Method to get all bytes from a file.
*
* @param path
* @return
* @throws IOException
*/
public static byte[] getFileContent(String path) throws IOException {
FileConnection file = null;