Skip to content

Instantly share code, notes, and snippets.

View deepaknverma's full-sized avatar
:atom:
Building something new

Deepak Verma deepaknverma

:atom:
Building something new
View GitHub Profile

Keybase proof

I hereby claim:

  • I am deepaknverma on github.
  • I am deepaknverma (https://keybase.io/deepaknverma) on keybase.
  • I have a public key ASBh7KmGrczvx_SNO36ID8knesNM6MJX4yorNfuC6KhgKAo

To claim this, I am signing this object:

Privacy Policy

Your privacy is important to us. It is Netbeam Technologies' policy to respect your privacy regarding any information we may collect from you through our app, raisingthechild.

We only ask for personal information when we truly need it to provide a service to you. We collect it by fair and lawful means, with your knowledge and consent. We also let you know why we’re collecting it and how it will be used.

We only retain collected information for as long as necessary to provide you with your requested service. What data we store, we’ll protect within commercially acceptable means to prevent loss and theft, as well as unauthorised access, disclosure, copying, use or modification.

We don’t share any personally identifying information publicly or with third-parties, except when required to by law.

Starting with git version 1.7.3 it became possible to pass a strategy option to git rebase command.

The use of -Xtheirs and -Xours appear to be somewhat counterintuitive, so think of it as telling git which branch code to favor when resolving rebase conflicts. For example, when doing

# see current branch
$ git branch
---
* branch-a
...
{
"accountId" : 12345,
"sfId" : "sf0000234562553",
"url": "https://abc.local"
}
@deepaknverma
deepaknverma / BinaryTree.js
Created May 28, 2017 07:41
recursively loop through object keys at root and output tree path from root to leaf
let getPaths = (object) => {
var result = [];
// Can't pass null here
if (object === null) {
return;
}
// Creating local array
if(!currentVal) {
var currentVal = [];
}
@deepaknverma
deepaknverma / fruitdrop.js
Created April 27, 2017 07:16
count fruitedrop
/*
Sample Input 0
7 11
5 15
3 2
-2 2 1
5 -6
Explanation:
The first line contains two space-separated integers denoting the respective values of s and t.
@deepaknverma
deepaknverma / CountingSort1.js
Created April 27, 2017 06:17
Hacker Rank Solution: Counting Sort 1
This file has been truncated, but you can view the full file.
/*
Sample Output
0 2 0 2 0 0 1 0 1 2 1 0 1 1 0 0 2 0 1 0 1 2 1 1 1 3 0 2 0 0
2 0 3 3 1 0 0 0 0 2 2 1 1 1 2 0 2 0 1 0 1 0 0 1 0 0 2 1 0 1
1 1 0 1 0 1 0 2 1 3 2 0 0 2 1 2 1 0 2 2 1 2 1 2 1 1 2 2 0 3
2 1 1 0 1 1 1 0 2 2
Explanation
The output states that 0 appears 0 times, 1 appears 2 times,
2 appears 0 times, and so on in the given input array.
*/

##Server: OS : Ubuntu 14.01 docker compose

registry:
  restart: always
  image: registry:2
  ports:
	- 5000:5000

environment:

wsdlinterface:
build: .
hostname: node1
expose:
- "3000"
ports:
- "3000:3000"
environment:
NODE_ENV: dev
working_dir: /var/www
@deepaknverma
deepaknverma / nodered
Last active August 29, 2015 14:22
Creates an init.d script to automatically run Node-RED at boot time.
#! /bin/sh
# Starts and stops Node-RED
# /etc/init.d/nodered
### BEGIN INIT INFO
# Provides: node-red
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Node-RED initialisation