Skip to content

Instantly share code, notes, and snippets.

View mikelyons's full-sized avatar
🌏
Write the code, change the world

Mike Lyons mikelyons

🌏
Write the code, change the world
View GitHub Profile
@mikelyons
mikelyons / .gitconfig
Created June 5, 2013 21:15
This is my home directory git config file
[user]
name = Mike Lyons
email = [email protected]
[github]
user = mrlyons
token = LOLITSASECRET
[color]
ui = auto
[color "branch"]
current = yellow reverse
@mikelyons
mikelyons / gist:2208571
Created March 26, 2012 18:38 — forked from snipe/gist:1925906
Add/remove fields dynamically in jQuery Mobile, disable buttons once max/min fields reached
<script>
/*
See the full details here:
http://www.snipe.net/2012/02/jquery-mobile-add-remove-fields-dynamically/
Based on the great post by Charlie Griefer, available here:
http://charlie.griefer.com/blog/2009/09/17/jquery-dynamically-adding-form-elements/
*/
@mikelyons
mikelyons / fizzbuzz.rb
Created March 9, 2012 10:18
FizzBuzz in ruby
# http://rubyquiz.com/quiz126.html
#!/usr/bin/env ruby -w
1.upto(100) do |i|
if i % 5 == 0 and i % 3 == 0
puts "FizzBuzz"
elsif i % 5 == 0
puts "Buzz"
elsif i % 3 == 0
puts "Fizz"