I hereby claim:
- I am roguh on github.
- I am roguh (https://keybase.io/roguh) on keybase.
- I have a public key ASBtvGuaCFFituKv6wKnp3C9jLOkeWD7CKOAJQiaVFPmQQo
To claim this, I am signing this object:
| { | |
| "actions": [ | |
| { | |
| "action": "install", | |
| "module": "nodeunit", | |
| "target": "0.11.3", | |
| "isMajor": false, | |
| "resolves": [ | |
| { | |
| "id": 577, |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -v "node_modules" | grep -E '\.(js|jsx)$') | |
| if [[ "$STAGED_FILES" = "" ]]; then | |
| exit 0 | |
| fi | |
| PASS=true |
| Hugo O Rivera is roguh.com | |
| roguh is Hugo Rivera | |
| Hugo O Rivera |
| # install the digi-xbee package | |
| import binascii | |
| import json | |
| import os | |
| import pprint | |
| import time | |
| from digi.xbee.devices import XBeeDevice | |
| from digi.xbee.models.address import XBee64BitAddress |
| const env = require('env-var') | |
| const Timeout = require('await-timeout') | |
| const { connect, JSONCodec } = require('nats') | |
| const NATS_AUTH_TOKEN = env | |
| .get('NATS_AUTH_TOKEN') | |
| .required() | |
| .asString() |
| #!/usr/bin/env python3 | |
| import fileinput | |
| import json | |
| import re | |
| import sys | |
| from argparse import ArgumentParser | |
| from dataclasses import dataclass | |
| from pprint import pprint | |
| from typing import Any, Dict, List, Optional, Union |
| from redis.sentinel import Sentinel | |
| def connect_to_redis(address: str, port: int, redis_set: str): | |
| sentinel = Sentinel([(address, port)], socket_timeout=0.5) | |
| con = sentinel.master_for( | |
| redis_set, | |
| decode_responses=True, | |
| socket_timeout=0.5, | |
| ) | |
| con.echo("test") | |
| return con |
| [ | |
| { | |
| "name": "Afghanistan", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Åland Islands", | |
| "code": "AX" | |
| }, | |
| { |
| # See updates here: github.com/roguh/gdsfactory_nand2tetris.git | |
| # python 3.11 support. unit tests seem ok, may need some reference GDS files | |
| # download https://gdsfactory.github.io/skywater130/ (sky130 package) but make sure to use laatest version of gdsfactory, run `make install` | |
| # `pip install gdsfactory[full,dev]` | |
| # use https://github.com/gdsfactory/kweb for visualization | |
| # put file x.gds into gds_files and navigate to localhost:8000/gds/x to see it | |
| # TODO: list gds files at homepage /, route should be /gds_files/x with /gds_files/x.gds redirect | |
| # gdsthing.plot_matplotlib() is slow |