Public Gists by atinypixel

Gravatar
Thu Nov 12 07:40:26 -0800 2009
1
2
3
/* A collection of mixins for the ruby sass interpreter.
 
=cf
Gravatar
Mon Oct 26 10:59:19 -0700 2009
1
2
# To parse a tweet from twitter to get teh '@' , '#' and the text seperated
parsed_text = tweet.text.gsub(/ ?(@\w+)| ?(#\w+)/) { |a| ((a.include?('#')) ? tags : replies) << a.strip.gsub(/#|@/,''); '' }
Gravatar
Mon Oct 26 10:57:21 -0700 2009

      
Gravatar
Mon Jun 01 13:31:09 -0700 2009
1
2
3
# Rails modules for user controllers and models.
 
module Tiny
Gravatar
Sun May 17 11:08:21 -0700 2009
1
2
3
# Simple example
# Regex is between these -&gt; \\ and my replacement string is in single quotes
 
Gravatar
Thu May 14 16:14:32 -0700 2009
1
2
3
require 'csv'
CSV.open('sample_users.csv', 'r').each do |row|
  User.create(:username => row[0], :email => row[1])
gist: 57365 Eric Meyer's Reset CSS (usi...
Gravatar
Mon Feb 02 22:49:24 -0800 2009
1
2
3
/*
  Reset
  By Eric Meyers
gist: 53221 Subdomain Accounts
Gravatar
Mon Jan 26 23:12:20 -0800 2009
1
2
3
#
# Inspired by
# http://dev.rubyonrails.org/svn/rails/plugins/account_location/lib/account_location.rb
Gravatar
Sun Jan 25 14:00:44 -0800 2009
1
2
3
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer:
gist: 48278 Automatically grow your tex...
Gravatar
Fri Jan 16 22:29:52 -0800 2009
1
2
3
// USAGE EXAMPLE (in HTML)
// <script type="text/javascript">
// new ResizingTextArea("dom_id_for_textarea_here");
Gravatar
Tue Dec 02 16:57:57 -0800 2008
1
2
3
<small><ul>
  <% @curators.each do |member| %>
    <li><%= member.person.name %></li>
Gravatar
Sun Nov 09 15:35:24 -0800 2008
1
2
3
/* You can use any element aside from the example below.
   How it works is that you simply create .hover, .active styles
   for whatever element you use this on. Works very well. Uses