Skip to content

Instantly share code, notes, and snippets.

View robzlabz's full-sized avatar
🐳
Working from home

Robbyn Rahmandaru robzlabz

🐳
Working from home
  • RobzLabz Software Technology
  • Yogyakarta, Indonesia
View GitHub Profile
@robzlabz
robzlabz / DaftarWebPenting.md
Created August 5, 2015 01:30
Daftar website penting dan menarik
@robzlabz
robzlabz / Latihan.md
Created September 22, 2015 01:47
Latihan

#Latihan Batas pengiriman ulang email ini hingga tanggal 30 september, jadi tidak terlalu terburu buru

Beberapa hal yang ingin saya tahu adalah.

  1. Tolong tuliskan 1 artikel yang memuat 350 kata dan di bagi dalam 4 paragraf. Kata kunci yang digunakan bisa apa saja. Kata kunci di tulis 1x dalam 1 paragraf dan di tandai dengan bold/underline

  2. Tolong buat 2 paragraf yang memiliki beberapa frase seperti yang di cantumkan dalam attachment.

  3. Tolong review halaman yang di cantumkan di bawah ini, lalu buat tulisan review lain dengan hal yang sama. Hanya 1 paragraf dan terdiri dari 100-150 kata.

@robzlabz
robzlabz / wp.sh
Last active February 21, 2018 07:00
Install Wordpress
wget https://wordpress.org/latest.zip
unzip latest.zip
cd wordpress
mv * ../
cd ..
rm latest.zip
rmdir wordpress
read -p "Database Name : " dbname
read -p "Database User : " dbuser
read -p "Database Password : " dbpass
id: 1207
name: zerinabanu
environments:
api:
domain: api.zerinabanu.com
database: zerinabanu-serverless
storage: zerinabanu
memory: 1024
cli-memory: 512
build:
@robzlabz
robzlabz / index.js
Created June 27, 2020 00:38
express js
const express = require('express')
const app = express()
app.get('/', function (req, res) {
res.send('Hello World')
})
app.listen(3000)
@robzlabz
robzlabz / LaravelHttp.php
Created June 29, 2020 22:46
Laravel HTTP
<?php
$response->body() : string;
$response->json() : array|mixed;
$response->status() : int;
$response->ok() : bool;
$response->successful() : bool;
$response->failed() : bool;
$response->serverError() : bool;
$response->clientError() : bool;
<?php
use Illuminate\Support\Facades\Http;
// kirim request
Http::get('...');
Http::post('...');
Http::put('...');
Http::delete('...');
<?php
// set timeout
Http::timeout($second)->get('...');
// retry
Http::retry($times, $wait)->post('...');
// throw
Http::post('...')->throw()->json();
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class MemberController extends Controller
{
//
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class MemberController extends Controller
{
public function index()
{