tmux new
- Create and attach to a new session.tmux new -s NAME_HERE
- Create and attach to a new session named NAME_HERE.CTRL-b, d
- Detach (i.e. exit) from the currently-opened tmux session (alternatively,tmux detach
). Note, this means press and holdCTRL
, pressb
, release both, pressd
.tmux ls
- Show list of tmux sessions.tmux a
- Attach to the previously-opened tmux session.tmux a -t NAME_HERE
- Attach to the tmux session named NAME_HERE.CTRL-d
- Delete (i.e. kill) currently-opened tmux session (alternativelytmux kill-session
).CTRL-b, [
- Enter copy mode, and enable scrolling in currently-opened tmux session. Pressq
to exit.CTRL-b, "
- Split window horizontally (i.e. split and add a pane below).
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
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <cstdlib> | |
#include <ctime> | |
#include <omp.h> | |
using namespace std; | |
int main() { |
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
module ISP( | |
// Input Signals | |
input clk, | |
input rst_n, | |
input in_valid, | |
input [3:0] in_pic_no, | |
input in_mode, | |
input [1:0] in_ratio_mode, | |
// Output Signals |
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
module Conv( | |
// Input signals | |
clk, | |
rst_n, | |
filter_valid, | |
image_valid, | |
filter_size, | |
image_size, | |
pad_mode, | |
act_mode, |
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 os | |
import subprocess | |
import logging | |
import argparse | |
# Set up logging | |
logging.basicConfig(level=logging.INFO, format='[%(levelname)s] %(message)s') | |
logger = logging.getLogger() | |
VIDEO_EXTENSIONS = ['.mp4'] |
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
$path = "${env:appdata}\Code\User\workspaceStorage" | |
$directories = Get-ChildItem -Path $path -Directory | |
function Remove-Workspace { | |
param ( | |
[string]$dirPath, | |
[string]$folderPath | |
) |
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 socket | |
import json | |
# connect to 192.169.4.16:80 | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
s.bind(('192.168.4.2', 9000)) | |
while True: | |
data, addr = s.recvfrom(1024) | |
data = json.loads(data.decode()) |
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
from m5stack import * | |
from m5ui import * | |
from uiflow import * | |
import time | |
import i2c_bus | |
import struct | |
import network | |
import socket | |
import json |