Skip to content

Instantly share code, notes, and snippets.

View ilhamarrouf's full-sized avatar
🏠
Working from home

Ilham Arrouf ilhamarrouf

🏠
Working from home
View GitHub Profile
@ilhamarrouf
ilhamarrouf / RandomExample.java
Created December 9, 2018 12:51
Intorduction to Programming
import java.util.Random;
import java.util.Scanner;
public class RandomExample {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
int random;
System.out.print("Masukkan bilangan a: ");
int a = Integer.parseInt(reader.nextLine());
System.out.print("Masukkan bilangan b: ");
{
"data": [
{
"id": 1,
"name": "Ilham Arrouf",
"username": "ilhamarrouf",
"email": "[email protected]"
},
{
"id": 2,
@ilhamarrouf
ilhamarrouf / MY_Email.php
Created September 22, 2018 02:04
Mailgun Codeigniter Library
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
use Mailgun\Mailgun;
class MY_Email extends CI_Email
{
// Replace the below with your Mailgun key and domain
var $_mailgun_key = 'key-XXX';
var $_mailgun_domain = 'XXX.mailgun.org';
@ilhamarrouf
ilhamarrouf / fill-category.php
Created August 13, 2018 06:37
testing mysql
<?php
require __DIR__ . '/vendor/autoload.php';
$dsn = 'mysql:dbname=db1;host=127.0.0.1';
$user = 'root';
$password = '(disensor)';
try {
$dbh = new PDO($dsn, $user, $password);
@ilhamarrouf
ilhamarrouf / settings.json
Last active June 15, 2018 03:28
My config sublime 3
{
"auto_indent": true,
"auto_match_enabled": true,
"detect_indentation": true,
"draw_centered": false,
"font_size": 9,
"ignored_packages":
[
"Vintage"
],
@ilhamarrouf
ilhamarrouf / .gitignore
Created March 31, 2018 07:31
.gitgnore for python project
config/__pycache__/
instance/__pycache__/
newsapi/home/__pycache__/
newsapi/news/__pycache__/
newsapi/news_status/__pycache__/
newsapi/news_topic/__pycache__/
.vscode/
# Byte-compiled / optimized / DLL files
__pycache__/
-- MySQL Script generated by MySQL Workbench
-- Sat Feb 3 14:56:59 2018
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
@ilhamarrouf
ilhamarrouf / .editorconfig
Created February 15, 2018 03:42
editorconfig for javascript
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls
<?php
namespace App\Traits;
use App\Models\User;
use DateTime;
use GuzzleHttp\Psr7\Response;
use Illuminate\Events\Dispatcher;
use Laravel\Passport\Bridge\AccessToken;
use Laravel\Passport\Bridge\AccessTokenRepository;
@ilhamarrouf
ilhamarrouf / docker-compose.yml
Created November 1, 2017 17:10
Docker compose php5.6-apache
php:
image: php:5.6-apache
ports:
- "8080:80"
volumes:
- ./:/var/www/html