Skip to content

Instantly share code, notes, and snippets.

@staltz
staltz / introrx.md
Last active April 8, 2025 04:41
The introduction to Reactive Programming you've been missing
@johnpolacek
johnpolacek / .gitconfig
Last active March 8, 2025 22:15
My current .gitconfig aliases
[alias]
recent = "!git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)' | head -n 10"
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
brd = branch -d
brD = branch -D
merged = branch --merged
st = status
@fredbenenson
fredbenenson / kickstarter_sql_style_guide.md
Last active March 11, 2025 21:24
Kickstarter SQL Style Guide
layout title description tags
default
SQL Style Guide
A guide to writing clean, clear, and consistent SQL.
data
process

Purpose

@chalasr
chalasr / BaseEntity.php
Created February 5, 2016 10:30
Selective mapping inheritance in Doctrine2
<?php
namespace App\Util\Doctrine\Entity;
/**
* Base Entity.
*/
class BaseEntity
{
/**
#!/usr/bin/env php
<?php
include_once 'app/global_vars.php';
require ROOT_DIR . 'vendor/autoload.php';
use Application\Command\InsertFixturesCommand;
use Symfony\Component\Console\Application;
@Veve2
Veve2 / exception_error_handler.php
Created June 14, 2017 14:41
Error to Exception error_handler for PHP
<?php
function exception_error_handler($severity, $message, $file, $line) {
if (!(error_reporting() & $severity)) {
// This error code is not included in error_reporting
return;
}
throw new ErrorException($message, 0, $severity, $file, $line);
}
set_error_handler("exception_error_handler");