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 / foreman-tpl.json
Created February 25, 2014 04:10
Foreman Assets
{
"structure": {
"copy": [
{
"from": "/Users/eric/Code/Shared/wardrobe/core/bower.json",
"to": "bower.json"
},
{
"from": "/Users/eric/Code/Shared/wardrobe/core/package.json",
"to": "package.json"
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli 'grunt-contrib-uglify' ]
2 info using npm@1.4.3
3 info using node@v0.10.26
4 verbose cache add [ 'grunt-contrib-uglify', null ]
5 verbose cache add name=undefined spec="grunt-contrib-uglify" args=["grunt-contrib-uglify",null]
6 verbose parsed url { protocol: null,
<?php
return array(
'faqs' => 'FAQs', // Main faq sections.
'permalink' => 'Direkt hierher verlinken', // Permalink title text for the section
'top' => 'Nach oben', // Back to top link
'search_results' => 'Ergebnisse durchsuchen', // Search results heading
'search_placeholder' => "Fragen durchsuchen", // Search form placeholder text
'noresults' => 'Keine Ergebnisse', // Message shown when the search did not return any results
@ericlbarnes
ericlbarnes / example.html
Created April 17, 2014 12:35
Snappy Widget
<html>
<head></head>
<body>
<a href="#" class="help" data-id="3">Help</a>
<script>
var snappyReady = function(){
$(".help").click(function(){
SnappyWidget.open({
@ericlbarnes
ericlbarnes / bower.json
Last active January 8, 2024 01:52
Gulp, Bower, Bootstrap Sass, FontAwesome
{
"name": "project",
"version": "0.0.0",
"authors": [
"Eric Barnes <me@example.org>"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",

Artisan Files

I am currently in the process of creating a free e-book of all the Artisan Files interviews and in the opening I would include a few quotes.

If you enjoy the series would mind commenting with a short testimonial that I could include? Or email directly: eric@ericlbarnes.com

<script>
@if (App::environment('local'))
var $el = $("#card-number");
window.stripeData = {
valid: function() {
$el.val('4242424242424242');
},
successAddressFail: function() {
$el.val('4000000000000028');
},
<?php
use Illuminate\Support\Collection;
class Feed {
public function fetch($url = 'http://site.com/feed')
{
$feed = implode(file($url));
$xml = simplexml_load_string($feed);
@ericlbarnes
ericlbarnes / angular.blade.php
Created December 11, 2014 05:16
Angular with Laravel Blade Sample
<li ng-repeat="phone in phones | filter:query | orderBy:orderProp">
<span>@{{phone.name}}</span>
<p>@{{phone.snippet}}</p>
</li>
<?php
if (file_exists(dirname(__FILE__) . '/wp-config-local.php')) {
# IMPORTANT: ensure your local config does not include wp-settings.php
require_once(dirname(__FILE__) . '/wp-config-local.php');
} else {
// Don't show deprecations; useful under PHP 5.5
error_reporting(E_ALL ^ E_DEPRECATED);
define('DB_NAME', getenv('DB_NAME') );