Skip to content

Instantly share code, notes, and snippets.

Ricardo de Azambuja ricardodeazambuja

Block or report user

Report or block ricardodeazambuja

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View MNIST Keras - Simple, but interactive.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test_jupyter_load.py
print('This piece of code came straight from a GitHub Gist!')
@ricardodeazambuja
ricardodeazambuja / Dockerfile
Last active Apr 3, 2019
Dockerfile for Tensorflow 2.0 (GPU) and opengl enabled (nvidia-docker2)
View Dockerfile
#
# Dockerfile for Tensorflow 2.0 (GPU) and opengl enabled (nvidia-docker2)
#
FROM nvcr.io/nvidia/cudagl:10.0-runtime-ubuntu18.04 as base
# Tensorflow 2 has problems with CUDA 10.1
ARG DEBIAN_FRONTEND=noninteractive
View microphone-to-numpy-array-from-your-browser-in-colab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ricardodeazambuja
ricardodeazambuja / webcam-to-numpy-array-from-your-browser-in-colab.ipynb
Last active Mar 17, 2019
Webcam to Numpy array from your browser in Colab
View webcam-to-numpy-array-from-your-browser-in-colab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ricardodeazambuja
ricardodeazambuja / ffmpeg.md
Created Mar 6, 2019 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files
View ffmpeg.md

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

View ros_py35_setup.bash
#!/usr/bin/env bash
# Create isolated ROS Workspace
cd ~
mkdir ros_py35
cd ros_py35
# Unset sourced workspace
# Go to ~/.bashrc and comment out lines from previous installation of ROS (Lunar)
@ricardodeazambuja
ricardodeazambuja / draw_neural_net.py
Created Feb 3, 2019 — forked from craffel/draw_neural_net.py
Draw a neural network diagram with matplotlib!
View draw_neural_net.py
import matplotlib.pyplot as plt
def draw_neural_net(ax, left, right, bottom, top, layer_sizes):
'''
Draw a neural network cartoon using matplotilb.
:usage:
>>> fig = plt.figure(figsize=(12, 12))
>>> draw_neural_net(fig.gca(), .1, .9, .1, .9, [4, 7, 2])
View colab-github-test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Dockerfile
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
You can’t perform that action at this time.