Skip to content

Instantly share code, notes, and snippets.

View dirkpostma's full-sized avatar

Dirk Postma dirkpostma

View GitHub Profile
@dirkpostma
dirkpostma / restful.js
Last active July 4, 2018 12:06
Restful DELETE request using <a>
$(document).ready(function() {
// Add click handler to hyperlinks to send restful DELETE requests
//
// Example:
//
// <a href="/delete/1" class="rest-delete">delete</a>
// <script>restful.init($('.rest-delete'));</script>
//
var restful = {
@dirkpostma
dirkpostma / .inputrc
Created February 17, 2018 20:04
Use up/down arrows to search though bash command history
# Key bindings, up/down arrow searches through history
"\e[A": history-search-backward
"\e[B": history-search-forward
"\eOA": history-search-backward
"\eOB": history-search-forward
# Don't source this file, that doesn't work.
# In stead, by default, C-x C-r is bound to re-read-init-file
@dirkpostma
dirkpostma / test_gist.php
Created April 23, 2013 11:22
PHP Hello World!
<?php
echo "Hello World!