Skip to content

Instantly share code, notes, and snippets.

View mittonface's full-sized avatar
🦆

Brent Mitton mittonface

🦆
View GitHub Profile
  1. Run this command somewhere, it will make two files localhost.key & localhost.crt
openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 365 -keyout localhost.key -out localhost.crt
  1. At the root of your project, create a certificates folder and move those two files into it.
  2. Also at the root of your project create a file called server.js give it the following
const { createServer } = require('https');
const { parse } = require('url');
https://media1.giphy.com/media/3og0IASftLyxCCb1XG/giphy.gif
(sfs_object)
(utf_string) first_name: ookateacher2
(utf_string) username: brentmitton+ookateacher2@ookaisland.com
(sfs_array) classList:
(sfs_object)
(utf_string) description: Another Grade 1
(utf_string) name: Another Grade 1 Class
(int) id: 694
(sfs_array) studentList:
(sfs_object)
(sfs_object)
(utf_string) first_name: Heather serafinski
(utf_string) username: hserafin
(sfs_array) classList:
(sfs_object)
(utf_string) description:
(utf_string) name: Heather's 2016 Pilot Class
(int) id: 691
(sfs_array) studentList:
(sfs_object)
# I'm going to try to optimize each parameter one at a time, I'm not
# sure if this makes sense, but the other option I see is randomly
# try to choose and entire best set of parameters
max_runs = 100
keep_going = True
while keep_going and max_runs >0:
keep_going = False
for p in range(len(self.nn.params)):
print 'adjusting', p