Skip to content

Instantly share code, notes, and snippets.

View twitterFollowerCuratorBot.php
<?php
//
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio)
//
// https://gist.github.com/levelsio/6ee6c47283ee414ef3aace1d81986717
//
// File: twitterFollowerCuratorBot.php
//
// Created: May 2021
@marcaube
marcaube / fa.sublime_snippet
Created Jul 18, 2017 — forked from calebporzio/fa.sublime_snippet
Font Awesome sublime snippet for creating icon tags
View fa.sublime_snippet
<snippet>
<content><![CDATA[
<i class="fa fa-fw fa-${1}"></i>&nbsp;
]]></content>
<tabTrigger>fa</tabTrigger>
<description>Font Awesome Icon</description>
<scope>text.blade, text.html.blade, text.html</scope>
</snippet>
@marcaube
marcaube / .gitconfig
Created May 1, 2017 — forked from imkevinxu/.gitconfig
`git random` alias that will commit a random commit message from http://whatthecommit.com/
View .gitconfig
[alias]
random = !"git add -A; git commit -am \"$(echo $(curl -s http://whatthecommit.com/index.txt)\" (http://whatthecommit.com)\")\"; git pull --rebase; git push"
@marcaube
marcaube / CastsValueObject.php
Created Jan 16, 2017 — forked from cmaas/CastsValueObject.php
A Trait to automatically cast value objects in Laravel without needing a Mutator and an Accessor.
View CastsValueObject.php
<?php
trait CastsValueObjects
{
protected function castAttribute($key, $value)
{
$castToClass = $this->getValueObjectCastType($key);
// no Value Object? simply pass this up to the parent
if (!$castToClass) {
return parent::castAttribute($key, $value);
@marcaube
marcaube / vendors
Created Sep 19, 2012 — forked from ubermuda/vendors.php
A symfony2 vendors script hacked to handle svn urls
View vendors
#!/usr/bin/env php
<?php
/*
* This file is part of the Symfony Standard Edition.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE