Skip to content

Instantly share code, notes, and snippets.

{"details":"Ambiguous oauth credentials provided","problem":"You are not authorized to make that request","code":"ambiguous_credentials"}
module Unform
extend ActiveSupport::Concern
class FormObject
include Virtus
include ActiveModel::Validations
end
included do
@models = {}
module Unform
extend ActiveSupport::Concern
class FormObject
include Virtus
include ActiveModel::Validations
end
included do
@models = {}
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<style>
#bg-left-extension {
width: 1000px;
background: blue;
}
</style>
<div id="bg-left-extension" height="100"></div>
class Seller < ActiveRecord::Base
has_one :business
accepts_nested_attributes_for :business
devise :database_authenticatable, :registerable, :token_authenticatable,
:lockable, :timeoutable, :recoverable, :rememberable, :trackable, :validatable
attr_accessible :email, :password, :last_name, :first_name, :remember_me, :business_attributes
class Seller < ActiveRecord::Base
has_one :business
accepts_nested_attributes_for :business
devise :database_authenticatable, :registerable, :token_authenticatable,
:lockable, :timeoutable, :recoverable, :rememberable, :trackable, :validatable
attr_accessible :email, :password, :last_name, :first_name, :remember_me, :business_attributes
#!/usr/bin/env ruby
require 'rubygems'
require 'tweetstream'
hash_tag = '#vegastech'
useage = []
def show_stats(stats)
# Aggregate Results
::Chef::Recipe.send(:include, Opscode::OpenSSL::Password)
app = data_bag_item('apps', 'bulletin_board')
app['mysql_root_password'][node.chef_environment] = node['mysql']['server_root_password']
app['databases'][node.chef_environment]['password'] = secure_password
app.save
chef_gem 'mysql' do
action :install
end
<?
/**
* A Flash model.
* @package hydra_flash
* @version 0.1
*/
session_start();
require 'rubygems'
require 'rmeetup2'
RMeetup2::Base.authentication_method = :api_key
RMeetup2::Base.api_key = '5c4a7449656e481b691f4a113174d'
RMeetup2::Base.get(:events, group_id: '1555691').data['results'].count