You can post a json file with curl
like so:
curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION
so for example:
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
Competitions:- | |
https://www.kaggle.com/ | |
https://www.hackerearth.com/ | |
Books:- | |
Introduction to Algorithms By Thomas H Cormen | |
Pattern Recognition and Machine Learning By Christopher M. Bishop | |
Freakonomics By Steven D. Levitt and Stephen J. Dubner |
## 1st Sem | |
Percentage= 74.69% | |
Total Credits Secured= 27 | |
Credit Percentage= 71.74% | |
Marks Obtained= 971/1300 | |
College Rank= 99 | |
University Rank= 278 | |
## 2nd Sem | |
Percentage= 69.58% |
# RGB to Lab conversion | |
# Step 1: RGB to XYZ | |
# http://www.easyrgb.com/index.php?X=MATH&H=02#text2 | |
# Step 2: XYZ to Lab | |
# http://www.easyrgb.com/index.php?X=MATH&H=07#text7 | |
def rgb2lab(inputColor): |
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
require 'json' | |
# add credentials here | |
akid = "" | |
secret_key = "" | |
Aws.config.update({ |
#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) | |
#Grab DataFrame rows where column has certain values | |
valuelist = ['value1', 'value2', 'value3'] | |
df = df[df.column.isin(value_list)] |