Skip to content

Instantly share code, notes, and snippets.

Deep Learning, Data Structures, Algorithms, and Problem Solving

Chanchana Sornsoontorn off99555

Deep Learning, Data Structures, Algorithms, and Problem Solving
View GitHub Profile
dpryden /
Created Oct 20, 2014
Example of a ClassLoader leak in Java
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
* Example demonstrating a ClassLoader leak.
* <p>To see it in action, copy this file to a temp directory somewhere,
craffel /
Created Jan 10, 2015
Draw a neural network diagram with matplotlib!
import matplotlib.pyplot as plt
def draw_neural_net(ax, left, right, bottom, top, layer_sizes):
Draw a neural network cartoon using matplotilb.
>>> fig = plt.figure(figsize=(12, 12))
>>> draw_neural_net(fig.gca(), .1, .9, .1, .9, [4, 7, 2])
PurpleBooth /
Last active Jan 24, 2022
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


stefanthoss /
Last active Feb 19, 2021
Import data from a MySQL database table into a Pandas DataFrame using the pymysql package.
mport pandas as pd
import pymysql
from sqlalchemy import create_engine
engine = create_engine("mysql+pymysql://USER:PASSWORD@HOST:PORT/DBNAME")
df = pd.read_sql_query("SELECT * FROM table", engine)
off99555 / Machine Learning
Last active Apr 1, 2020
Machine learning resources and related artificial intelligence concepts.
View Machine Learning
TangChr / .gitconfig
Last active Aug 6, 2018
Adding Visual Studio Code to .gitconfig
View .gitconfig
editor = "code --wait"
tool = default-difftool
[difftool "default-difftool"]
cmd = "code --wait --diff $LOCAL $REMOTE"
anbrjohn /
Last active Mar 5, 2021 — forked from craffel/
Draw a neural network diagram with matplotlib!
#!/usr/bin/env python3
Created by @author: craffel
Modified on Sun Jan 15, 2017 by anbrjohn
-Changed xrange to range for python 3
-Added functionality to annotate nodes
mrry /
Last active Jun 29, 2021
[DEPRECATED] TensorFlow on Windows self-check
# Copyright 2015 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
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
datlife /
Last active Jan 25, 2021
Training Keras model with
"""An example of how to use tf.Dataset in Keras Model"""
import tensorflow as tf # only work from tensorflow==1.9.0-rc1 and after
def training_pipeline():
# #############
# Load Dataset