Skip to content

Instantly share code, notes, and snippets.

Phani Rahul Sivalenka rahul-sivalenka

  • Synechron
  • Hyderabad
Block or report user

Report or block rahul-sivalenka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rahul-sivalenka / callbacks.js
Created Mar 21, 2019 — forked from andrhamm/callbacks.js
Paginating Scans & Queries in DynamoDB with Node.js using Callbacks OR Promises
View callbacks.js
const AWS = require('aws-sdk');
AWS.config.logger = console;
const dynamodb = new AWS.DynamoDB({ apiVersion: '2012-08-10' });
let val = 'some value';
let params = {
TableName: "MyTable",
ExpressionAttributeValues: {
rahul-sivalenka /
Created Feb 7, 2018 — forked from milmazz/
Useful links found in The Imposter's Handbook by Rob Conery
View Super Form Reset.css
/* ----------------------------------------------------------------------------------------------------
Super Form Reset
A couple of things to watch out for:
- IE8: If a text input doesn't have padding on all sides or none the text won't be centered.
- The default border sizes on text inputs in all UAs seem to be slightly different. You're better off using custom borders.
- You NEED to set the font-size and family on all form elements
- Search inputs need to have their appearance reset and the box-sizing set to content-box to match other UAs
rahul-sivalenka / deep-comparision.js
Last active Aug 29, 2017
Functions which can be used to deep compare two objects or two arrays
View deep-comparision.js
let src = [{
a: 25,
b: 15
}, {
a: 10,
b: [10,15],
c: [{
x: 15,
y: 10
rahul-sivalenka / Update remote repo
Created Jul 15, 2017 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
View Update remote repo
// Reference:
// See also:
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin
$ git push origin master
$ git remote rm bitbucket
rahul-sivalenka /
Created Dec 22, 2016 — forked from eneim/
A custom TabLayout with badge support for Tabs
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
rahul-sivalenka / Fragments.cs
Created Nov 29, 2016 — forked from followthatleader/Fragments.cs
Presenters in MvvmCross: Navigating Android with Fragments (Greg Shackles)
View Fragments.cs
// Greg's awesome article had broken syntax highligting, leading to unreadable code :( So I fixed it up here,
// putting it on a Gist for myself and for others. Here's the original article:
// First let's quickly set up the basic app essentials here, starting with the view models:
using Cirrious.MvvmCross.ViewModels;
namespace PresenterDemo.Core.ViewModels
rahul-sivalenka / index.html
Last active Nov 23, 2016 — forked from anonymous/index.html
Draw an arc in SVG using path
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
svg {
height: 1000px;
width: 1000px;
rahul-sivalenka / index.js
Last active Oct 26, 2016
requirebin sketch
View index.js
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
var Q = require('q');
var formatStr = function(str) {
var args =, 1);
return str.replace(/{(\d+)}/g, function(match, number) {
return typeof args[number] != 'undefined'
? args[number]
You can’t perform that action at this time.