Skip to content

Instantly share code, notes, and snippets.

View datdinhquoc's full-sized avatar

Dat Dinhquoc datdinhquoc

View GitHub Profile
@neilslater
neilslater / example_dnn.py
Last active August 25, 2019 08:10
100% accuracy on example from AI Stack Exchange question
import numpy as np
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers import Dense, Activation
from keras.optimizers import SGD
from keras.utils import to_categorical
def get_data():
X = np.array([[1,2], [1,12], [1,17], [9,33], [48,49], [48,50]])
@bmcbride
bmcbride / deleteFromImgur.js
Last active May 25, 2022 17:53
Upload image from HTML form to http://imgur.com/
function deleteFromImgur() {
$.ajax({
url: "https://api.imgur.com/3/image/{id}",
type: "DELETE",
headers: {
"Authorization": "Client-ID YOUR-CLIEND-ID-GOES-HERE"
},
success: function(response) {
//console.log(response);
}