Skip to content

Instantly share code, notes, and snippets.

View karimamd's full-sized avatar

Kareem Abdelsalam karimamd

  • Deliveroo
  • London, UK
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Note Taking App</title>
</head>
<body>
<h1>Note Taking App</h1>
<div id="note">
<h2 id="note-title">Note Title</h2>
!toco \
--graph_def_file=output_graph.pb \
--output_file=xd_graph.tflite \
--output_format=TFLITE \
--input_shape=32,256,192,3 \
--input_array= NAME OF INPUT MODEL OF YOUR MODEL \
--output_array= NAME OF OUTPUT LAYER OF YOUR MODEL \
--inference_type=FLOAT \
--inference_input_type=FLOAT \
@karimamd
karimamd / Download IMDB dataset into google colab and extract files
Last active March 29, 2018 18:44
Code to put in a code cell in Google's colaboratory/jupyter notebooks to download and extract IMDB's reviews dataset and have a final folder that you can manipulate through code or linux commands
!rm -rf datalab
!wget http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz
!ls
!uncompress aclImdb_v1.tar.gz
!tar -xvf aclImdb_v1.tar
!rm aclImdb_v1.tar
!ls
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
char** str_split(char* a_str, const char a_delim)
{
char** result = 0;
size_t count = 0;
char* tmp = a_str;