Skip to content

Instantly share code, notes, and snippets.

View jrean's full-sized avatar

Jean R. jrean

  • Earth
View GitHub Profile
@jrean
jrean / .zshrc
Created April 16, 2014 16:23 — forked from elena-kolevska/.zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Example aliases
<?php
/* app/validators.php */
Validator::extend('alpha_spaces', function($attribute, $value)
{
return preg_match('/^[\pL\s]+$/u', $value);
});
/*
<?php
/*
* An improvised Gist from
* https://gist.github.com/zmsaunders/5619519
* https://gist.github.com/garagesocial/6059962
*/
App::after(function($request, $response)
{
if(App::Environment() != 'local')
@jrean
jrean / foo_bar_baz.php
Created April 23, 2015 03:46
This is a test
$app->bind('Acme\Project\Foo', 'Bar\Foo');
@jrean
jrean / extract_unit
Created May 5, 2015 06:26
Extract content inside delimiters
/**
* Extract content inside delimiters.
*
* @param string $start
* @param string $end
* @return string Extracted content.
*
* @source
* http://www.bitrepository.com/extract-content-between-two-delimiters-with-php.html
*/
// Metadata Loaded Event
$("#audio-player").bind("loadedmetadata", function(e) {
...
});
@jrean
jrean / ponysay_motd.md
Created July 27, 2017 06:01 — forked from Tschrock/ponysay_motd.md
A ponysay MOTD for Ubuntu 16.04

A ponysay MOTD for Ubuntu 16.04

Screenshot

  1. Install ponysay: (You may have to sudo apt install software-properties-common first)
    • sudo add-apt-repository ppa:vincent-c/ponysay
    • sudo apt-get update
    • sudo apt-get install ponysay