Skip to content

Instantly share code, notes, and snippets.

View ra0van's full-sized avatar
🚀
Learning

rajasekhar vanjarapu ra0van

🚀
Learning
View GitHub Profile
@ra0van
ra0van / _.md
Last active August 29, 2015 14:17 — forked from klange/_.md

Since this is on Hacker News and reddit...

  • No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later). My actual résumé is written in BSD mandoc.
  • I apologize for the use of _t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
  • Since people kept complaining, I've fixed the assignments of string literals to non-const char *s.
  • My use of type * name, however, is entirely intentional.
  • If you're using an older compiler, you might have trouble with the anonymous unions and the designated initializers - I think gcc 4.4 requires some extra braces to get them working together. Anything reasonably recent should work fine. Clang and gcc (newer than 4.4, at
<?php
$mongodb = new Mongo("mongodb://username:password@localhost/database_name");
$database = $mongodb->database_name;
$collection = $database->collection;
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
$limit = 12;
$skip = ($page - 1) * $limit;
$next = ($page + 1);
$prev = ($page - 1);
@ra0van
ra0van / bash_script_workon.sh
Last active February 17, 2018 20:37
bash script to enable workon command for virtualenvwrapper
#add workon home path
export WORKON_HOME=~/.virutalenvs
VIRTUALENVWRAPPER_PYTHON='/usr/bin/python'
source /usr/local/bin/virtualenvwrapper.sh
@ra0van
ra0van / GuideLines.md
Created February 19, 2020 06:18
PR Guidelines - OO Design

PR Guidelines

Business layer/ Domain Layer

  • Define interfaces or contracts for DB Layer.
  • Inject Dependencies for Infra & Db layer from api/application layer
  • Avoid tight coupling between components
  • Single responsibility for components/classes/functions
  • Invert all dependencies for better control & unit testability
  • Use Data Transfer Objects/Intermediate objects for transfer between layers & components.
  • Avoid accessing config files directly. Use dependency injection.
@ra0van
ra0van / GuideLines.md
Last active February 20, 2020 13:02
PR Guidelines

PR Guidelines

Business layer/ Domain Layer

  • Define interfaces or contracts for DB Layer.
  • Inject Dependencies for Infra & Db layer from api/application layer
  • Avoid tight coupling between components
  • Single responsibility for components/classes/functions
  • Invert all dependencies for better control & unit testability
  • Use Data Transfer Objects/Intermediate objects for transfer between layers & components.
  • Avoid accessing config files directly. Use dependency injection.
@ra0van
ra0van / RajasekharVanjarapu-Latest.pdf
Last active March 22, 2020 15:04
Rajasekhar Vanjarapu Resume
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ra0van
ra0van / vim.md
Created November 27, 2022 06:25 — forked from filipelinhares/vim.md
Vim basic commands

Vim basic commands

A

  • a Enter into insert mode after the character your cursor is on.
  • A Enter into insert mode at the end of the current line.

B

  • b Move cursor to first character of previous word.
  • B Move cursor to first character of previous non-blank series of characters.
  • Ctrl+b Scroll page backwards (move up in the file).