Skip to content

Instantly share code, notes, and snippets.

View ericlbarnes's full-sized avatar
🎵
git push it, git push it real good

Eric Barnes ericlbarnes

🎵
git push it, git push it real good
View GitHub Profile
@ericlbarnes
ericlbarnes / beartagcons.txt
Created January 6, 2018 16:33
A list of all the Bear Writing app sidebar icons
#android
#apple
#apple watch#
#bear
#comics
* saitama
* one punch man
* one-punch man
* one punch-man
* onepunch-man
Trying to filter "out of office" emails from my inbox as I receive a lot of them when I send a blast.
I need help - what do your "out of office" emails say in your langauge? Comment Below!
## Gmail Filter
("Automatische Antwort" OR "Automatic reply" OR "AutoReply" OR "Out of Office" OR "Xesc Duran" OR "Abwesend" OR "Absence" OR "Absence du bureau" OR "À l'extérieur du bureau" OR "Réponse automatique" OR "Abwesenheitsnotiz" OR "Resposta automática" OR "Automaattinen vastaus" OR "Automatisch antwoord" OR "Afwezig" OR "Afwezigheid" OR "Niet aanwezig" OR "Poza zasięgiem" OR "Na wakacjach" OR "Poza biurem" OR "Automatyczna odpowiedź" OR "Z dala od komputera" OR "Αυτόματη απάντηση" OR "Εκτός γραφείου" OR "na dovolenké" OR "mimo kancelárie" OR "automatická odpověď" OR "Autosvar" OR "Fora do escritório" OR "na dovolené" OR "mimo kancelář")
## List
Automatische Antwort
Automatic reply
@ericlbarnes
ericlbarnes / Template.php
Created July 29, 2012 03:05
CodeIgniter Template
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Template {
/**
* CI Object
*
* @access protected
* @var object
*/
@ericlbarnes
ericlbarnes / post.md
Created February 19, 2015 01:44
Use Laravel Blade And AngularJS Together

By default AngularJS and Blade conflict with the way variables are called. Both use a double curly bracket {{ var }} syntax. There are a few workarounds such as changing Angular’s or Blade’s delimiters but an easier method is available.

Inside blade prefix Angular echo variables with the at “@“ symbol. Here is an example:

<li ng-repeat="phone in phones | filter:query | orderBy:orderProp">
    <span>@{{phone.name}}</span>
    <p>@{{phone.snippet}}</p>
</li>
@ericlbarnes
ericlbarnes / countries.php
Created January 26, 2015 20:11 — forked from DHS/PHP Countries Array
PHP Array of country names
<?php
return [
"Afghanistan",
"Albania",
"Algeria",
"Andorra",
"Angola",
"Antigua and Barbuda",
"Argentina",
___ ____ ___
____( \ .-' `-. / )____
(____ \_____ / (O O) \ _____/ ____)
(____ `-----( ) )-----' ____)
(____ _____________\ .____. /_____________ ____)
(______/ `-.____.-' \______)
{
"object_state": "VALID",
"object_status": "SUCCESS",
"object_created": "2013-12-27T19:14:48.273Z",
"object_updated": "2013-12-27T19:14:48.273Z",
"object_id": "64bba01845ef40d29374032599f22588",
"object_owner": "shippotle@goshippo.com",
"was_test": false,
"rate": "cf6fea899f1848b494d9568e8266e076",
"tracking_number": "ZW70QJC",
{{ \Carbon\Carbon::setLocale('fr') }}
{{ $link->published_at->diffForHumans() }}
// Results
il y a 4 heures
Or another:
{{ \Carbon\Carbon::setLocale('de') }}
{{ $link->published_at->diffForHumans() }}
<?php
use Illuminate\Support\Collection;
class Feed {
public function fetch($url = 'http://site.com/feed')
{
$feed = implode(file($url));
$xml = simplexml_load_string($feed);
# easy installation:
# brew install python
# sudo easy_install pip # PIP is recommended for installation
# sudo -s # Creates a new sudo shell
# export ARCHFLAGS="-arch i386 -arch x86_64" # Need to set some GCC flags
# exit
# sudo pip install fabric # Get the install on
# sudo pip install python-simple-hipchat
import os, getpass, random, hipchat