Skip to content

Instantly share code, notes, and snippets.

View teramuza's full-sized avatar
🏠
Stay Code

Teuku Raja teramuza

🏠
Stay Code
View GitHub Profile
@teramuza
teramuza / Controller.php
Created April 6, 2018 01:22
Can't Upload Image(article)
<?php
class Articles extends CI_Controller {
var $session_user;
function __construct() {
parent::__construct();
Utils::no_cache();
if (!$this->session->userdata('logged_in')) {
@teramuza
teramuza / articles.php
Created April 19, 2018 08:00
Undefined index : notif
<?php
function update(){
$data['title'] = "Update Artikel";
$data['session_user'] = $this->session_user;
if(empty($this->uri->segment('3'))){ redirect('articles');}
$id = $this->uri->segment('3');
$data['articles'] = $this->articlesModel->getArticleWhere($id);
$this->load->library('upload');
<?php
class database
{
var $dbhost = 'localhost';
var $dbuser = 'raja';
var $dbpass = 'min1011';
var $dbname = 'db_oop1';
@teramuza
teramuza / lat11_c.cpp
Created May 21, 2019 16:10
E-Learning Praktikum Algoritma Pertemuan 11 (Structure) Latihan C
#include <iostream>
#include <cstdio>
#include <cctype>
using namespace std;
struct SiswaAdapter{
char Name[50];
char Addr[100];
char gender;
const AppTabNavigator = createBottomTabNavigator({
home : {
screen : Home,
navigationOptions :{
title : 'Beranda',
}
},
favorite : {
screen : Favorite,
navigationOptions :{
#include <iostream>
#define MAX 10
using namespace std;
struct Stack {
int top, data[MAX];
} Tumpukan;
void init() {
Tumpukan.top = -1;
#include <iostream>
#define MAX 10
using namespace std;
struct Queue {
int front, rear, counter, data[MAX];
} Antrian;
void init() {
Antrian.rear = -1;
@teramuza
teramuza / sincirlink.cpp
Last active December 16, 2019 08:23
Singly Circular Linked List (id-ID)
@teramuza
teramuza / semantic-commit-messages_id-ID.md
Last active January 15, 2020 08:46 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

Perubahan kecil pada cara penulisan Commit yang menjadikan kalian seorang developer yang lebih baik.

Format: <type>(<scope>): <subject>

<scope> bersifat optional

Contoh

@teramuza
teramuza / lat9_1.cpp
Created May 9, 2020 13:54
per8 - struktur data
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int Nilai[20];
int i, k, N;
int temp, jarak, s;
cout << "Masukan banyak bilangan: ";