Skip to content

Instantly share code, notes, and snippets.

View nickfox-taterli's full-sized avatar
😰
想哭

Tater Li nickfox-taterli

😰
想哭
View GitHub Profile
@nickfox-taterli
nickfox-taterli / intel.txt
Created March 3, 2025 05:26
Intel 3000 PAC
# PTP Test Points
set_location_assignment PIN_AM33 -to TP_51
set_location_assignment PIN_AN33 -to TP_52
set_location_assignment PIN_AR35 -to TP_53
set_location_assignment PIN_AN34 -to PPS_MAX10
set_instance_assignment -name IO_STANDARD 1.8V -to TP_51
set_instance_assignment -name IO_STANDARD 1.8V -to TP_52
set_instance_assignment -name IO_STANDARD 1.8V -to TP_53
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nickfox-taterli
nickfox-taterli / seq2seq.py
Created January 25, 2025 15:36
带注意力Seq2Seq #1
import torch
import torch.nn as nn
import torch.optim as optim
from torch.nn.utils.rnn import pad_sequence, pack_padded_sequence, pad_packed_sequence
import random
# 示例训练数据 (中文->英文)
data = [
(['我', '爱', '学习'], ['I', 'love', 'studying']),
(['今天', '天气', '好'], ['Today', 'weather', 'is', 'good']),
@nickfox-taterli
nickfox-taterli / Seq2Seq.py
Created January 24, 2025 03:32
自己改进的Seq2Seq
import torch
import torch.nn as nn
import torch.optim as optim
import random
# 定义编码器
class Encoder(nn.Module):
def __init__(self, input_dim, emb_dim, hid_dim, n_layers, dropout):
super().__init__()
self.hid_dim = hid_dim
@nickfox-taterli
nickfox-taterli / Seq2Seq.ipynb
Created January 24, 2025 03:32
Seq2Seq 例子
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nickfox-taterli
nickfox-taterli / gptapi.md
Last active January 14, 2025 08:16
GPTAPI.US历史价格

顺序可能有不同

模型 官网价格 本站价格 并发 折扣
gpt-4o-mini Input:$0.15 / 1M tokens
Output:$0.6 / 1M tokens
Input:¥0.15 / 1M tokens
Output:¥0.6 / 1M tokens
支持 ~1.4折
gpt-4o-mini-2024-07-18 Input:$0.15 / 1M tokens
Output:$0.6 / 1M tokens
Input:¥0.84 / 1M tokens
Output:¥3.36 / 1M tokens
支持 8折
claude-3-haiku
claude-3-haiku-20240229
claude-3-haiku-20240307
Input:$0.25 / 1M tokens
Output:$1.25 / 1M tokens
Input:¥0.88 / 1M tokens
Output:¥4.4 / 1M tokens
支持 5折
claude-3-5-haiku claude-3-5-haiku-20241022 Input:$0.25 / 1M tokens Output:$1.25 / 1M tokens Input:¥0.88 / 1M tokens Output:¥4.4 / 1M tokens 支持 5折
@nickfox-taterli
nickfox-taterli / software.txt
Created December 31, 2024 07:49
software.txt
Name Version ProviderName
---- ------- ------------
Windows 驱动程序包 - FTDI CDM Driver Package - VCP Driver (08/16/2017 2.12.28) 08/16/2017 2.12.28 Programs
Windows Driver Package - NXP HIDClass (11/03/2014 1.0.0.1) 11/03/2014 1.0.0.1 Programs
Windows Driver Package - Philips (NXP) (DFU) USB (03/11/2010 3.12.0.0) 03/11/2010 3.12.0.0 Programs
Windows 驱动程序包 - Arduino USBDevice (03/03/2020 10.48.00.000) 03/03/2020 10.48.00.000 Programs
Windows 驱动程序包 - SEGGER (JLinkCDC) Ports (06/06/2019 1.34.0.44950) 06/06/2019 1.34.0.44950 Programs
Windows 驱动程序包 - IAR Systems (IJET) IARUSB (05/23/2012 2.05)
@nickfox-taterli
nickfox-taterli / mfx.md
Created December 26, 2024 11:11
STM32 DISCO MFX REG MAP

MFXSTM32L152 寄存器映射表

内容可能存在问题,对此不负责.

通用寄存器

寄存器名称 地址 (十六进制) 描述 访问类型
MFXSTM32L152_REG_ADR_ID 0x00 芯片ID 只读 (R)
MFXSTM32L152_REG_ADR_FW_VERSION_MSB 0x01 芯片固件版本高字节 只读 (R)
@nickfox-taterli
nickfox-taterli / Word2Vec.ipynb
Created October 2, 2024 07:18
词的向量表示
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nickfox-taterli
nickfox-taterli / tinyimagenet.ipynb
Created July 17, 2024 15:06
tinyimagenet like simple train
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.