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 / pvm.md
Created July 16, 2022 09:16
php version manager

Source: andrej 2021-02-26 13:38:56

  1. Have a directory for the user for shell scripts:
mkdir ~/bin
@Parables
Parables / phpcs.xml
Created September 11, 2021 17:47
My custom version
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>PHPCS configuration file.</description>
<!-- check all files in the app directory, feel free to add more files with:
<file>FOLDER NAME</file>
-->
<file>app</file>
<file>bootstrap</file>
@Parables
Parables / .vscode--extensions.json
Last active March 11, 2024 20:24
VS Code Laravel Recommended Extensions
{
"recommendations": [
"aaron-bond.better-comments",
"adpyke.codesnap",
"adrianwilczynski.alpine-js-intellisense",
"ahinkle.laravel-model-snippets",
"ahmadawais.shades-of-purple",
"aibnuhibban.laravel-smart-command",
"alefragnani.project-manager",
"amiralizadeh9480.laravel-extra-intellisense",
@Parables
Parables / fish_alias.md
Created June 12, 2021 03:26 — forked from tikolakin/fish_alias.md
Create alias in Fish shell and save this as a permanent function

Directly from CLI

alias x='exit'
funcsave x

or create a file in

~/.config/fish/functions 

with name

#Option 1
set -U fish_user_paths /usr/local/bin $fish_user_paths
#option 2
set PATH $PATH /usr/local/bin
export PATH
function ll
ls -lh $argv
end
@Parables
Parables / App.svelte
Last active June 5, 2021 20:56
This is the test version of the source code used to make Dynamic Form Building using Classes
<script>
import FormBuilder from './FormBuilder.svelte'
import { Form } from './Form'
let form = new Form({id: "Test Form", sections: []})
let title ="New Section"
function addSection(){
form= form.addSection({title: title, rows:[]});
form.print()
}
@Parables
Parables / dateFormat.js
Last active August 16, 2020 06:28
Format date using tokens without any 3rd party libraries
let days = [
{ s: 'Sun', l: 'Sunday' },
{ s: 'Mon', l: "Monday" },
{ s: 'Tue', l: 'Tuesday' },
{ s: 'Wed', l: 'Wednesday' },
{ s: 'Thu', l: 'Thursday' },
{ s: 'Fri', l: 'Friday' },
{ s: 'Sat', l: 'Saturday' }
];

Module Workers Polyfill npm version

This is a 1.1kb polyfill for Module Workers.

It adds support for new Worker('..',{type:'module'}) to all modern browsers (those that support fetch).

Usage

Copy module-workers-polyfill.js to your web directory, then load it using an import or a script tag. It just needs to be loaded before instantiating your Worker.

@ayende
ayende / ravendb.php
Last active November 27, 2021 21:15
<?php
class RavenDB {
var $server;
var $database;
var $pem;
function __construct($server, $database, $pem = NULL) {
$this->server = $server;
$this->database = $database;
@Rich-Harris
Rich-Harris / what-is-svelte.md
Last active March 27, 2024 06:09
The truth about Svelte

I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.

But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.

Svelte is a language.

Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?

A few projects that have answered this question: