Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Hart mikedhart

View GitHub Profile
View launch_hanover.sh
#!/bin/bash
/home/mike/.rvm/bin/rvm use ruby-2.3.1@hanover
cd cleversteamapps/Hanover
tmux new -s "hanover" -d "vim"
tmux new-window
tmux send-keys 'rsd' 'C-m'
tmux new-window
tmux send-keys 'bin/rspec' 'C-m'
View eh
https://docs.google.com/presentation/d/19u6JOBa9sFIuzYRmNBr--fRgAdNI2frCz-sTty_7Gks/edit#slide=id.g18e4b1a0f8_0_0
View Vagrant Bootstrap.sh
#!/bin/bash
echo "******** update"
apt-get clean
apt-get -y -f update
apt-get -y install curl
echo "******** install mysql"
debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
@mikedhart
mikedhart / gist:9c9ffbeb491b44fb768b
Created Dec 18, 2015
Event listener/AJAX example
View gist:9c9ffbeb491b44fb768b
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<a href="#" id="click_me">Click me</a>
<div id="response_holder">Nothing here!</div>
View gist:0fdba6269c8d38a7bffb
# Handles forms where an infinite amount of fieldsets can be added or removed
#
# @author Mike Hart
# @version 0.2
# @copyright Smaller Earth Tech Ltd
add_remove_item_listener = ->
jQuery('remove_item').unbind 'click'
jQuery('.remove_item').on('click', (event) ->
@mikedhart
mikedhart / gist:5501090
Last active Dec 16, 2015
The coolest thing ever....... EVER
View gist:5501090
<marquee style="z-index:2;position:absolute;left:247;top:29;font-family:Times;font-size:14pt;color:ffcc00;height:78;"scrollamount="5" direction="down">Hi Barry</marquee><marquee style="z-index:2;position:absolute;left:83;top:105;font-family:Times;font-size:14pt;color:ffcc00;height:219;"scrollamount="7" direction="down">Hi Barry</marquee><marquee style="z-index:2;position:absolute;left:1;top:84;font-family:Times;font-size:14pt;color:ffcc00;height:60;"scrollamount="2" direction="down">Hi Barry</marquee><marquee style="z-index:2;position:absolute;left:117;top:53;font-family:Times;font-size:14pt;color:ffcc00;height:382;"scrollamount="3" direction="down">Hi Barry</marquee><marquee style="z-index:2;position:absolute;left:252;font-family:Times;font-size:14pt;color:ffcc00;height:104;"scrollamount="5" direction="down">Hi Barry</marquee><marquee style="z-index:2;position:absolute;left:142;top:55;font-family:Times;font-size:14pt;color:ffcc00;height:137;"scrollamount="1" direction="down">Hi Barry</marquee><marquee style=
You can’t perform that action at this time.