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

create a new repository on the command line

echo "# sample_git_tweak" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:nipunsadvilkar/sample_git_tweak.git
git push -u origin master
# __author__: kapoorabhish, nipunsadvilkar
import requests
user_name = "uname"
password = "*******"
file_url = "url"
r = requests.post(file_url, data={"umlsuser": user_name, "umlspw": password},
stream=True)
@nipunsadvilkar
nipunsadvilkar / useful_pandas_snippets.py
Last active August 9, 2018 10:40 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
#unique number of values in a DataFrame column
df[column_name].nunique()
# List unique values in a DataFrame column
pd.unique(df.column_name.ravel())
# Convert Series datatype to numeric, getting rid of any non-numeric values
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True)
(http://stackoverflow.com/questions/17071871/select-rows-from-a-dataframe-based-on-values-in-a-column-in-pandas)

Installation of Jupyterhub on remote server

  1. Linux Anaconda Installation (Anaconda conveniently installs Python, the Jupyter Notebook, and other commonly used packages for scientific computing and data science. )

curl -vX POST http://server/api/v1/places.json -d @testplace.json \
--header "Content-Type: application/json"

curl -vX REQUEST url -d @filepath -H "Content-Type:application/json"

@nipunsadvilkar
nipunsadvilkar / index_creation_mysql.md
Created August 17, 2017 12:07
create index for mysql tables
ALTER TABLE `analytics` ADD `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY

SELECT count(distinct encounter_id) FROM `analytics`

CREATE INDEX registration_no ON analytics(registration_no(30));

CREATE INDEX subsection ON analytics(subsection(50));
@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 {
@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

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?