Skip to content

Instantly share code, notes, and snippets.

View defrindr's full-sized avatar
👋
Hi there

Defri Indra Mahardika defrindr

👋
Hi there
View GitHub Profile
<?php
/**
* Defri Indra M
* 2021-04-14
*/
class Connection
{
protected $connection;
#include <stdio.h>
#include <stdlib.h>
main() {
int * bil, i, j, n, hsl;
printf("Masukkan batas bilangan : ");
scanf("%d", & n);
bil = (int * ) malloc(n * sizeof(int));
i = 0;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct simpul {
char nama[25];
int nrp;
struct simpul * prev;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct simpul {
char nama[25];
int nrp;
struct simpul * next;

Semester 2

ASD

Tugas Malloc

@defrindr
defrindr / single_linked_list.c
Last active March 22, 2021 13:16
Tugas single linked list
#include <stdio.h>
#include <stdlib.h>
struct Mahasiswa {
char * Nama;
int Nrp;
struct Mahasiswa * Next;
};
@defrindr
defrindr / _yii2_custom_error_page.md
Created March 19, 2021 06:16
How to custom error page in yii2 ??

In controllers\SiteController.php change the code like this.

    public function actions()
    {
        return [
            'error' => [
                'class' => 'yii\web\ErrorAction',
                'layout' => 'error-layout', // the rendered layout
 'view' =&gt; 'error-page' // the rendered view
#include <stdio.h>
#define MAX 100
typedef struct {
int Item[MAX];
int Front;
int Rear;
int Max;
int Is_Max;
<?php
/**
* Defri indra mahardika
* 08-03-2021
* Alphabet Excel
*/
$alphabet = "C";
$suffix = "";
$number = 5;
$looping = 100;