Student : Sanskar Jethi
Github : stealthanthrax
Organisation : FOSSASIA
SUSI_Chromebot: Susi_chromebot is a light extension made in replacement for susi.ai web app.
Issues : link
Student : Sanskar Jethi
Github : stealthanthrax
Organisation : FOSSASIA
SUSI_Chromebot: Susi_chromebot is a light extension made in replacement for susi.ai web app.
Issues : link
#! /bin/bash | |
# ECHO COMMAND | |
# echo Hello World! | |
# VARIABLES | |
# Uppercase by convention | |
# Letters, numbers, underscores | |
NAME="Bob" | |
# echo "My name is $NAME" |
#! /bin/bash | |
# ECHO COMMAND | |
# echo Hello World! | |
# VARIABLES | |
# Uppercase by convention | |
# Letters, numbers, underscores | |
NAME="Bob" | |
# echo "My name is $NAME" |
GSoC 2018 Work - Sanskar Jethi
Student: Sanskar Jethi
Github: @stealthanthrax
Organisation: FOSSASIA
Project Title: To Make a Plug and Play adaptation for SUSI.AI
from collections import deque | |
def get_last(filename, n=5): | |
""" | |
Returns the last n lines from the file | |
""" | |
try: | |
with open(filename) as f: | |
return deque(f, n) |
from collections import defaultdict | |
from heapq import * | |
def dijkstra(edges, f, t): | |
g = defaultdict(list) | |
for l,r,c in edges: | |
g[l].append((c,r)) | |
q, seen, mins = [(0,f,())], set(), {f: 0} | |
while q: |
from csv import reader as csv_reader | |
with open("sample_input.csv") as input_fh: | |
people = csv_reader(input_fh) | |
headers = next(people) | |
for row in people: | |
person = (dict(zip(headers, row))) | |
if int(person["age"]) >= 30: | |
print("Name: {name}, City: {city}".format(name=person["name"], city=person["city"])) |
from json import load as json_load | |
with open("sample_input.json") as input_fh: | |
people = json_load(input_fh) | |
for person in people["people"]: | |
if person["age"] >= 30: | |
print("Name: {name}, City: {city}".format(name=person["name"], city=person["city"])) |