worker.postMessage({
type: "command",
arguments: args,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ipython -i | |
| import datetime | |
| import json | |
| from typing import Optional | |
| import sqlalchemy as sa | |
| from sqlalchemy.orm import declarative_base, sessionmaker | |
| from sqlalchemy.dialects.postgresql import JSONB | |
| from pydantic import BaseModel, Field, parse_obj_as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import streamlit as st | |
| from persist import persist, load_widget_state | |
| def main(): | |
| if "page" not in st.session_state: | |
| # Initialize session state. | |
| st.session_state.update({ | |
| # Default page. | |
| "page": "home", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # This script reads the correct MAC address of a Jetson Nano from the onboard EEPROM over i2c. | |
| # First install i2c-tools package. Then make this script executable, and run it with sudo: | |
| # | |
| # $ sudo apt-get install i2c-tools | |
| # $ chmod +x nano-read-mac.sh | |
| # $ sudo ./nano-read-mac.sh | |
| # MAC address is xx:xx:xx:xx:xx:xx | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // http://eslint.org/docs/rules/ | |
| "env": { | |
| "browser": true, // browser global variables. | |
| "node": false, // Node.js global variables and Node.js-specific rules. | |
| "worker": false, // web workers global variables. | |
| "amd": false, // defines require() and define() as global variables as per the amd spec. | |
| "mocha": false, // adds all of the Mocha testing global variables. | |
| "jasmine": false, // adds all of the Jasmine testing global variables for version 1.3 and 2.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // _oo0oo_ | |
| // o8888888o | |
| // 88" . "88 | |
| // (| -_- |) | |
| // 0\ = /0 | |
| // ___/`---'\___ | |
| // .' \\| |// '. | |
| // / \\||| : |||// \ | |
| // / _||||| -:- |||||- \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ProgName=$(basename $0) | |
| sub_help(){ | |
| echo "Usage: $ProgName <subcommand> [options]\n" | |
| echo "Subcommands:" | |
| echo " bar Do bar" | |
| echo " baz Run baz" | |
| echo "" |