Skip to content

Instantly share code, notes, and snippets.

View virbo's full-sized avatar
💭
I may be slow to respond.

Yusuf Ayuba virbo

💭
I may be slow to respond.
View GitHub Profile
@virbo
virbo / Welcome.php
Last active April 18, 2016 05:49
Application/Welcome.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Welcome extends CI_Controller {
/**
* @author Yusuf Ayuba
* @since 2016
*/
@virbo
virbo / Alumni_model.php
Last active April 18, 2016 04:18
models/Alumni_models.php
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Alumni_model extends CI_Model
{
/**
* @author Yusuf Ayuba
* @since 2016
*/
public function __construct()
@virbo
virbo / Tabel modul_alumni
Last active April 18, 2016 04:25
Tabel modul_alumni
CREATE TABLE `modul_alumni` (
`id_alumni` int(11) NOT NULL,
`nm_alumni` varchar(50) NOT NULL,
`id_wil` char(10) NOT NULL,
`tgl_input` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
@virbo
virbo / index.html
Created April 13, 2016 14:52 — forked from k4ml/index.html
PHP SSE Demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<script>
var source = new EventSource('updates.php');
source.onmessage = function(e) {
var updates;