Skip to content

Instantly share code, notes, and snippets.

View manashmandal's full-sized avatar
👨‍💻
Probably Coding || ! Probably Coding

Manash Kumar Mandal manashmandal

👨‍💻
Probably Coding || ! Probably Coding
View GitHub Profile
@manashmandal
manashmandal / mp3towav.sh
Created July 9, 2017 04:18
Bulk Conversion From mp3 to wav using ffmpeg
for i in "/home/manash/me/research/text_to_speech/data/Gangtake_Gondogol/audio"/*
do
writefilename="/home/manash/me/research/text_to_speech/data/Gangtake_Gondogol/audio"/$(basename $i .mp3).wav
ffmpeg -i $i $writefilename
done
@manashmandal
manashmandal / notebook.ipynb
Created July 17, 2017 09:18 — forked from eamartin/notebook.ipynb
Understanding & Visualizing Self-Normalizing Neural Networks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@manashmandal
manashmandal / jasmine.c
Last active July 24, 2017 07:38
jasmine.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "jsmn.h"
/*
* A small example of jsmn parsing when JSON structure is known and number of
* tokens is predictable.
*/
@manashmandal
manashmandal / test.json
Last active July 30, 2017 18:50
JSMN Parser
{
"name" : "Manash",
"website" : "https://blog.manash.me",
"github" : "https://github.com/manashmndl",
"turnscoffeintocommits" : "yes"
}
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "jsmn.h"
#define JSON_FILE_PATH "../Parser/test.json"
#define BUFFER_SIZE 5000
#define MAX_TOKEN_COUNT 128
// Read files
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>D3plus 1.0 Example</title>
<!-- Adding D3 and D3plus Libraries -->
<script src="https://d3plus.org/js/d3.js"></script>
@manashmandal
manashmandal / index.html
Created August 11, 2017 16:51
d3plus 2.0
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
#exampleIframe {
# Actual Code : https://github.com/aymericdamien/TensorFlow-Examples/blob/master/notebooks/3_NeuralNetworks/convolutional_network.ipynb
# Modified By: Manash
from __future__ import division, print_function, absolute_import
# Import MNIST data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=False)
import tensorflow as tf
@manashmandal
manashmandal / TensorFlowSoftmax.py
Created September 18, 2017 14:17
Softmax Regression
import tensorflow as tf
# Import MNIST data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
# Parameters
learning_rate = 0.01
training_epochs = 10
batch_size = 100
@manashmandal
manashmandal / softmax_tf_gradients.py
Last active September 18, 2017 14:31
Softmax using tf.gradients
import tensorflow as tf
# Import MNIST data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
# Parameters
learning_rate = 0.01
training_epochs = 10
batch_size = 100