Skip to content

Instantly share code, notes, and snippets.

View hunterbridges's full-sized avatar

Hunter Bridges hunterbridges

View GitHub Profile
<% content_for(:javascripts) do %>
<script type="text/javascript">
$(document).ready(function() {
$("select").selectBox();
});
</script>
<% end %>
<script type="text/javascript">
$(document).ready(function() {
$("select").selectBox();
});
</script>
<!-- Script goes right before your closing body tag -->
</body>
+---------------------+---------------------+----------------+-------+---------------------------------------------------------------------+
| purchased_at | redeemed_at | days_to_redeem | COUNT | bar |
+---------------------+---------------------+----------------+-------+---------------------------------------------------------------------+
| 2011-10-19 21:07:04 | 2011-10-19 21:07:04 | 0 | 268 | ******************************************************************* |
| 2011-12-04 23:28:28 | 2011-12-05 03:07:35 | 1 | 135 | ********************************** |
| 2011-11-20 21:36:23 | 2011-11-22 12:47:39 | 2 | 53 | ************* |
| 2011-11-25 17:42:20 | 2011-11-28 19:16:05 | 3 | 46 | ************ |
| 2011-11-15 04:11:21 | 2011-11-19 18
<!DOCTYPE html>
<html>
<head>
<title>Carousel</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<style>
div.hider {
overflow:hidden;
width:200px;
}
<!DOCTYPE html>
<html>
<head>
<title>Carousel</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<ul>
<li class="red"></li>
<li class="blue"></li>
<!DOCTYPE html>
<html>
<head>
<title>Carousel</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<ul>
<li class="red"></li>
<li class="blue"></li>
<!DOCTYPE html>
<html>
<head>
<title>Carousel</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
</body>
</html>
worker_processes 1;
error_log /usr/local/var/log/nginx.error.log;
events {
worker_connections 1024;
}
http {
include mime.types;
@hunterbridges
hunterbridges / gist:1904787
Created February 25, 2012 00:11
Command T style
filtered: function(q) {
q = q || this.query || '';
if (q === '') return this;
var chars = q.toLowerCase().replace(/[^0-9a-z]/,'').split('');
var searchFields = [
'order_number',
'vendor_name',
'product_name',
'redemption_shipping_label_tracking_number'
];