Skip to content

Instantly share code, notes, and snippets.

@gunnar2k
gunnar2k / imageUploads.coffee
Created September 26, 2015 13:32
Node/Express upload POST file to AWS
express = require('express')
router = express.Router()
formidable = require('formidable')
s3 = require('s3')
s3client = s3.createClient
s3Options:
accessKeyId: process.env.AWS_KEY
secretAccessKey: process.env.AWS_SECRET
region: "eu-west-1"
import tensorflow as tf
learning_rate = 0.00475
x_ph = tf.placeholder("float")
y_ph = tf.placeholder("float")
w = tf.Variable(0.0, name="weights")
b = tf.Variable(0.0, name="b")