GSOC Proposal for Django Secrets Manager by Muhammad Ashlah Shinfain
Table of Contents:
| from sklearn.naive_bayes import _BaseNB | |
| class MultiNB(_BaseNB): | |
| def __init__(self, models_dict): | |
| self.models_dict = models_dict | |
| def fit(self, X, y, **kwargs): | |
| for column, model in self.models_dict.items(): | |
| model.fit(X[:, column], y, **kwargs) |
| c := make(chan Return) | |
| ch.NotifyReturn(c) | |
| for r := range(c) { | |
| fmt.Println(r) | |
| } |
| 🔥 Creating kvm2 VM (CPUs=2, Memory=2200MB, Disk=20000MB) ... | |
| I0324 14:25:28.958816 22940 main.go:110] libmachine: Found binary path at /home/hashlash/.minikube/bin/docker-machine-driver-kvm2 | |
| I0324 14:25:28.958860 22940 main.go:110] libmachine: Launching plugin server for driver kvm2 | |
| I0324 14:25:28.969823 22940 main.go:110] libmachine: Plugin server listening at address 127.0.0.1:44705 | |
| I0324 14:25:29.028042 22940 main.go:110] libmachine: () Calling .GetVersion | |
| I0324 14:25:29.029004 22940 main.go:110] libmachine: Using API Version 1 | |
| I0324 14:25:29.029044 22940 main.go:110] libmachine: () Calling .SetConfigRaw | |
| I0324 14:25:29.029644 22940 main.go:110] libmachine: () Calling .GetMachineName | |
| I0324 14:25:29.030153 22940 main.go:110] libmachine: (kvm) Calling .GetMachineName | |
| I0324 14:25:29.030396 22940 main.go:110] libmachine: (kvm) Calling .DriverName |
GSOC Proposal for Django Secrets Manager by Muhammad Ashlah Shinfain
Table of Contents:
| #!/bin/sh | |
| (while true; do sudo -v; sleep 60; done)& | |
| job_pid=$! | |
| echo $job_pid | |
| cleanup(){ | |
| kill $job_pid | |
| } |
| from itertools import combinations, product | |
| from pysat.solvers import Minisat22 | |
| from sympy.core.symbol import Symbol | |
| from sympy.logic.boolalg import And, Equivalent, Not, Or, to_cnf | |
| def simplify_op(op, args): | |
| simplified = op(*args) | |
| if isinstance(simplified, op): |
Some simple points that I think this code looks great:
Doesn't need any additional function(s)
Concise if case error handling, instead of:
...
if err != nil {return nil, err
It use negation (unlike definite logic program) which make the logical entailment not hold.
Program Completion (Clark, 1978): change rule's implication to bi-implication
Stable Model Semantic (Gelfond and Lifschitz, 1988): remove negative literals (either the whole rule, or just the literal in the body)
https://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_55.html
x/nfu addr
n, the repeat count. Decimal integer, default to 1, counted by units u.
f, the display format. Default changes each time using x or print command.