Skip to content

Instantly share code, notes, and snippets.

View hafizhfadh's full-sized avatar

Hafizh Fadhlurrohman hafizhfadh

View GitHub Profile
@hafizhfadh
hafizhfadh / Response.json
Created October 23, 2019 01:36
Response BP Rumah Coding
{
"http://localhost:8000/api/banners": [
{
"success": true,
"data": [
{
"id": 5,
"banner": "banners/1571565673_WhatsApp Image 2019-09-19 at 10.20.59.jpeg",
"url": "https://laravelcollective.com/docs/6.0/html#drop-down-lists",
"status": "0",
import 'package:flutter/material.dart';
class WidgetAppBar extends StatefulWidget implements PreferredSizeWidget {
final double height;
final bool automaticallyImplyLeading;
final Widget leading;
@override
final Size preferredSize;
@hafizhfadh
hafizhfadh / RFID-Pi.md
Created February 19, 2020 09:26 — forked from andrewvaughan/RFID-Pi.md
Reading RFID via UART on the RaspberryPi

RFID via UART on RaspberryPi

Download the Latest Version of Raspbian Lite

This can be downloaded here. It is highly recommended to download the Lite version. You can also download the full version, but most of the image is just bloat for this project.

Prepare the MicroSD Card

It is recommended to get a Class 10 or better card to improve speeds. Lower-quality cards will take tremendously longer to format, configure, and load on the RaspberryPi.

/// Created by Hafizh Fadhlurrohman on 05/03/20.
/// Al Wafi Islamic Boarding School
/// hafizhfadh@gmail.com
import 'dart:io'; //InternetAddress utility
import 'dart:async'; //For StreamController/Stream
import 'package:connectivity/connectivity.dart';
class ConnectionStatusSingleton {