Skip to content

Instantly share code, notes, and snippets.

View rmurussi's full-sized avatar
🚀
(:

Renan R. Murussi rmurussi

🚀
(:
View GitHub Profile
@guest271314
guest271314 / compiling_standalone.md
Last active November 8, 2024 18:30
Compiling a standalone executable using modern JavaScript/TypeScript runtimes

Compiling a standalone executable using modern JavaScript/TypeScript runtimes

We have the same code working using node, deno, and bun.

E.g.,

bun run index.js
@robertdrakedennis
robertdrakedennis / MongoDatabaseManager.php
Last active April 29, 2021 18:26
a hacky way to have tenants create with mongo
<?php
namespace App\Drivers;
use Illuminate\Database\Connection;
use Illuminate\Support\Facades\DB;
use Stancl\Tenancy\Contracts\TenantDatabaseManager;
use Stancl\Tenancy\Contracts\TenantWithDatabase;
use Stancl\Tenancy\Exceptions\NoConnectionSetException;
@ryansechrest
ryansechrest / php-style-guide.md
Last active October 17, 2024 09:52
PHP style guide with coding standards and best practices.

PHP Style Guide

All rules and guidelines in this document apply to PHP files unless otherwise noted. References to PHP/HTML files can be interpreted as files that primarily contain HTML, but use PHP for templating purposes.

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Most sections are broken up into two parts:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts