Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View darrellsilver's full-sized avatar

Darrell Silver darrellsilver

View GitHub Profile
import json
import datetime
class DeepEncoder(json.JSONEncoder):
def default(self, obj):
if type(obj) in (datetime.datetime, datetime.date):
return obj.isoformat()
try:
@darrellsilver
darrellsilver / gist:5301496495073bd64a59
Last active December 4, 2015 21:47
Release notes for Owl

@channel: Hi all – Major upgrade to video and screensharing just went live! Here's what you need to know:

  • To screenshare you'll have to reenable your Thinkful extension. In Chrome, visit chrome://extensions and click "Enabled" on the Thinkful extension. In Firefox, visit about:addons, click on the Extensions tab, then click "Enable" on the Thinkful extension.
  • Clear your cache (or issue a hard refresh on the page). We have had some reports of screensharing failing silently. If this happens, try closing your browser tab and joining again from another tab.
  • The original video and screensharing tech is still available! If you have trouble with the new system. Click on "?" to find this fallback system.

What's new

  • Chat! 'Nuff said.
  • Reliability: A whole new backend using opentok should be much more reliable than the original implementation.

We're here to help & listen in the #project-owl channel. If you've had trouble with it in the past, time to try again.

@darrellsilver
darrellsilver / gist:e5dfe8b46da7eb99e20a6f1b3b3f26b5
Created April 29, 2016 15:24
Current mentors w/o active agreements
SELECT c.id, c.email, c.first_name, c.last_name
FROM contacts c
WHERE c.contact_type = 'Current mentor'
AND NOT c.id IN (
SELECT DISTINCT mentor_id
FROM agreements a
WHERE last_session is null
)
;