Skip to content

Instantly share code, notes, and snippets.

View nipunsadvilkar's full-sized avatar
:octocat:
Focusing

Nipun Sadvilkar nipunsadvilkar

:octocat:
Focusing
View GitHub Profile
@nipunsadvilkar
nipunsadvilkar / about.md
Created October 19, 2022 19:50 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@nipunsadvilkar
nipunsadvilkar / README.md
Created January 31, 2022 11:06 — forked from hofmannsven/README.md
Show/Hide hidden system files on macOS
@nipunsadvilkar
nipunsadvilkar / google_drive_file.py
Created September 22, 2021 15:00
script to download file using python
"""
Usage:
python google_drive_file.py 1nOwa2UN36-IDeZtqu4TLTNxGo8R5-mGF ~/Downloads/pycon_talk.mp4
"""
import requests
def download_file_from_google_drive(id, destination):
def get_confirm_token(response):
@nipunsadvilkar
nipunsadvilkar / download-vimeo-video.js
Created August 22, 2020 06:18 — forked from dmlogv/download-vimeo-video.js
Download private embed Vimeo video
// Ctrl+Shift+C to open Chrome Console.
// Choose an IFrame of the Vimeo Video with a comment `player.vimeo.com`
// in the drop-down list `top`.
// Run a script:
var videos = [];
$$('script')[3].textContent.match(/\{[^{]+?mp4[^}]+?\}/g).forEach(
x => { o = JSON.parse(x);
videos.push(o);});
videos.sort((a, b) => a.quality.localeCompare(b.quality)).forEach(
@nipunsadvilkar
nipunsadvilkar / deployment.md
Last active April 14, 2020 14:09
flask and gunicorn specific deployments
  1. How to pass args or kwargs to gunicorn?
# codename/app.py
def create_app():
    app = FrameworkApp()
    ...
    return app

$ gunicorn --workers=2 'codename.app:create_app()'

@nipunsadvilkar
nipunsadvilkar / custom_component_countries_api.py
Created October 26, 2018 05:28
Pipeline component for GPE entities and country meta data via a REST API
#!/usr/bin/env python
# coding: utf8
"""Example of a spaCy v2.0 pipeline component that requests all countries via
the REST Countries API, merges country names into one token, assigns entity
labels and sets attributes on country tokens, e.g. the capital and lat/lng
coordinates. Can be extended with more details from the API.
* REST Countries API: https://restcountries.eu (Mozilla Public License MPL 2.0)
* Custom pipeline components: https://spacy.io//usage/processing-pipelines#custom-components
{"lastUpload":"2018-09-20T13:26:37.455Z","extensionVersion":"v3.1.2"}

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@nipunsadvilkar
nipunsadvilkar / Learning Machine Learning - Tips.md
Created October 5, 2017 13:35
EECS 189 - Introduction to Machine learning,UC Berkeley

Tips

These tips have been collected through the years from professors, past and present. You can also check out the Learning How To Learn coursera for other general tips

Don't fall behind

In a conceptual class such as this, it is particularly important to maintain a steady effort throughout the semester, rather than hope to cram just before homework deadlines or exams. This is because it takes time and practice for the ideas to sink in. Make sure you allocate a sufficient number of hours every week to the class, including enough time for understanding the material as well as for doing assignments. (As a rough guide, you should expect to do at least three hours of problem solving for each hour of lecture.) Even though this class does not have any major projects for undergraduate students, you should plan to spend as much time on it as on any of your other technical classes. Possibly even more.

Take the homeworks seriously

The homeworks are explicitly designed **to help you to learn the materi

@nipunsadvilkar
nipunsadvilkar / index.html
Created September 5, 2017 12:10 — forked from siddharthpolisiti/index.html
Max-Min-Avg Chart
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {