{ | |
"v": "4.7.0", | |
"fr": 30, | |
"ip": 0, | |
"op": 50, | |
"w": 261, | |
"h": 72, | |
"nm": "Comp 2 ERROR", | |
"ddd": 0, | |
"assets": [], |
<?php | |
# Fill out the four db vars and run on cli | |
# $ php -f db-mysql_connect-test.php | |
$dbname = 'db'; | |
$dbuser = 'user'; | |
$dbpass = ''; | |
$dbhost = 'localhost'; | |
## end vars |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<div class='viewport'> | |
<ul> | |
<li><a href="#">Need Help?</a></li> | |
<li><a href="#">Volunteer</a></li> | |
<li><a href="#">Donate</a></li> | |
</ul> | |
</div> |
<section> | |
<h1>File Mix</h1> | |
<p>See the types of files currently on your site.</p> | |
<figure> | |
<span class="type-1" style="width:1.2%" title="png">1.2%</span> | |
<span class="type-2" style="width:4.0%" title="css">4.0%</span> | |
<span class="type-3" style="width:3.0%" title="gif">3.0%</span> | |
<span class="type-4" style="width:19.5%" title="other">19.5%</span> | |
<span class="type-5" style="width:7.8%" title="pdf">7.8%</span> | |
<span class="type-6" style="width:27.5%" title="php">27.5%</span> |
// $*-color are sass variables defined elsewhere | |
$brands: (bandcamp $bandcamp-color) (twitter $twitter-color) (facebook $facebook-color) (foobar $foobar-color) | |
@each $brand in $brands | |
$klass: nth($brand, 1) | |
$kolor: nth($brand, 2) | |
//@debug "brand class is #{$klass} and color is #{$kolor}" | |
// |
#Behold, the nav_link:
The nav_link helper works just like the standard Rails link_to helper, but adds a 'selected' class to your link (or its wrapper) if certain criteria are met. By default, if the link's destination url is the same url as the url of the current page, a default class of 'selected' is added to the link.
For full usage details, see: http://viget.com/extend/rails-selected-nav-link-helper
Drop nav_link_helper.rb into app/helpers in your Rails 3.x app and enjoy.
Revised date: 07/11/2012
Between us [company name] and you [customer name]
We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
require 'rubygems' | |
require 'sinatra' | |
require 'pony' | |
require 'haml' | |
set :haml, {:format => :html5} | |
set :public, File.dirname(__FILE__) | |
set :views, File.dirname(__FILE__) | |
# Create the page class and give it a title of Contact for the layout |