Skip to content

Instantly share code, notes, and snippets.

View dragneelfps's full-sized avatar
💻
Developer @ Uber

Sourabh dragneelfps

💻
Developer @ Uber
View GitHub Profile
@dragneelfps
dragneelfps / .gitignore
Created January 22, 2019 18:10
Git Ignore for Android Projects [https://stackoverflow.com/a/17803964]
#built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
@dragneelfps
dragneelfps / GraphViews.java
Created January 19, 2018 18:13
Top, Bottom, Left and Right Views for a Graph
package graphs;
import java.util.*;
class Graph{
Node root = null;
Graph(){
}
static class Node{
int data;
Node left, right;
@dragneelfps
dragneelfps / replace_characters.py
Created December 20, 2017 10:23
Replace the characters in the string
#Characters to replace
escape_table = {
"&" : " ",
"#" : "1"
}
#Initial string
text = "asd&#"
#Final string
new = "".join(escape_table.get(c,c) for c in text)