Skip to content

Instantly share code, notes, and snippets.

View vamsipavanmahesh's full-sized avatar

vamsi pavan mahesh gunturu vamsipavanmahesh

View GitHub Profile
I used to belong to a district called "Prakasam" in Andhra Pradesh. Currently my aadhar mentions the same district in the address.
They did some shuffling of districts, and now our town comes under a district called "Bapatla".
While applying for a passport, my passport agent selected Bapatla as the district and asked me to update the aadhar.
I requested an update at aadhar seva kendra, and it's showing it's under process for the past 17 days and I can only escalate after 12 days.
I can go to passport seva kendra on my appointment date on 23rd and can ask them to change the address on the passport application to the previous district name. I got this confirmed from the helpline.
irb(main):016:1* class Car
irb(main):017:1* attr_accessor :model
irb(main):018:1*
irb(main):019:2* def pretty_name
irb(main):020:2* model + " pretty"
irb(main):021:1* end
irb(main):022:0> end
=> :pretty_name
irb(main):023:0> c1 = Car.new
=> #<Car:0x00007ff7598f1aa8>
Few things I felt are:
-> Things are not autoloaded by default.
For example, if we go to shell and want to quickly check something. This can get in the way, you need to know
which app it is in, folder structure etc like below
from polls.models import Choice, Question
-> Folder structure
@vamsipavanmahesh
vamsipavanmahesh / book_group_policy.rb
Last active April 12, 2020 13:17
Some example tests for pundit
class BookGroupPolicy < ApplicationPolicy
attr_reader :user, :book_group
def initialize(user, book_group)
@user = user
@book_group = book_group
end
def update?
user.moderator?(book_group)
This is Vamsi from Bangalore. I have around 3 years of experience at the time of writing this post. I work primarily in Ruby,
Ruby on Rails and React JS. Sometimes a bit of plain JS and Jquery too. I can debug the ELK stack applications
I do not have any leadership experience at the moment except for a brief stint where I started my own app. I want to be a senior individual contributor in the long run.
I am happy with my current job. So I am not looking out at the moment, though exceptions can be made if you offering from Singapore or Silicon Valley or Sydney.
These are the following factors I consider to be important in my workplace
1) Noiseless working environment. In order for me to concentrate on the problem at hand or to be in the "zone", I need
"runs": {
"1": {
"firstView": {
"numSteps": 1,
"run": 1,
"tester": "VM4-03-192.168.10.91",
"URL": "http://www.aol.com",
"loadTime": 8400,
"TTFB": 964,
"bytesOut": 94530,

Keybase proof

I hereby claim:

  • I am vamsipavanmahesh on github.
  • I am gvpmahesh (https://keybase.io/gvpmahesh) on keybase.
  • I have a public key ASAcJNQp4WECXbHxj8SCCIIsdezapsK5lan_z9DI4NDFNQo

To claim this, I am signing this object:

@vamsipavanmahesh
vamsipavanmahesh / versioning
Created March 7, 2017 11:17
Force updating the app
Following is the strategy to force update the user.
Just like watsapp, how it's forcefully asking the user to update the app or app becomes unusable may be it for security reasons
or we want the users to experience new features.
There will be api called /settings which will give the version number {version: 1.5} . This is basically the minimum version
supported by us
Now the frontend Android app, will compare the current version of the app it's running. Suppose 1.6, now that 1.6 is greater than
1.5. The app is good to go, and it will function normally.
#prerequisite: gem install twitter
require 'twitter'
client = Twitter::REST::Client.new do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.access_token = ""
config.access_token_secret = ""
end
[
{
"info": {
"total_pages": 6
}
},
{
"id": "e71edff6-4b27-4d55-9721-c26714b7285d",
"heading": "This will make you go crazy",
"description": "watch this funny video of indian engineering colleges",