I hereby claim:
- I am jdevera on github.
- I am jdevera (https://keybase.io/jdevera) on keybase.
- I have a public key ASCyvaYAE57aihgMMYT4xo2vB9mKyY-AbG3OrWhW4xeazgo
To claim this, I am signing this object:
| #!/bin/bash | |
| # Clean up Apt | |
| apt-get autoremove | |
| apt-get autoclean | |
| apt-get clean | |
| # Generate new SSH host keys | |
| for T in dsa rsa ecdsa; do |
| (ns namespaces-catalog-v1.0 | |
| (:require [roam.datascript :as rd] | |
| [roam.util :refer [parse]])) | |
| (def SEP "/") | |
| (defn namespaced-pages | |
| " Get all pages in the graph that have a namespace (they contain / in the title)" | |
| [] | |
| (map first |
I hereby claim:
To claim this, I am signing this object:
| import sys | |
| def die(*messages, rc=1): | |
| """ | |
| Print the arguments in stderr and exit with a given return code | |
| """ | |
| print(*messages, file=sys.stderr) | |
| sys.exit(rc) |
| $oldPath = (Get-ItemProperty -Path ` | |
| 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' ` | |
| -Name PATH).path | |
| $pathParts = $oldPath.split(";") | |
| $python = @() | |
| $other = @() | |
| foreach ($part in $pathParts) { | |
| if ($part -like "*Python*") { | |
| $python += ,$part | |
| } |
| import uuid | |
| from sqlalchemy import Column, String, create_engine, CHAR | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy.orm import sessionmaker | |
| engine = create_engine('sqlite:///:memory:', echo=True) | |
| Base = declarative_base() |
| import re | |
| import pytest | |
| def camel_to_snake(string): | |
| s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', string) | |
| return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower() | |
| CASES = [ |
| import asyncio | |
| import argparse | |
| counter = 0 | |
| def next(): | |
| global counter | |
| counter += 1 | |
| return counter |
| #!/bin/bash | |
| # The "tmuxifier" | |
| # Execute parallel processes in an arbitrary number of tmux panes | |
| # This script requires the path to an existing script to | |
| # execute in parallel. Optionally, the number of threads to | |
| # and the name of the tmux session can be input. If threads | |
| # and session name are not entered, threads are determined | |
| # automatically and session names is set to a default. |
| def make_invalid_model(model_class, **kwargs): | |
| """ | |
| create a model object bypassing all member validation | |
| :param model_class: the class of the generated model that needs to be instantiated | |
| :param kwargs: all the model parameters, as they would be passed to the constructor | |
| :return: an instance of model_class | |
| """ | |
| def get_default_values(model_class, attributes): | |
| signature = inspect.signature(model_class.__init__) |