Skip to content

Instantly share code, notes, and snippets.

View dr-r3d's full-sized avatar

Abhishek Anand dr-r3d

  • Appsbuddha Technologies LLP
  • Bangalore
View GitHub Profile
require 'spec_helper'
describe AuthenticateDevice do
describe ".perform" do
it "finds authenticate object with token"
it "authenticates if token is valid"
end
describe ".get_access_token" do
Hi,
I, Swetha Malemath, have 2 years of QA experience from fresher till today in sourcebits where I have been working hard and contributing to successfully delivering projects with Quality.
I have been constantly improving myself and introduced processes apart from my assigned responsibilities like automation. I have been even mentoring the freshers how to do automate using selenium and JAVA.
The last salary increment which I got in April 2013, made my gross salary to 24220. Even freshers get more salary that this in our company.I have not let this effect my work and dedication. But actually it is always in the back of my mind.
I have proved myself to be a valuable resource and I believe I have been always contributing more than my responsibilities. I therefore, request you look into normalizing my salary.
@dr-r3d
dr-r3d / gist:1301131
Created October 20, 2011 13:22
ogv not found
def convert_to_ogv
remote_url = model.send("remote_#{mounted_as}_url")
if should_process_remote?(remote_url)
download_from_remote_location(remote_url)
else
directory = File.dirname( current_path )
tmpfile = File.join(directory, "tmpfile.mp3")
###########################################
this should be tmpfile.mp4
@dr-r3d
dr-r3d / gist:1298287
Created October 19, 2011 13:33
generalization form html
<div class="left right-panel padbot100">
<div class="welcome-message-wrap">
<div class="top-bg"></div>
<div class="middle-bg">
<span class="pointer"></span>
<div class="padlr19">
<h2>Build Generalization</h2>
</div>
<form accept-charset="UTF-8" action="/ssa/how_to_units/4e9d4c47b8b9c63ab5000002/tutorials/4e9d5701b8b9c63b89000007/update_generalization" class="simple_form how_to_distractor" enctype="multipart/form-data" id="edit_how_to_distractor_4e9e6361b8b9c64000000071" method="post" novalidate="novalidate"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="put" /><input name="authenticity_token" type="hidden" value="baCrv/IJD24M0AWBqZ08lyn9AYyWjqF+Yl+ABVEvw7w=" /></div>
@dr-r3d
dr-r3d / gist:1298256
Created October 19, 2011 13:19
how_to_distractor.update_attributes error
NoMethodError in Ssa::TutorialsController#update_generalization
undefined method `find' for #<HowToDistractor:0xcafa8b4>
Rails.root: /home/abhishek/workspace/conoverweb
Application Trace | Framework Trace | Full Trace
activemodel (3.0.10) lib/active_model/attribute_methods.rb:392:in `method_missing'
mongoid (2.2.0) lib/mongoid/attributes.rb:182:in `method_missing'
mongoid (2.2.0) lib/mongoid/relations/proxy.rb:148:in `method_missing'
Changes
=======
# Removed readonly attribute for organization name in SA panel
# Removed password_confirmation error message in batch importer
# Url entered in news description will change to link when the news is displayed
To-Do Completed
===============
# (FSS) - Login Page
def paypal_checkout
values = {
:business => 'merch_1295771964_biz@gmail.com',
:cmd => '_cart',
:upload => 1,
:return => "http://61.12.14.178:4001#{checkout_sa_cart_items_path(params[:cart_item_ids])}"
}
cart_items = CartItem.any_in('_id' => params[:cart_item_ids])
@dr-r3d
dr-r3d / release notes 3oct2011
Created September 23, 2011 16:51
release notes
h1. URL
http://ec2-50-17-255-252.compute-1.amazonaws.com/
h2. Release notes
h2. New Features
# Paypal checkout integration to cart for buying credits
# Added contact form to trial
#This module does all the encryption and decryption using OpenSSL ruby class
module EncryptionEngine
#encrypt method as the name suggest encrypts 'data' using 'algorithm' with 'key'
def encrypt( data, key, algorithm)
#Do not encrypt if data is nil
if !data.nil? && !data.empty?
cipher = OpenSSL::Cipher::Cipher.new algorithm
cipher.encrypt