Copy script berikut dan beri nama backup.php. Simpan ke server lama.
#!/usr/bin/php
// Postfixadmin (http://postfixadmin.sourceforge.net/) to Zimbra
public class MainMatriks { | |
public static void main(String[] args) { | |
// buat object Matriks dengan panjang array 3 x 3 | |
Matriks m = new Matriks(3, 3); | |
// set nilai baris ke 0 kolom ke 0 dengan angka 1 | |
m.setNilai(1, 0, 0); | |
// set nilai baris ke 0 kolom ke 1 dengan angka 2 | |
m.setNilai(2, 0, 1); | |
m.setNilai(3, 0, 2); |
public class MainSorting { | |
public static void main(String[] args) { | |
// buat object Sorting dengan panjang array max = 10 | |
Sorting srt = new Sorting(10); | |
// Data siswa | |
Siswa1 sis1 = new Siswa1("Bagas", 60); | |
Siswa1 sis2 = new Siswa1("Udi", 80); |
<?php | |
/** | |
* Controller is the customized base controller class. | |
* All controller classes for this application should extend from this base class. | |
*/ | |
class RestController extends CController | |
{ | |
/** | |
* @var string the default layout for the controller view. Defaults to '//layouts/column1', | |
* meaning using a single column layout. See 'protected/views/layouts/column1.php'. |
#!/usr/bin/env python | |
from PyQt4 import QtCore, QtGui | |
import main_ui | |
import menu_ui | |
import input_pin_ui | |
import saldo_ui | |
import ubah_pin_ui | |
import ambil_beras_ui | |
import proses_ui |
/** | |
* Program untuk membaca arus, gas, suhu, kelembaban, jarak | |
*/ | |
#include <Streaming.h> | |
#include <Ethernet.h> | |
#include <SPI.h> | |
#include <MemoryFree.h> | |
#include <Agentuino.h> | |
#include <Flash.h> |
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", KERNELS=="1-1.2", SYMLINK+="serial1" | |
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", KERNELS=="1-1.3", SYMLINK+="serial2" | |
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", KERNELS=="1-1.4", SYMLINK+="serial3" | |
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", KERNELS=="1-1.5", SYMLINK+="serial4" |
#include <elapsedMillis.h> | |
elapsedMillis timer0; | |
#define interval 300000 | |
// WARNING !!! | |
// HIGH -> default relay 2 channel | |
// OUTPUT | |
const int PIN_COMPRESSOR = 2; |
/** | |
* Program untuk jarak | |
*/ | |
#include <Streaming.h> | |
#include <Ethernet.h> | |
#include <SPI.h> | |
#include <MemoryFree.h> | |
#include <Agentuino.h> | |
#include <Flash.h> |
// WARNING !!! | |
// HIGH -> default relay 2 channel | |
// OUTPUT | |
const int PIN_COMPRESSOR = 2; | |
const int PIN_FAN = 4; | |
const int PIN_LAMPU = 7; | |
const int PIN_HEATER = 8; | |
const int PIN_FIRE_ON = 12; | |
const int PIN_FIRE_OFF = 13; |