Skip to content

Instantly share code, notes, and snippets.

View psyao's full-sized avatar

Steve Aguet psyao

  • Marvelous Digital
  • Switzerland
View GitHub Profile
@psyao
psyao / zsh.md
Created May 7, 2017 19:44 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@psyao
psyao / laravel.js
Created October 21, 2015 09:05 — forked from JeffreyWay/laravel.js
Want to send a DELETE request when outside of a form? This will handle the form-creation bits for you dynamically, similar to the Rails implementation. (Requires jQuery, but doesn't have to.) To use, import script, and create a link with the `data-method="DELETE"` attribute.
/*
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-confirm="Are you sure?">
*/
(function() {
@psyao
psyao / .gitignore
Last active August 29, 2015 14:19 — forked from salcode/.gitignore
WordPress .gitignore
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20150227
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.