Showing posts with label WebApp. Show all posts
Showing posts with label WebApp. Show all posts

Saturday 10 May 2014

Bola Asik (aplikasi game menggunakan Smallbasic)

Copas code berikut ini ke editor bahasa program Smallbasic kamu dan jalankan (run/F5):

bola1 = Shapes.AddEllipse(25,25)
GraphicsWindow.BrushColor = "Red"
bola2 = Shapes.AddEllipse(25,25)
GraphicsWindow.BrushColor = "Green"
bola3 = Shapes.AddEllipse(25,25)
awal:
shapes.animate(bola1, Math.GetRandomNumber(500), Math.GetRandomNumber(500),1000)
shapes.animate(bola2, Math.GetRandomNumber(500), Math.GetRandomNumber(500),1000)
shapes.animate(bola3, Math.GetRandomNumber(500), Math.GetRandomNumber(500),1000)
Program.Delay(1000)
Goto awal

Thursday 13 March 2014

Deploying an embedded web app

1. Create script
script.google.com

Hosting / serving web site buatan sendiri menggunakan googledrive

With Drive, you can make web resources — like HTML, CSS, and Javascript files — viewable as a website. Here's how:
  1. Create a new folder in Drive and share it as "Public on the web."
  2. Upload your HTML, Javascript, and CSS files to this folder.
  3. Open the HTML file and click Open in the bottom-right corner.
  4. Click the "Preview" button in the toolbar.
  5. Share the URL that looks like "www.googledrive.com/host/..." from the preview window and anyone can view your web page.

Google Drive does not support web resources that make use of server-side scripting languages like PHP.

Source: https://support.google.com/drive/answer/2881970?hl=en