Skip to content

Instantly share code, notes, and snippets.

View oluwaseye's full-sized avatar
💭
I may be slow to respond.

Oluwaseye oluwaseye

💭
I may be slow to respond.
View GitHub Profile
@oluwaseye
oluwaseye / AppServiceProvider.php
Created February 26, 2021 17:54 — 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()

Generic

Shortcut Expanded Description Flutter Docs
alertDialog Alert Dialog Creates a showDialog that returns with AlertDialog View Docs
animatedBldr Animated Builder Creates an Animated Builder. The child widget is passed to the builder View Docs
aspectRatio AspectRatio Creates an AspectRatio View Docs
build Build Method Describes the part of the user interface represented by the widget.
column Column Creates a Column Widget View Docs
container Container Creates a Container Widget View Docs
customClipper Custom Clipper Used for creating custom shapes [View Docs](https://api.flutter.
@oluwaseye
oluwaseye / oneliners.js
Created April 1, 2019 19:33 — forked from EmmanuelBeziat/oneliners.js
👑 Awesome one-liners you might find useful while coding.
const headings = [ ... document.querySelectorAll('h1') ]
[{id: 1}, {id: 2}].map(x => x.id)
// [1,2]
// By @coderitual
// https://twitter.com/coderitual/status/1112297299307384833
// Remove any duplicates from an array of primitives.