Skip to content

Instantly share code, notes, and snippets.

View hmharshit's full-sized avatar

Harshit Maheshwari hmharshit

  • Learncool
  • Delhi, India
View GitHub Profile

GSoC 2020 Final Report with C3G

Introduction

This summer I had a great time working on Ingesting the Canadian Common CV under the guidance of the Simon Chénard. This work product describes what I accomplished this summer and what is left to do.

The project goal was to develop a tool that parses the CCV & saves data in a database so that relevant data can be used in external applications.

import requests
def run():
print(requests.get("https://www.nseindia.com/api/equity-stockIndices?index=NIFTY%2050",
headers={
"user-agent": "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36"
}).json())
run()
void setup() {
size(640, 360);
noStroke();
noLoop(); // Run once and stop
}
void draw() {
background(100);
fill(31.875); // to fill color in 1st circle
arc(width/2, height/2, 150, 150, 0, 1.25664); //
//***************************************************************
// HEADER FILE USED IN PROJECT
//****************************************************************
// g++ -std=c++11 -I/usr/local/include demo.cpp -lpqxx -lpq
#include <termios.h>
#include <stdio.h>
#include <cstdlib>
#include <iostream>
@hmharshit
hmharshit / motivational_quotes.py
Created January 28, 2018 09:21
It posts motivational quotes on twitter. Update the credentials in the file and install requirements.
"""This script tweets random motivational quotes on your twitter account"""
import requests
import datetime
import tweepy
# Update the credentials of your a/c. Refer here to make app https://apps.twitter.com
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_TOKEN = ''
https://jsbin.com/foramo/1/edit?html,js,output
https://jsbin.com/cahetam/1/edit?html,js,output
https://jsbin.com/golela/1/edit?html,js,output
https://jsbin.com/vowokof/1/edit?html,js,output
https://jsbin.com/vezilul/1/edit?html,js,output
https://jsbin.com/zeqafa/1/edit?html,js,output
https://jsbin.com/zifixup/1/edit?html,js,output
https://jsbin.com/mategi/1/edit?html,js,output
https://jsbin.com/sepuzen/1/edit?html,js,output
https://jsbin.com/zizateh/1/edit?html,js,output