Skip to content

Instantly share code, notes, and snippets.

View MarcosBL's full-sized avatar
:octocat:
Github Advocate

MarcosBL MarcosBL

:octocat:
Github Advocate
View GitHub Profile
@rxaviers
rxaviers / gist:7360908
Last active May 1, 2024 19:56
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@MarcosBL
MarcosBL / Simple AJAX form controller with jQuery
Last active December 20, 2015 20:09
Simple AJAX form controller with jQuery. It takes care of AJAX stuff, cache busting, avoiding double submit, visual clues and returning values in a few lines of code. You can check it live at http://marcosbl.com/gifsound/?#new
<form method="POST" data-async data-target=".result_div" data-cache="false" action="/process">
<input type="text" id="field1" name="field1" placeholder="Field 1">
<input type="text" id="field2" name="field2" placeholder="Field 2">
<button type="submit" data-processing="¡ OK, SENDING !" data-processing-class="btn-warning" class="btn">¡ Go !</button>
</form>
@danmackinlay
danmackinlay / supervisord.sh
Created August 27, 2009 07:07
an init.d script for supervisord
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.