Skip to content

Instantly share code, notes, and snippets.

View Crovitche-1623's full-sized avatar
☁️
Cloud Shaper

Thibault Gattolliat Crovitche-1623

☁️
Cloud Shaper
View GitHub Profile
@Pierstoval
Pierstoval / _PHP is_a() vs is_subclass_of().md
Last active September 7, 2025 00:55
`is_a()` vs `is_subclass_of()`

PHP is_a() vs is_subclass_of()

<?php

class A {}

class B extends A {}
@six0h
six0h / post-update
Created February 26, 2014 17:12
Git Post-Update hook that checks for changes to composer.lock, and fires a composer install if required.
#!/usr/bin/env python
#-*- coding: utf-8 -*-
"""A post-update Git hook to execute `composer install` when composer.json changes
:Author: Cody Halovich
:Company: HootSuite Media Inc.
"""
import subprocess