This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
config.vm.provider "virtualbox" do |v| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends layout | |
block content | |
nav.navbar.navbar-inverse.navbar-fixed-top | |
.container | |
.navbar-header | |
a.navbar-brand(href='#') IBCC Guadalajara | |
button(type='button', class='navbar-toggle', data-toggle='collapse', data-target='.navbar-collapse') | |
span.icon-bar | |
span.icon-bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MoneyModule | |
# A group of methods for dealing with money. If you need something more robust, try the Money gem. | |
def sanitize_money # Cleans out dollar signs, commas, etc. Returns a BigDecimal. | |
decimal = self.gsub(/[^\d\.]/, '') | |
decimal = BigDecimal.new(decimal).round(2) | |
end | |
# These two methods take a BigDecimal and return either an integer or float |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "deploy basic rack app to heroku" | |
multitask :heroku do | |
puts "## Deploying to Heroku " | |
unless File::exists?(".heroku_failed") | |
Rake::Task[:generate].execute | |
end | |
cd "#{public_dir}" do | |
system "git add ." | |
puts "\n## Committing: Site updated at #{Time.now.utc}" | |
message = "Site updated at #{Time.now.utc}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin box-shadow($x, $y, $blur, $spread, $color, $inset: false) { | |
@if $inset { | |
-webkit-box-shadow:inset $x $y $blur $spread $color; | |
-moz-box-shadow:inset $x $y $blur $spread $color; | |
box-shadow:inset $x $y $blur $spread $color; | |
} @else { | |
-webkit-box-shadow: $x $y $blur $spread $color; | |
-moz-box-shadow: $x $y $blur $spread $color; | |
box-shadow: $x $y $blur $spread $color; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ===== Rounded Corners ===== */ | |
$default_rounded_amount: 20px; | |
// Round corner at position by amount. | |
@mixin round-corner($position, $amount: $default_rounded_amount) { | |
border-#{$position}-radius: $amount; | |
-webkit-border-#{$position}-radius: $amount; | |
} | |
@mixin round-corner-mozilla($position, $amount: $default_rounded_amount) { | |
-moz-border-radius-#{$position}: $amount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------- | |
System Level Diagnostics | |
--------------------------------------------------------------- | |
Monitoring interval MON JUN 25 10:35:41 2012 - MON JUN 25 11:35:42 2012 | |
Problem(s) Detected [*** - Triggering Statistic(s)] Uplink, Web Acceleration[I] | |
Overall BAD | |
Transport BAD | |
PEP MARGINAL | |
TurboPage BAD | |
DNS BAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------- | |
System Level Diagnostics | |
--------------------------------------------------------------- | |
Monitoring interval TUE JUN 12 14:36:49 2012 - TUE JUN 12 15:36:50 2012 | |
Problem(s) Detected [*** - Triggering Statistic(s)] Uplink Queuing, TCP Acceleration, RTT, LAN | |
Overall BAD | |
Transport BAD | |
PEP BAD | |
TurboPage BAD | |
DNS GOOD |