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
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
rahul-sivalenka / imposter-handbook-links.md
Created Feb 7, 2018 — forked from milmazz/imposter-handbook-links.md
Useful links found in The Imposter's Handbook by Rob Conery
View imposter-handbook-links.md
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
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
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: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@rahul-sivalenka
rahul-sivalenka / BadgeTabLayout.java
Created Dec 22, 2016 — forked from eneim/BadgeTabLayout.java
A custom TabLayout with badge support for Tabs
View BadgeTabLayout.java
package im.ene.lab.android.widgets;
import android.content.Context;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.util.AttributeSet;
@rahul-sivalenka
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:
// http://www.gregshackles.com/presenters-in-mvvmcross-navigating-android-with-fragments/
// 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
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>
<html>
<head>
<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
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 = Array.prototype.slice.call(arguments, 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.