Skip to content

Instantly share code, notes, and snippets.

View orafaelfragoso's full-sized avatar
:octocat:
Working from home

Rafael Fragoso orafaelfragoso

:octocat:
Working from home
View GitHub Profile
@orafaelfragoso
orafaelfragoso / form.html
Created May 14, 2013 23:10
jQuery code to validate input fields
<form id="uploadImages">
<input type="file" id="fotos" multiple="true" /><br />
<p class="callback">Try to upload some files here.</p>
<input type="submit" name="Submit" />
</form>
@orafaelfragoso
orafaelfragoso / README.markdown
Created November 9, 2012 20:24 — forked from greypants/README.markdown
RAILS 3: nav_link helper for adding 'selected' class to navigation elements

#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.

@orafaelfragoso
orafaelfragoso / PHP Installation Options
Created October 10, 2012 17:44 — forked from JeffreyWay/gist:3185773
PHP Installation Options
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
--with-openssl=/usr \
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Document</title>
</head>
<body>
<h1>Sample HTML structure.</h1>