Here's a quick reference for Tmux, covering sessions, panes, and windows along with the command you mentioned.
- Start a new session:
tmux new -s <session_name>
- Attach to an existing session:
tmux attach -t
MIT LICENSE | |
Copyright 2018 Quentin Dufour | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH |
import random | |
import os | |
def load_words(): | |
# Get a random word from the system dictionary. | |
# Check if the file exists and is readable. | |
if not os.access('/usr/share/dict/words', os.R_OK): | |
return [] | |
# Check if the file is not empty. |
import pysmartthings | |
import asyncio | |
import logging | |
import os | |
import dotenv | |
import aiohttp | |
dotenv.load_dotenv() | |
# Enable default logging |
Vector embeddings typically have many dimensions (e.g., 768, 1024, or 1536 dimensions depending on the model), but you're correct that they can often be compressed while maintaining much of their utility. Here's why and how this works:
import pysmartthings | |
import asyncio | |
import logging | |
import os | |
import dotenv | |
import aiohttp | |
dotenv.load_dotenv() | |
# Enable default logging |
Can you explain what the following script does?
#!/usr/bin/env python3
import os
import signal
import subprocess
import sys
Introduction: People with ADHD have "secret superpowers" that can be unlocked and used to build successful lives.
Superpower 1 - Broad Attention and Quick Connections:
from langchain.llms import OpenAI | |
from langchain.callbacks.base import BaseCallbackHandler | |
# Example Callback Handler | |
class CustomCallbackHandler(BaseCallbackHandler): | |
def on_llm_start(self, serialized, prompts, **kwargs): | |
print("LLM is starting...") | |
print("Prompts:", prompts) | |
def on_llm_new_token(self, token, **kwargs): |
#!/bin/bash | |
# MIT License - [email protected] | |
vsc-ext-man() { | |
VSCODE_BINARY=${VSCODE_BINARY:-code} | |
COMMAND=$1 | |
FILE=$2 # FILE is set if provided |