Skip to content

Instantly share code, notes, and snippets.

@stevemo
stevemo / zsh.md
Last active August 29, 2015 14:11 — forked from tsabat/zsh.md
/*
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request
*/
(function() {
var laravel = {
initialize: function() {
this.methodLinks = $('a[data-method]');
@stevemo
stevemo / gist:4102064
Created November 18, 2012 00:41 — forked from JeffreyWay/gist:3185773
PHP Installation Options
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
--with-openssl=/usr \
@stevemo
stevemo / snippet.xml
Created October 22, 2012 03:51 — forked from JeffreyWay/snippet.xml
Laravel Resource - Sublime Text 2 Snippet
<snippet>
<content><![CDATA[
// ${1} Resource
Route::get('${1}s', array('as' => '${1}s', 'uses' => '${1}s@index'));
Route::get('${1}s/(:any)', array('as' => '${1}', 'uses' => '${1}s@show'));
Route::get('${1}s/new', array('as' => 'new_${1}', 'uses' => '${1}s@new'));
Route::get('${1}s/(:any)edit', array('as' => 'edit_${1}', 'uses' => '${1}s@edit'));
Route::post('${1}s', '${1}s@create');
Route::put('${1}s/(:any)', '${1}s@update');
Route::delete('${1}s/(:any)', '${1}s@destroy');