Skip to content

Instantly share code, notes, and snippets.

View Parables's full-sized avatar
💭
Contributing to Open Source projects... #GivingBack2éCommunity

Parables Boltnoel Parables

💭
Contributing to Open Source projects... #GivingBack2éCommunity
  • Ghana
View GitHub Profile
@Parables
Parables / BrowserConsole.php
Last active October 27, 2021 05:37
BrowserConsole.php
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Monolog\Handler\BrowserConsoleHandler;
class BrowserConsole
{
@Parables
Parables / ravendb.php
Created November 27, 2021 21:15 — forked from ayende/ravendb.php
<?php
class RavenDB {
var $server;
var $database;
var $pem;
function __construct($server, $database, $pem = NULL) {
$this->server = $server;
$this->database = $database;
@Parables
Parables / multiple-repository-and-identities-git-configuration.md
Created January 6, 2022 17:44 — forked from bgauduch/multiple-repository-and-identities-git-configuration.md
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@Parables
Parables / main.dart
Last active January 12, 2022 12:53
Zizag triples in Dart
// Author: Parables Boltnoel
void main() {
var numbers = [1, 2, 1, 3, 4];
findZigZagTriples(numbers);
}
//
// This function determines whether three numbers a, b, and c is a zigzag triples
#!/bin/bash
# curl -s https://laravel.build/projectName
echo "Creating a new Laravel Sail project..."
projectName="$1"
@Parables
Parables / composer.json
Created April 22, 2022 02:00 — forked from mfurlend/composer.json
composer require git repository
{
"name": "my_vendor_name/my_package",
"description": "My Package Description",
"license": "GPL-3.0",
"autoload": {
"classmap": [ // search these directories for classes
"lib/"
]
},
"repositories": {
@Parables
Parables / analysis_options.yaml
Last active May 20, 2022 20:36 — forked from rydmike/analysis_options.yaml
RydMike lints v1.2.9 - Personal preferences and my starting point for my Dart & Flutter linter rules setup
# RydMike LINTER Preferences v1.2.9
#
# All original source credit and thanks to @rydmike (https://gist.github.com/rydmike)
# for his Gist here:
# https://gist.github.com/rydmike/fdb53ddd933c37d20e6f3188a936cd4c
#
# Include `all_lint_rules.dart` file, which lists all available lint rules as
# enabled.
# Source: https://dart-lang.github.io/linter/lints/options/options.html
#
@Parables
Parables / OpenSourceCRM.rst
Created May 24, 2022 14:22 — forked from cstroe/OpenSourceCRM.rst
A distilled list of open-source CRM software
@Parables
Parables / alert.blade.php
Last active June 20, 2022 23:37
Alpine Components for Laravel
@props(['message' => 'THis is a demo msg', 'type' => 'danger', 'duration' => 5000, 'position' => 'bottom-center', 'autoDismiss' => true])
<div x-data="alert('{{ $message }}', '{{ $type }}', '{{ $duration }}', '{{ $position }}', '{{ $autoDismiss }}')" x-on:click="dismissAlert" x-id="['alert']"
:class="{
'text-light-area-color dark:text-light-area-color-dark bg-dark-area-color dark:bg-dark-area-color-dark': type ===
'basic',
'text-white bg-red-500': type ===
'danger',
'text-white bg-green-500': type ===
'success',
@Parables
Parables / apline-snippets.js
Created June 30, 2022 20:53
How to AlpineJS - Simple reusable components for AlpineJS
import plupload from "plupload";
export let alert = (
message = "Success",
details = [],
type = "default",
duration = 5000,
position = "bottom-center",
autoDismiss = true
) => ({