Skip to content

Instantly share code, notes, and snippets.

@TheCoderRaman
TheCoderRaman / tailwind.config.js
Created May 11, 2024 19:59 — forked from searls/tailwind.config.js
A sample Tailwind configuration file, heavily inspired by @PixelJanitor
function spacing () {
const scale = Array(201)
.fill(null)
.map((_, i) => [i * 0.5, `${i * 0.5 * 8}px`])
const values = Object.fromEntries(scale)
values.px = '1px'
values.xs = '2px'
values.sm = '4px'
return values
}
@TheCoderRaman
TheCoderRaman / Email Server (Windows Only).md
Created May 5, 2024 16:43 — forked from raelgc/Email Server (Windows Only).md
Setup a Local Only Email Server (Windows Only)

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@TheCoderRaman
TheCoderRaman / Common-Currency.json
Created December 4, 2023 09:11 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@TheCoderRaman
TheCoderRaman / downloader.php
Created October 5, 2023 10:38 — forked from ARACOOOL/downloader.php
Download remote file with progress bar (PHP, curl)
#!/usr/bin/php
<?php
/**
* Usage:
* php downloader.php http://path.to/remote/file.ext /local/file/path
*
* Output:
* [############################################################################################### ] 96%
*/
@TheCoderRaman
TheCoderRaman / paint
Created September 13, 2023 08:38 — forked from robopuff/paint
Draw image in terminal (True Color) with PHP
#!/usr/bin/env php
<?php
define('VERSION', '1.0.24');
define('DEFAULT_PIXEL', "\xE2\x96\x84");
define('RC', "\e[0m");
define('RCNL', RC . PHP_EOL);
define('CURRENT_FILE', array_shift($argv));
error_reporting(0);
@TheCoderRaman
TheCoderRaman / Microsoft.PowerShell_profile.ps1
Created July 3, 2023 20:51 — forked from cetoh/Microsoft.PowerShell_profile.ps1
PowerShell Profile including Oh My Posh, Terminal Icons, PSReadLine IntelliSense, and z
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
@TheCoderRaman
TheCoderRaman / yt.php
Created June 15, 2023 19:06 — forked from lhuxman-lhux/yt.php
youtube download
<?php
if (file_exists('sig1.php')) {
unlink('sig1.php');
}
function getc($url)
{
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
@TheCoderRaman
TheCoderRaman / download_file.php
Created June 8, 2023 10:35 — forked from saleemkce/download_file.php
PHP File Download Script - Download large file in chunks.
<?php
/*ini settings*/
set_time_limit(0);
ini_set('memory_limit', '512M');
//DOWNLOAD SCRIPT
$filePath = "G:/Software/versions/..PATH TO DOWNLOAD FILE...zip"; // set your download file path here.
download($filePath); // calls download function
function download($filePath)
{
@TheCoderRaman
TheCoderRaman / premake5.lua
Created April 5, 2023 12:43 — forked from gale93/premake5.lua
SFML's premake5 build script
workspace "sfml_project"
configurations { "Debug", "Release" }
location "build"
project "sfml_project"
kind "ConsoleApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
files { "src/**.*" }