Skip to content

Instantly share code, notes, and snippets.

View lgtml's full-sized avatar

Leigh Martell lgtml

  • ReCollect
  • Halifax, NS
View GitHub Profile
### Keybase proof
I hereby claim:
* I am lgtml on github.
* I am lgtml_rwg (https://keybase.io/lgtml_rwg) on keybase.
* I have a public key ASCoMSe8DMVvPDLYRUIfNghOZs4h_JMp4PpHEONer8m1swo
To claim this, I am signing this object:
@lgtml
lgtml / check_grade_ssl.py
Last active November 30, 2020 13:33
check ssl labs with python output junit
import sys
import time
import re
from ssllabsscanner import resultsFromCache,newScan
from junit_xml import TestSuite,TestCase
def passing_grade(grade):
if re.match("A", grade):
return True
return False
### Keybase proof
I hereby claim:
* I am lgtml on github.
* I am leighmartell (https://keybase.io/leighmartell) on keybase.
* I have a public key whose fingerprint is 6A59 237E E6BC 11EC D319 99DC 35EC 9B2A 6262 2B99
To claim this, I am signing this object:
Goal: multiplayer [hangman](https://en.wikipedia.org/wiki/Hangman_%28game%29)
Picking an incorrect letter advances the hangman state. The hangman has 6 body state: head, body, left leg, right leg, left arm, right arm. Once all body parts are drawn, the game is over.
For GoInstant, this means that clients will be submitting letter choices. Once the game is finished, the room cannot be updated (enforced by the trigger).
# Phase 0: client
listens to a bunch of keys:
- `/body` integer from 0 to 6. 6 is YOU LOSE.
import urllib2
import json
from supervisor import childutils
import sys
import socket
class PagerDutyNotifier(object):
def __init__(self, pd_service_key):
self.pd_service_key = pd_service_key