Skip to content

Instantly share code, notes, and snippets.

Avatar

Harshit Maheshwari hmharshit

  • Learncool
  • Delhi, India
View GitHub Profile
View GSoC_2020_final_report.md

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.

View file.py
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()
View pie_chart
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); //
View gist:bb9ae42e7701d3d38b44b5647f831a09
//***************************************************************
// 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 Jan 28, 2018
It posts motivational quotes on twitter. Update the credentials in the file and install requirements.
View motivational_quotes.py
"""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 = ''
View object drills 1
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
View nuimber drills
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
View string drill project
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