Skip to content

Instantly share code, notes, and snippets.

View ytxmobile98's full-sized avatar

Tianxing Yang ytxmobile98

  • Guangzhou, China
  • 21:57 (UTC +08:00)
View GitHub Profile
@tadamcz
tadamcz / gpqa.py
Last active August 26, 2026 21:05
Epoch AI GPQA implementation (based on inspect_evals)
import random
from string import ascii_uppercase
from typing import Dict, Any
from inspect_ai import task, Task
from inspect_ai.dataset import Sample
from inspect_ai.dataset._sources.hf import hf_dataset
import inspect_ai.solver
import inspect_ai.scorer
@chewwt
chewwt / pyenv_offline_setup.md
Created June 7, 2022 08:00
pyenv offline setup

Pyenv Offline Setup

  1. Download and transfer pyenv
  2. Extract pyenv-x.x.x.tar.gz into ~/.pyenv
  3. Add into ~/.zshrc and source
    export PATH=/home/user/.pyenv/bin:$PATH
    eval "$(pyenv init -)"
    eval "$(pyenv virtualenv-init -)"
  4. Download and transfer desired python-3.x.x
@ytxmobile98
ytxmobile98 / README.md
Last active November 13, 2026 09:01
Windows 11 Pro Activation

Windows 11 Pro 激活步骤

请务必以管理员身份打开命令提示符,并运行以下代码。

slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms kms.luody.info
slmgr /ato
@Rich-Harris
Rich-Harris / what-is-svelte.md
Last active November 6, 2026 18:47
The truth about Svelte

I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.

But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.

Svelte is a language.

Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?

A few projects that have answered this question:

Enable bbr on Ubuntu 16.04

  1. Make sure kernel version is 4.9 or newer:

    uname -r

    Install Hardware Enablement Stack (HWE) to update kernel automaticly:

@pjkelly
pjkelly / s3-file-sharing.md
Created September 3, 2014 18:15
Setting up an Amazon S3 bucket to share files.

Setting up an Amazon S3 bucket to share files

  1. Sign into your AWS console: https://console.aws.amazon.com/console/home
  2. Click on “S3”.
  3. Click “Create Bucket” and enter a Bucket Name using only alphanumeric characters and no spaces. We recommend prefixing it with your organization’s name, so something like “myorganization-downloads” works well. No other customization is necessary, so then click “Create” to complete the creation process.
  4. Choose the bucket you just created from the list of buckets to navigate into it.
  5. Once inside the folder, click “Upload” and upload all the files you want there.
  6. After your files are done uploading, select them by clicking the square to their left and then choose “Actions” -> “Make Public”. This will make the files publicly accessible.
  7. To get the public URL of a file, select the file and then click the Properties tab (in the top right of the window). The Link attribute contains the publicly accessible URL of the file.