Skip to content

Instantly share code, notes, and snippets.

View irudoy's full-sized avatar
💭
🦔

irudoy

💭
🦔
View GitHub Profile
$(document).ready(function(e) {
var form = $('#form-converter');
if(form) {
form.on('submit', function(e) {
var result = '-';
var h = form.find('[data-role="height"]').val();
var w = form.find('[data-role="width"]').val();
var l = form.find('[data-role="length"]').val();
<snippet>
<content><![CDATA[
<!-- begin $1 -->
<div class="$1">
$2
</div>
<!-- end $1 -->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>di</tabTrigger>

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/