Skip to content

Instantly share code, notes, and snippets.

View berserker1's full-sized avatar
🎯
Focusing

Aaryan Bhagat berserker1

🎯
Focusing
View GitHub Profile
"""
Implementation of the Alpha Divergence Estimators from Section 4.3 of the paper
"Empirical Squared Hellinger Distance Estimator and Generalizations to a Family of α-Divergence Estimators"
https://pmc.ncbi.nlm.nih.gov/articles/PMC10137612/#sec4-entropy-25-00612
"""
import numpy as np
from scipy.spatial import KDTree
from scipy.special import gamma, digamma
import matplotlib.pyplot as plt
This file has been truncated, but you can view the full file.
2021-06-19 13:10:31.9839513 9004 18284 SLS Get response for service 855E8A7C-ECB4-4CA3-B045-1DFA50104289 - forceExpire[False] asyncRefreshOnExpiry[False]
2021-06-19 13:10:32.2093371 9004 18284 Agent Added update 7DECEB2A-1088-457C-8615-AC239416D00A.1 to search result
2021-06-19 13:10:32.2093414 9004 18284 Agent Removing unreferenced framework update {7DECEB2A-1088-457C-8615-AC239416D00A}.1 from search result.
2021-06-19 13:10:32.2093654 9004 18284 Agent Found 0 updates and 0 categories in search; evaluated appl. rules of 17 out of 55 deployed entities
2021-06-19 13:10:32.2108099 9004 18284 Agent * END * Finding updates CallerId = Update;ScanForUpdates, Id = 92, Exit code = 0x00000000 (cV = XV8Ik1/idk2Vmox/.1.0.1.0.0.1)
2021-06-19 13:10:32.2147709 9004 18284 IdleTimer WU operation (CSearchCall::Init ID 92, operation # 491) stopped; does not use network; is at background priority
2021-06-19 13:10:32.2151999 15716 16392 ComApi *RESUMED* S
@berserker1
berserker1 / boot_error.md
Last active July 2, 2020 13:30
Kaspersky Rescue Disk Boot Failing

IMG_20200702_181518__02

@berserker1
berserker1 / a.svg
Created June 5, 2020 14:01
Slow down ubuntu stack overflow question
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@berserker1
berserker1 / a.txt
Last active June 5, 2020 12:23
Signal Desktop yarn error log
yarn install v1.22.4
[1/6] Validating package.json...
[2/6] Resolving packages...
[3/6] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/6] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "prop-types@^15.0.0".
warning " > [email protected]" has unmet peer dependency "prop-types@^15.5.7".
warning " > [email protected]" has incorrect peer dependency "grunt@~0.4.5".
from flask import Flask, render_template
# from db_setup import init_db, db_session
from forms import MusicSearchForm
from flask import flash, request, redirect, url_for
import requests
from query import do_query
# from models import Album
app = Flask(__name__)
Usage: mailman members [OPTIONS] LISTSPEC
Display a mailing list's members, with filtering along various criteria.
Options:
-a, --add FILENAME Add all member addresses in FILENAME.
FILENAME can be '-' to indicate standard
input. Blank lines and lines That start
with a '#' are ignored. Without this
option, this command displays mailing list
def dbconnection(function):
"""Decorator for getting at the database connection.
Use this to avoid having to access the global `config.db.store`
attribute. This calls the function with `store` as the first argument.
"""
def wrapper(*args, **kws):
# args[0] is self, if there is one.
if len(args) > 0:
return function(args[0], config.db.store, *args[1:], **kws)