Skip to content

Instantly share code, notes, and snippets.

View raliqala's full-sized avatar
🏠
Working from home

Topollo raliqala

🏠
Working from home
View GitHub Profile
@raliqala
raliqala / Setting_upa_new_repo.md
Created October 13, 2025 07:31 — forked from alexpchin/Setting_upa_new_repo.md
Create a new repository on the command line

Setting up a new Git Repo

##Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"

git remote add origin git@github.com:alexpchin/.git

@raliqala
raliqala / prd.md
Created April 12, 2025 16:35 — forked from burkeholland/prd.md
TheUrlist PRD

Project Requirements Document: The Urlist Website

The following table outlines the detailed functional requirements of The Urlist website.

Requirement ID Description User Story Expected Behavior/Outcome
FR001 Creating a New URL List As a user, I want to be able to start a new, empty list so I can begin adding URLs. The system should provide a clear way for the user to initiate the creation of a new list, potentially presenting an empty list view or an "add new list" button.
FR002 A
@raliqala
raliqala / GitCommitEmoji.md
Created February 27, 2025 11:42 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@raliqala
raliqala / tom-select.blade.php
Created April 25, 2024 16:10 — forked from mithicher/tom-select.blade.php
Tom Select Livewire Blade Component
/* Component Usage
// Data for options
$users = \App\User::limit(6)->get()->transform(fn($user) => [
'id' => $user->id,
'title' => $user->name,
'subtitle' => $user->email
]);
// Usage in view
@raliqala
raliqala / alpine-dropdown.html
Created August 21, 2023 08:08 — forked from w3collective/alpine-dropdown.html
Building a dropdown menu using Alpine.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Alpine.js - Dropdown menu</title>
<style>
.rotated {
transform: rotate(90deg);
display: inline-block;
@raliqala
raliqala / hue_color.js
Created August 3, 2023 09:14
Random number generator highly customizable
function rand(min, max) {
return parseInt(Math.random() * (max-min+1), 10) + min;
}
function get_random_color() {
var h = rand(-360, 360); // color hue between 1 and 360
var s = 100; // saturation 30-100% or apply rand(30, 100); or custom values as parameters
var l = 50; // lightness 30-70% or apply rand(30, 50);
return 'hsl(' + h + ',' + s + '%,' + l + '%)';
}
@raliqala
raliqala / random-color.js
Created August 3, 2023 08:38 — forked from bendc/random-color.js
Generate nice random colors
const randomColor = (() => {
"use strict";
const randomInt = (min, max) => {
return Math.floor(Math.random() * (max - min + 1)) + min;
};
return () => {
var h = randomInt(0, 360);
var s = randomInt(42, 98);
@raliqala
raliqala / moment-js-timezones.txt
Created November 28, 2022 08:54 — forked from diogocapela/moment-js-timezones.txt
List of All Moment.js Timezones
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
[{"country":"Afghanistan","code":"93","iso":"AF"},
{"country":"Albania","code":"355","iso":"AL"},
{"country":"Algeria","code":"213","iso":"DZ"},
{"country":"American Samoa","code":"1-684","iso":"AS"},
{"country":"Andorra","code":"376","iso":"AD"},
{"country":"Angola","code":"244","iso":"AO"},
{"country":"Anguilla","code":"1-264","iso":"AI"},
{"country":"Antarctica","code":"672","iso":"AQ"},
{"country":"Antigua and Barbuda","code":"1-268","iso":"AG"},
{"country":"Argentina","code":"54","iso":"AR"},
AF - Afghanistan
AX - Åland Islands
AL - Albania
DZ - Algeria
AS - American Samoa
AD - Andorra
AO - Angola
AI - Anguilla
AQ - Antarctica
AG - Antigua &amp; Barbuda