Skip to content

Instantly share code, notes, and snippets.

View MyFRA's full-sized avatar
🇮🇩
Focusing

To My MyFRA

🇮🇩
Focusing
View GitHub Profile
fetch(agreementObj.file, {}).then(response => {
response.blob().then(blob => {
// Creating new object of PDF file
const fileURL = window.URL.createObjectURL(
blob
);
const fileName = agreementObj.file.split(
"/"
);
@MyFRA
MyFRA / i3 config
Created January 29, 2024 11:18
i3 default config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
<?php
namespace App\Http\Controllers;
use App\Models\PendaftarLayananMandiri;
use App\Models\Penduduk;
use App\Models\PermohonanSurat;
use App\Models\WilayahAdministratif;
use App\Models\WilayahAdministratifRT;
use App\Models\WilayahAdministratifRW;
<?php
/**
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@MyFRA
MyFRA / api-notifications.js
Last active August 1, 2022 15:08
Api Notification
{
"data": {
"total": 153,
"notifications": [
{
"id": 253,
"icon": "http://some-picture.png",
"title": "Notification Title",
"description": "lorem ipsum dolor sit amet",
"is_open": false,
@MyFRA
MyFRA / TrackApi.json
Last active August 2, 2022 02:36
status: ['accepted', 'declined', 'waiting']
{
"data": {
"product_status": ?,
"product_name": "Laptop",
"product_price": 12000,
"product_img": "https://static.wixstatic.com/media/2cd43b_8ba844fdf6e048f6ad77f6a3c71fe22d~mv2.png/v1/fill/w_320,h_245,q_90/2cd43b_8ba844fdf6e048f6ad77f6a3c71fe22d~mv2.png",
"product_tracks": [
{
"transit": "Jakarta",
"date": "2022-09-21 08:30:12",
{
"data": {
"all": [
{
"platform_img": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQfQeCi0Tf2FbdAoL_vFOXI-_VrVuINuceFaiJ9VsZlyIBcTzQokELd_NXzC--E0J2zkL4&usqp=CAU",
"product_img": "https://cdn0-production-images-kly.akamaized.net/9aGSak7Dvm1pLHj5YdlGpsa5hSw=/640x360/smart/filters:quality(75):strip_icc():format(jpeg)/kly-media-production/medias/3150608/original/034688400_1591913197-ps5-2.jpg",
"product_status": "completed",
"product_transaction_id": "fsdx04342n43",
"product_name": "ps5 complete",
"product_price": 56000
{
"openapi": "3.0.1",
"info": {
"title": "DEMO API",
"description": "Api Documentation for DEMO API Project",
"termsOfService": "http://swagger.io/terms/",
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
},
// Superadmin
User::create([
'name' => 'Author',
'email' => 'author@mail.com',
'password' => Hash::make('authortamvan'),
'role' => 'superadmin',
'number_phone' => '085865721251'
]);
// General User
<!DOCTYPE html>
<html>
<head>
<title>
@if($domain->stepper_domain->custome->title)
{{ $domain->stepper_domain->custome->title }}
@else
Welcome to the Wedding of {{ ucfirst($domain->stepper_domain->custome->change_name ? $data->nick_female : $data->nick_male) }} & {{ ucfirst($domain->stepper_domain->custome->change_name ? $data->nick_male : $data->nick_female) }} &#8211; {{ ucfirst($domain->stepper_domain->kota) }}, {{\Carbon\Carbon::parse($domain->stepper_domain->waktu)->format('d F Y')}}
@endif
</title>