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
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace LockScreenApp
{
public partial class Form1 : Form
{
[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
@verdipratama
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
verdipratama / .env
Created June 10, 2022 12:30 — forked from eldadfux/.env
Appwrite 0.14 - Stack
_APP_ENV=production
_APP_LOCALE=en
_APP_OPTIONS_ABUSE=enabled
_APP_OPTIONS_FORCE_HTTPS=disabled
_APP_OPENSSL_KEY_V1=your-secret-key
_APP_DOMAIN=localhost
_APP_DOMAIN_TARGET=localhost
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
@verdipratama
verdipratama / AppServiceProvider.php
Created November 24, 2021 12:53 — forked from simonhamp/AppServiceProvider.php
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()
<?php
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
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
post
xss cheat sheet

# xss-cheat-sheet

# Basics Xss

HTML Context - Simple Tag Injection

@verdipratama
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 http://jsfiddle.net/a84enL8k/.
sample.png
@verdipratama
verdipratama / README.md
Created May 12, 2021 11:26 — forked from greyscaled/README.md
Sequelize + Express + Migrations + Seed Starter