This file contains hidden or 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
from raven import Client | |
from raven.context import Context | |
# copy from your project | |
# in future can be passed with spark app options | |
dsn="https://[email protected]/34960" | |
environment="dev" | |
client = Client(dsn) | |
def some_mapper_function(e): |
This file contains hidden or 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 logging | |
from pyspark import SparkContext, SparkConf, BasicProfiler | |
from raven import Client | |
from raven.context import Context | |
class RavenContextProfiler(BasicProfiler): | |
raven_client = None |
This file contains hidden or 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 | |
import faiss | |
import numpy as np | |
# import psutil | |
import os | |
import platform | |
import time | |
This file contains hidden or 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
--- based on https://github.com/cedstrom/powermate-osx | |
--- https://raw.githubusercontent.com/cedstrom/powermate-osx/main/knob.lua | |
--- https://github.com/Hammerspoon/Spoons/blob/master/Source/MicMute.spoon/init.lua#L28 | |
hs.loadSpoon("MicMute") | |
spoon.MicMute:bindHotkeys( | |
{ | |
toggle = { | |
{"cmd", "shift"}, "M" |
OlderNewer