Skip to content

Instantly share code, notes, and snippets.

@Bunix
Bunix / vue-datatable.md
Created September 11, 2020 14:37 — forked from plmrlnsnts/vue-datatable.md
Datatable component for Vue and Tailwind CSS

Keep in mind that this implementation requires an api for fetching data, and assumes the following response schema:

{
    "perPageOptions": [
        15, 50, 100
    ],
    "actions": [
        "Delete all", "Publish All", "Unpublish All"
    ],
@Bunix
Bunix / stacked_prs.md
Created August 30, 2020 08:26 — forked from Jlevyd15/stacked_prs.md
Stacked PRs with Git and Github

How to create a stacked PR with git and Github 📚

Create a feature branch from the master brach

  • from the master branch create a feature branch called feat1
  • git checkout master -> git checkout -b feat1

Make some changes and commit them

  • git add .
  • git commit
@Bunix
Bunix / README.md
Created April 26, 2020 00:15
Laravel authentication with multiple user roles

Getting Started

For starters, whip up a new Laravel application with auth scaffolding.

laravel new multi-auth --auth

Migrations

@Bunix
Bunix / pldt-home-fibr-an5506-04-fa-rp2627-advanced-settings.md
Created February 5, 2020 07:23 — forked from kleo/backspace.md
PLDT HOME FIBR AN5506-04-FA RP2627 Advanced Settings

PLDT HOME FIBR AN5506-04-FA RP2627 Advanced Settings


[Notice]

Project moved to https://github.com/kbeflo/fiberhomesuperadmin due to excessive amount of unicorns.
Gist here will not be updated anymore
Discussion here on Gist is still allowed but I strongly recommend going over to the repository or Discord chat

@Bunix
Bunix / autocomplete.php
Created March 18, 2019 10:11 — forked from imranismail/autocomplete.php
Laravel And JqueryUI's Autocomplete Plugin
//SearchController.php
public function autocomplete(){
$term = Input::get('term');
$results = array();
$queries = DB::table('users')
->where('first_name', 'LIKE', '%'.$term.'%')
->orWhere('last_name', 'LIKE', '%'.$term.'%')
->take(5)->get();
@Bunix
Bunix / CalculatePostRating.php
Created October 13, 2018 05:03 — forked from johndavedecano/CalculatePostRating.php
Calculate Post Rating
<?php
namespace App\Jobs;
use App\Entities\Review;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
FROM php:7.0.4-fpm
RUN apt-get update && apt-get install -y libmcrypt-dev \
mysql-client libmagickwand-dev --no-install-recommends \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& docker-php-ext-install mcrypt pdo_mysql