Skip to content

Instantly share code, notes, and snippets.

View ofou's full-sized avatar
πŸš€
Launching

Omar Nomad ofou

πŸš€
Launching
View GitHub Profile
@ofou
ofou / requirements.py
Last active June 10, 2018 06:54
Data Science basic packages (install using pip)
pandas # (data analysis)
NumPy #(multi-dimensional arrays)
SciPy # (algorithms to use with numpy)
matplotlib # (data visualization)
h5py # (store & manipulate data)
PyTables # (managing HDF5 datasets)
Jupyter # (research collaboration)
IPython # (powerful shell)
hdfs # (C/C++ wrapper for Hadoop)
pymongo # (MongoDB driver)
@ofou
ofou / Cartesian coordinate system.html
Created November 3, 2017 03:24
D3 cartesian coordinate system
<div id="graph"></div>
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 46 columns, instead of 32 in line 2.
Name,Emoji,Energ_Kcal,Protein_(g),Lipid_Tot_(g),Carbohydrt_(g),Fiber_TD_(g),Sugar_Tot_(g),Calcium_(mg),Iron_(mg),Magnesium_(mg),Phosphorus_(mg),Potassium_(mg),Sodium_(mg),Zinc_(mg),Copper_mg),Manganese_(mg),Selenium_(璌g),Vit_C_(mg),Thiamin_(mg),Riboflavin_(mg),Niacin_(mg),Panto_Acid_mg),Vit_B6_(mg),Folate_Tot_(璌g),Folic_Acid_(璌g),Food_Folate_(璌g),Folate_DFE_(璌g),Choline_Tot_ (mg),Vit_B12_(璌g),Vit_A_IU,Vit_A_RAE,Retinol_(璌g),Alpha_Carot_(璌g),Beta_Carot_(璌g),Beta_Crypt_(璌g),Lycopene_(璌g),Lut+Zea_ (璌g),Vit_E_(mg),Vit_D_璌g,Vit_D_IU,Vit_K_(璌g),FA_Sat_(g),FA_Mono_(g),FA_Poly_(g),Cholestrl_(mg)
grapes,πŸ‡,0.69,0.0072,0.0016,0.181,0.009,0.1548,0.1,0.0036,0.07,0.2,1.91,0.02,0.0007,0.00127,0.00071,0.001,0.032,0.00069,0.0007,0.00188,0.0005,0.00086,0.02,0,0.02,0.02,0.056,0,0.66,0.03,0,0.01,0.39,0,0,0.72,0.0019,0,0,0.146,0.00054,0.00007,0.00048,0
melon,🍈,0.28,0.0111,0.001,0.0658,0.009,0.0569,0.11,0.0034,0.11,0.05,1.82,0.09,0.0007,0.0006,0.00035,0.004,0.218,0.00015,0.00031,0.00232,0.00084,0.00163,0.08,0,0.08,0.08,0.076,0,0,0
Name Emoji Energ_Kcal Protein_(g) Lipid_Tot_(g) Carbohydrt_(g)
grapes πŸ‡ 0.69 0.0072 0.0016 0.181
melon 🍈 0.28 0.0111 0.001 0.0658
watermelon πŸ‰ 0.3 0.0061 0.0015 0.0755
tangerine 🍊 0.53 0.0081 0.0031 0.1334
lemon πŸ‹ 0.29 0.011 0.003 0.0932
banana 🍌 0.89 0.0109 0.0033 0.2284
pineapple 🍍 0.5 0.0054 0.0012 0.1312
red apple 🍎 0.63 0.002 0.0018 0.1522
green apple 🍏 0.58 0.0044 0.0019 0.1361
@ofou
ofou / emojifoods.csv
Created November 1, 2017 00:38
Emoji Foods Nutritional Data Dataset
Name Emoji Energ_Kcal Protein_(g) Lipid_Tot_(g) Carbohydrt_(g)
grapes πŸ‡ 69 0.72 0.16 18.1
melon 🍈 28 1.11 0.1 6.58
watermelon πŸ‰ 30 0.61 0.15 7.55
tangerine 🍊 53 0.81 0.31 13.34
lemon πŸ‹ 29 1.1 0.3 9.32
banana 🍌 89 1.09 0.33 22.84
pineapple 🍍 50 0.54 0.12 13.12
red apple 🍎 63 0.2 0.18 15.22
green apple 🍏 58 0.44 0.19 13.61
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 47 columns, instead of 14 in line 3.
Name Emoji Category Energ_Kcal Protein_(g) Lipid_Tot_(g) Carbohydrt_(g) Fiber_TD_(g) Sugar_Tot_(g) Calcium_(mg) Iron_(mg) Magnesium_(mg) Phosphorus_(mg) Potassium_(mg) Sodium_(mg) Zinc_(mg) Copper_mg) Manganese_(mg) Selenium_(璌g) Vit_C_(mg) Thiamin_(mg) Riboflavin_(mg) Niacin_(mg) Panto_Acid_mg) Vit_B6_(mg) Folate_Tot_(璌g) Folic_Acid_(璌g) Food_Folate_(璌g) Folate_DFE_(璌g) Choline_Tot_ (mg) Vit_B12_(璌g) Vit_A_IU Vit_A_RAE Retinol_(璌g) Alpha_Carot_(璌g) Beta_Carot_(璌g) Beta_Crypt_(璌g) Lycopene_(璌g) Lut+Zea_ (璌g) Vit_E_(mg) Vit_D_璌g Vit_D_IU Vit_K_(璌g) FA_Sat_(g) FA_Mono_(g) FA_Poly_(g) Cholestrl_(mg)
grapes πŸ‡ fruit 69 0.72 0.16 18.1 0.9 15.48 10 0.36 7 20 191 2 0.07 0.127 0.071 0.1 3.2 0.069 0.07 0.188 0.05 0.086 2 0 2 2 5.6 0 66 3 0 1 39 0 0 72 0.19 0 0 14.6 0.054 0.007 0.048 0
melon 🍈 fruit 28 1.11 0.1 6.58 0.9 5.69 11 0.34 11 5 182 9 0.07 0.06 0.035 0.4 21.8 0.015 0.031 0.232 0.084 0.163 8 0 8 8 7.6 0 0 0 0 0 0 0 0 26 0.05 0 0 2.5 0.025 0.002 0.039 0
watermelon πŸ‰ fruit 30 0.61 0.15 7.55 0.4 6.2 7 0.24 10 11 11
@ofou
ofou / Tensorflow SR28 Emoji Foods.json
Last active July 19, 2017 06:13
Tensorflow Emoji Foods Config File
{
"embeddings": [
{
"tensorName": "Emoji Foods",
"tensorShape": [
1000,
50
],
"tensorPath": "https://gist.githubusercontent.com/Peel40/6b92773a163be49d111932c6bfa9199d/raw/7f745139ea08fa4b702c1b9154869ceb6c7536b1/SR28%2520Emoji%2520Tensors.tsv",
"metadataPath": "https://gist.githubusercontent.com/Peel40/6b92773a163be49d111932c6bfa9199d/raw/7f745139ea08fa4b702c1b9154869ceb6c7536b1/SR28%2520Emoji%2520Metadata.tsv"
@ofou
ofou / SR28 Emoji Metadata.tsv
Last active July 19, 2017 06:12
SR28 Emoji Foods Dataset
Name Emoji Category
grapes πŸ‡ fruit
melon 🍈 fruit
watermelon πŸ‰ fruit
tangerine 🍊 fruit
lemon πŸ‹ fruit
banana 🍌 fruit
pineapple 🍍 fruit
red apple 🍎 fruit
green apple 🍏 fruit
@ofou
ofou / MissingFeatureSeries.md
Last active August 9, 2019 08:53
Cool Startup, Research and Projects Ideas

Missing Feature Series

A creative exploration of the missing features in popular tech companies.

Spotify

  • Sample recognition and music exploration.
  • Wave visualization in the playback control.
  • Traveling by music. What are listning in your neigbour city? Musical maps