I hereby claim:
- I am solebox on github.
- I am solebox (https://keybase.io/solebox) on keybase.
- I have a public key whose fingerprint is DD78 EB26 5676 4D73 2498 09DD A5E7 5580 E2C5 73B2
To claim this, I am signing this object:
from faust.models.fields import FieldDescriptor | |
class UUIDField(FieldDescriptor[UUID]): | |
def prepare_value( | |
self, value: Any, *, coerce: Optional[bool] = None | |
) -> Optional[UUID]: | |
if self.should_coerce(value, coerce): | |
if value is not None and not isinstance(value, UUID): | |
return uuid.UUID(value) | |
else: |
#!/usr/bin/env python3 | |
from pyvis.network import Network | |
import networkx as nx | |
G = nx.MultiDiGraph() | |
G.add_node(1, label='Node 1', group=1) | |
G.add_node(2, label='Node 2', group=1) | |
G.add_node(3, label='Node 3', group=2) | |
G.add_node(4, label='Node 4', group=2) | |
G.add_node(5, label='Node 5', group=1) |
# registry name in glue catalog is test and the name of the schema uploaded is topology :) | |
glue = boto3.client('glue') | |
result = glue.get_schema_version(SchemaId={'SchemaName': 'topology', 'RegistryName': "test"}, SchemaVersionNumber={"LatestVersion": True}) | |
print(result['SchemaDefinition']) |
package main | |
import "fmt" | |
func split(sum int) (x, y int) { | |
x = sum * 4 / 9 | |
y = sum - x | |
return | |
} |
def merge(L, R): | |
arr = [] | |
while len(R) and len(L): | |
left = L.pop(0) | |
right = R.pop(0) | |
if left < right: | |
arr.append(left) | |
R.insert(0, right) | |
else: | |
arr.append(right) |
➜ storm git:(fix/flags_again) ✗ (aws-staging): git add src/services/provisioner/Storm.Provisioner/Views/Install.fluid.sh | |
➜ storm git:(fix/flags_again) ✗ (aws-staging): git status | |
On branch fix/flags_again | |
Changes to be committed: | |
(use "git restore --staged <file>..." to unstage) | |
modified: src/services/provisioner/Storm.Provisioner/Views/Install.fluid.sh | |
➜ storm git:(fix/flags_again) ✗ (aws-staging): git commit -m "again" | |
husky > pre-commit (node v12.19.1) | |
No staged files match any of provided globs. |
import paramiko | |
import contextlib | |
@contextlib.contextmanager | |
def open_sftp(hostname, port, username, password): | |
# open ssh/sftp connection: | |
client = paramiko.SSHClient() | |
client.load_system_host_keys() | |
client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
try: |
I hereby claim:
To claim this, I am signing this object:
extern crate hyper; | |
use hyper::buffer::BufReader; | |
use hyper::header::{Host, TransferEncoding, Encoding}; | |
use hyper::net::NetworkStream; | |
use std::io::{self,Read, Write}; | |
use hyper::server::{Server, Request, Response}; | |
use hyper::status::StatusCode; | |
fn main() { |
extern crate hyper; | |
use hyper::buffer::BufReader; | |
use hyper::header::{Host, TransferEncoding, Encoding}; | |
use hyper::net::NetworkStream; | |
use std::io::{self,Read, Write}; | |
use hyper::server::{Server, Request, Response}; | |
use hyper::status::StatusCode; | |
fn main() { |