Skip to content

Instantly share code, notes, and snippets.

View verdipratama's full-sized avatar
I have no idea how to code

Verdi Pratama verdipratama

I have no idea how to code
View GitHub Profile
verdipratama / BottomSheetCustom.dart
Created August 19, 2022 07:45 — forked from IshanFx/BottomSheetCustom.dart
BottomSheet Full Height
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter/material.dart';
const Duration _kBottomSheetDuration = Duration(milliseconds: 200);
const double _kMinFlingVelocity = 700.0;
const double _kCloseProgressThreshold = 0.5;
verdipratama / .env
Created June 10, 2022 12:30 — forked from eldadfux/.env
Appwrite 0.14 - Stack
verdipratama / AppServiceProvider.php
Created November 24, 2021 12:53 — forked from simonhamp/AppServiceProvider.php
A pageable Collection implementation for Laravel
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
public function boot()
verdipratama /
Created November 10, 2021 15:51 — forked from RayhanYulanda/
Struktur folder Laravel dengan pendekatan DDD
function get_week_dates($month)
$start = new DateTime($month.'-01');
$end = new DateTime();
$end->setDate($start->format('Y'), $start->format('m'), $start->format('t'));
$interval = DateInterval::createFromDateString('1 day');
$period = new DatePeriod($start, $interval, $end);
verdipratama / InfiniteScroll.js
Last active October 23, 2021 19:49
React infinite scroll in few lines!
import React, { useEffect, useState, useRef } from 'react'
const divStyle = {
color: 'blue',
height: '250px',
textAlign: 'center',
padding: '5px 10px',
background: '#eee',
marginTop: '15px',
layout title
xss cheat sheet

# xss-cheat-sheet

# Basics Xss

HTML Context - Simple Tag Injection

verdipratama / sample.png
Created October 16, 2021 22:11 — forked from jirutka/sample.png
Nested numbered list with correct indentation in CSS. Live example at
verdipratama /
Created May 12, 2021 11:26 — forked from greyscaled/
Sequelize + Express + Migrations + Seed Starter
verdipratama /
Created February 22, 2021 07:04 — forked from NigelEarle/
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables