Multi-party ticket handling and coordination.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import logging | |
import os | |
from collections import namedtuple | |
import cv2 | |
import numpy as np | |
from matplotlib import pyplot as plt |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import logging | |
import os | |
from collections import namedtuple | |
import cv2 | |
import numpy as np | |
from matplotlib import pyplot as plt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yourapp | |
AUTH_BACKENDS = [ | |
yourapp.socker_auth | |
] | |
def socker_handle_connect(client): | |
while True: | |
msg = client.wait_for_message() | |
Usage:
curl -O https://gist.githubusercontent.com/joar/3618b29180ab0ff67ac7/raw/tacofont.py
python tacofont.py taco
🐓🌮🌮🌮🌮🌮🐓🐓🌮🌮🌮🐓🐓🌮🌮🌮🌮🌮🐓🌮🌮🌮🌮🌮🐓
🐓🐓🐓🌮🐓🐓🐓🌮🐓🐓🐓🌮🐓🌮🐓🐓🐓🐓🐓🌮🐓🐓🐓🌮🐓
🐓🐓🐓🌮🐓🐓🐓🌮🌮🌮🌮🌮🐓🌮🐓🐓🐓🐓🐓🌮🐓🐓🐓🌮🐓
🐓🐓🐓🌮🐓🐓🐓🌮🐓🐓🐓🌮🐓🌮🐓🐓🐓🐓🐓🌮🐓🐓🐓🌮🐓
🐓🐓🐓🌮🐓🐓🐓🌮🐓🐓🐓🌮🐓🌮🌮🌮🌮🌮🐓🌮🌮🌮🌮🌮🐓
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from itertools import permutations | |
print(len(list((lambda n: (lambda cols: (True for vec in permutations(range(n)) if n == len(set(vec[i]+i for i in cols)) == len(set(vec[i]-i for i in cols))))(range(n)))(int(sys.stdin.readline()))))) |
Without traffic source filtering http && http.content_type != "text/css" && http.content_type != "application/javascript" && http.content_type != "image/jpeg" && http.content_type != "image/png" && http.content_type != "image/gif"
With traffic source filtering ( in this case 173.203.203.8 is my remote server ) http && ( ip.src == 173.203.203.8 || ip.dst == 173.203.203.8 ) && http.content_type != "text/css" && http.content_type != "application/javascript" && http.content_type != "image/jpeg" && http.content_type != "image/png" && http.content_type != "image/gif"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const RIGHT = 0, | |
DOWN = 1.5707963267948966, | |
LEFT = Math.PI, | |
UP = -1.5707963267948966 | |
let DIRECTION_MAP = {} | |
DIRECTION_MAP[UP] = 'UP' | |
DIRECTION_MAP[DOWN] = 'DOWN' | |
DIRECTION_MAP[LEFT] = 'LEFT' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"graph": [], | |
"links": [ | |
{"source": 0, "target": 1}, | |
{"source": 0, "target": 2}, | |
{"source": 0, "target": 3}, | |
{"source": 0, "target": 4}, | |
{"source": 0, "target": 5}, | |
{"source": 0, "target": 6}, | |
{"source": 1, "target": 3}, |