Skip to content

Instantly share code, notes, and snippets.

@OrkoHunter
OrkoHunter / text2pdf.py
Created January 8, 2019 12:20
text to pdf creater
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import reportlab.lib.pagesizes
from reportlab.pdfgen.canvas import Canvas
from reportlab.lib import units
from reportlab.lib.styles import ParagraphStyle
from reportlab.platypus import Paragraph, SimpleDocTemplate, BaseDocTemplate, XPreformatted
from reportlab.lib.colors import red, black, navy, white, green
@OrkoHunter
OrkoHunter / gh_api_script.py
Created June 7, 2018 23:18
GitHub API script to check the existence of NOTICE files
import requests
username = ""
token = ""
def fetch_all_pages(query, params=None, headers=None):
"""
If the query returns paginated results,
this function recursively fetchs all the results, concatenate and return.
"""
@OrkoHunter
OrkoHunter / icyflame.sh
Created April 18, 2018 06:58
dc trends capture packets
sudo tcpdump -b -t src 10.109.13.93 -w incoming-search-`date +%s`.pcap -c 1000;
@OrkoHunter
OrkoHunter / generate_table_of_contents.py
Created December 22, 2017 15:41
Generate table of contents in markdown
a = """### When do I start? Is it too late? ^
It varies with the organizations. Few orgs have contributors who start way too early every year while some orgs are new and receives traction only when GSoC releases the confirmed org list for that year. But I do not think it's ever too late to apply for the next GSoC. I came to know about my organization (NetworkX under after Python Software Foundation) around a week after it was officially released ! I was 6 days late for [my first comment](https://github.com/ networkx/networkx/issues/1167#issuecomment-77666191)) But mostly it's not late as long as GSoC has not officially released the list of organizations.
### Do first year undergraduate students qualify? I find this very hard.
Yes, a good number of first years qualify for GSoC. Nothing will change if you just wait for one more year, start now. You surely can learn whatever your college will teach you related to GSoC, in days, weeks or months.
### I get scared when I see seniors applying on the same projec
@OrkoHunter
OrkoHunter / script.js
Created December 20, 2017 20:32
Tampermonkey script to remove Unread Mentions on Slack due to slackbot
// ==UserScript==
// @name block-slackbot
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author @OrkoHunter
// @match https://kossiitkgp.slack.com/*
// @grant none
// ==/UserScript==
{
"auto_complete": true,
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
@OrkoHunter
OrkoHunter / server.py
Created September 1, 2017 15:44
http.server with upload
import os
from flask import Flask, request, redirect, url_for
from werkzeug import secure_filename
UPLOAD_FOLDER = '.'
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
@app.route("/", methods=['GET', 'POST'])
{"feed":[{"year":2017,"content":[{"content":[{"title":"Python’s easter eggs and hidden jokes","link":"https://medium.com/p/d7368c7fe2c2","tags":["fun","programming","python"]}],"month":"May"},{"content":[{"title":"Introducing Muriel","link":"https://medium.com/p/7bcc7e362541","tags":["electron","javascript","programming","movies","tv"]},{"title":"Lessons for creating good open source software","link":"https://medium.com/p/1b7bbbc13b13","tags":["open-source","programming","tech"]},{"title":"धुआं","link":"https://medium.com/p/3d9adfeb411e","tags":["poetry","literatura","hindi"]}],"month":"March"},{"content":[{"title":"Why do I hate my friends on Instagram?","link":"https://medium.com/p/8d38f4cdd3cc","tags":["photography","life-lessons","social-media","travel"]},{"title":"Keep : A personal shell command keeper","link":"https://medium.com/p/dac3ab488626","tags":["linux","productivity","programming"]}],"month":"February"},{"content":[{"title":"Linux fortunes ❤","link":"https://medium.com/p/6dbfbc996b39","tags":["p
@OrkoHunter
OrkoHunter / description.md
Created May 8, 2017 18:19
OpenSegment Machine Learning in Production

In Python, currently we have libraries like Theano, TensorFlow and PyTorch where you can write low level code for Deep Learning, then there are libraries like Keras (built on top of Theano and Tensorflow) and Lasagne (built on top of Theano) which gives us more ease to create a production ready model.

We have tiny-dnn in C++ which has shown very promising speed up on CPU.

But any how the user has to write code in one of the language and it hinders a person's reach to Deep Learning model. When nearly every Deep Learning Paper has a graphical representation of the model, and nearly every Deep Learning library creates a graph of the model before training, why can't we just let the user create a graph and run the model?

But there is a compromise, the more high level abstraction you get to manipulating with the model becomes harder, but most of the deep learning model in production needs no manipulation as such.

We propose to create an interface such that the user would be able to create a graph without writin

Forward youtube vid
https://www.youtube.com/watch?v=haZ7-qqxXXg#t=5.252664