Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tacoman667 on github.
  • I am tacoman667 (https://keybase.io/tacoman667) on keybase.
  • I have a public key ASB4H7xMQsPsDh--dXY0djKdiwD2wQaF1LZzwWKG3NIiugo

To claim this, I am signing this object:

#action REVIEW
[1] dailygourmet(#<CartsController>) » params
=> {
"utf8" => "✓",
"_method" => "put",
"authenticity_token" => "3q+GkF7JEXAetkvEg4QCYIULuh3jBQsNJj2Z31+KA5g=",
"cart" => {
"provide_shipping_address" => "false",
"user_address_attributes" => {
"line1" => "bB",
@tacoman667
tacoman667 / oauthbase.cs
Created November 26, 2012 18:43
oauthbase.cs
using System;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace OAuth {
public class OAuthBase {
/// <summary>
@tacoman667
tacoman667 / controller
Created September 17, 2012 19:21
wtf?!
class Admin::CampusesController < Admin::BaseController
def index
setup_and_render_index()
end
def setup_and_render_index
@campuses = Campus.all
render :index
end
end
@tacoman667
tacoman667 / controller.rb
Created September 7, 2012 16:35
what the...
def index
@asset = Slide.active.order("position")
url = 'http://www.example.com/feed'
open(url) do |rss|
rss_feed = RSS::Parser.parse(rss)
rss_feed.items.first do |item|
logger.info item
@feed = BlogFeed.new(title: item.title, link: item.link, date: item.pubDate, author: item.author, description: item.description)