Skip to content

Instantly share code, notes, and snippets.

In the desert

Stephen Howells stephenhowells

In the desert
View GitHub Profile
laracasts / MailTestCase.php
Created Jun 14, 2014
Use Mailcatcher to test email.
View MailTestCase.php
use GuzzleHttp\Message\Response;
class MailTestCase extends TestCase {
protected $mailcatcher;
function __construct()
ttscoff / allpinboard.rb
Created Sep 24, 2012
Grab all bookmarks for your account, create a bookmark file for Launchbar indexing
View allpinboard.rb
This script is designed to generate a simple html file with _all_ of your bookmarks
The HTML file can be added to Launchbar's index as a custom bookmark file and you can search
your entire collection instantly from Launchbar (by title only). It includes
any applied tags as part of the title to aid in searching.
This does no checking for deltas, it just grabs the whole bunch and overwrites the html file
every time. Don't run it too frequently.
franzose / jade-to-laravel-blade-mixins.jade
Last active Dec 30, 2019
Jade -> Laravel Blade mixins
View jade-to-laravel-blade-mixins.jade
//- As you may know, Laravel 5 provides the Elixir to compile assets with no pain.
These mixins is for those of you who want to use Jade power combined with that of Laravel Blade.
The syntax mimic Blade statements, however identation differs in some cases.
- var newline = "\r\n"
- var loopIterator = '$iterator'
//- @extends mixin
Example: +extends('layouts/master')
Compiled: @extends('layouts/master')
etrepat / FIle.sublime-settings.json
Created Oct 15, 2011
Sublime Text 2 - My Settings
View FIle.sublime-settings.json
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Note that the font_face and font_size are overriden in the platform
// specific settings file, for example, "Base File (Linux).sublime-settings".
// Because of this, setting them here will have no effect: you must set them
// in your User File Preferences.
"font_face": "Monaco",
"font_size": 12,
JaminFarr / blade-mixins.pug
Last active Apr 16, 2020
Laravel Blade mixins for jade for use with laravel-elixir-jade
View blade-mixins.pug
//- For use with
mixin blade()
mixin phpblock()
!='\r\n<?php '



View partials.rb
# stolen from
# and made a lot more robust by me
# this implementation uses erb by default. if you want to use any other template mechanism
# then replace `erb` on line 13 and line 17 with `haml` or whatever
module Sinatra::Partials
def partial(template, *args)
template_array = template.to_s.split('/')
template = template_array[0..-2].join('/') + "/_#{template_array[-1]}"
options = args.last.is_a?(Hash) ? args.pop : {}
options.merge!(:layout => false)
joaoffcosta / gist:5729398
Created Jun 7, 2013
How to use S3 browser upload using XMLHttpRequest
View gist:5729398
<title>S3 POST Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
var bucketName = 'MY_BUCKET_NAME';
var AWSKeyId = 'MY_AWS_KEY_ID';
var policy = 'MY_POLICY';
var signature = 'MY_SIGNATURE';
qguv / solarized-dark.css
Last active Apr 5, 2021 — forked from nicolashery/solarized-dark.css
Solarized theme for Jekyll, updated to reflect toned-down line numbers
View solarized-dark.css
/* Solarized Dark
For use with Jekyll and Pygments
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
tanthammar / HasLinks.php
Last active Jul 1, 2021
No more controllers! Only Laravel LiveWire routes and a handy Eloquent Model trait.
View HasLinks.php