Skip to content

Instantly share code, notes, and snippets.

View ikbalsingh's full-sized avatar

Ikbal Singh ikbalsingh

  • San Jose, CA
View GitHub Profile
import requests
import gzip
import shutil
import os
def download_and_extract_gz(url):
# Send an HTTP GET request to the URL
response = requests.get(url)
if response.status_code == 200:
import java.io.*;
import java.util.*;
public class C_Comment_Parser {
public static void main(String[] args) {
System.out.println(parseComments("#include <stdio.h>\nint main()\n{\n\t/* printf() displays \n\t\t the string inside quotation*/\n\tprintf(\"Hello, World!\");\n\treturn 0;\n}"
));
}
@ikbalsingh
ikbalsingh / prettyPrintJson.java
Created April 26, 2019 15:51
Pretty Prints JSON using Java.
import java.io.*;
import java.util.*;
public class JSONPetty {
public static void main(String[] args) {
String myJsObj = "['foo', {'bar':['baz',null,1.0,2]}]";
System.out.println(prettyPrint(myJsObj));
}
@ikbalsingh
ikbalsingh / appelantformat.txt
Created October 19, 2018 18:13
List of appelants format.
RAMESH KUMAR ...APPELLANT(S)
accused Harcharan Singh
appellant Ramesh Kumar
Harcharan Singh appellant
accused appellant Ramesh Kumar
DEO NATH RAI ..APPELLANT
the accused Wakil Rai, Ramayan Rai, Raj Ballam Rai, Ashok Rai and Sheo Kumar Rai
@ikbalsingh
ikbalsingh / txt
Created September 24, 2018 22:15
Links of legal judgements from supreme court website
#1 Jan 2018 till 25 Sept 2018
https://www.sci.gov.in/supremecourt/2018/28057/28057_2018_Judgement_24-Sep-2018.pdf
https://www.sci.gov.in/supremecourt/2018/27523/27523_2018_Judgement_24-Sep-2018.pdf
https://www.sci.gov.in/supremecourt/2008/18764/18764_2008_Judgement_24-Sep-2018.pdf
https://www.sci.gov.in/supremecourt/2008/11840/11840_2008_Judgement_24-Sep-2018.pdf
https://www.sci.gov.in/supremecourt/2018/31088/31088_2018_Judgement_24-Sep-2018.pdf
https://www.sci.gov.in/supremecourt/2016/19363/19363_2016_Judgement_20-Sep-2018.pdf
https://www.sci.gov.in/supremecourt/2017/33034/33034_2017_Judgement_20-Sep-2018.pdf
https://www.sci.gov.in/supremecourt/2007/7012/7012_2007_Judgement_20-Sep-2018.pdf