# Сначала примеры на реальных данных
/tmp
❯ wget -q https://cve.mitre.org/data/downloads/allitems-cvrf.xml
/tmp 53s
❯ ls -ahl allitems-cvrf.xml
-rw-r--r-- 1 sergey sergey 345M Jul 26 12:45 allitems-cvrf.xml
/tmp
Discover gists
This file contains 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
// programmatic view controller | |
/* | |
usage: | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let newViewController = NewViewController(string: "Hello") | |
addChildViewController(newViewController, in: view) | |
} |
This file contains 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
# This supports merging as many adapters as you want. | |
# python merge_adapters.py --base_model_name_or_path <base_model> --peft_model_paths <adapter1> <adapter2> <adapter3> --output_dir <merged_model> | |
from transformers import AutoModelForCausalLM, AutoTokenizer | |
from peft import PeftModel | |
import torch | |
import os | |
import argparse |
This file contains 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
r"^998([378]{2}|(9[013-57-9]))\d{7}$" | |
100% works in all Uzbekistan to phone numbers |
- AI Shift
- 社内SQL研修のために作った資料を公開します - (2021/06/21)
- CARTA HOLDINGS(旧VOYAGE GROUP)
- 技術広報が新卒研修<Open AIハッカソン>をスパイしてみた - (2023/04/11)
- @t_wadaに学ぶテスト駆動開発【CARTA 23新卒研修】 - (2023/04/19)
- 【新卒研修】監修者@t_wadaと読む!プログラマが知るべき97のこと読書会 - (2024/04/09)
- Classi
- 当たり前にリリースしていく ~ 新卒研修編 - (2021/05/20)
- リモートワークのための質問力向上研修を実施しました - (2021/12/07)
This file contains 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 tiktoken | |
import langdetect | |
T = tiktoken.get_encoding("o200k_base") | |
length_dict = {} | |
for i in range(T.n_vocab): | |
try: | |
length_dict[i] = len(T.decode([i])) | |
except: |
This file contains 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
$ git remote rm origin | |
$ git remote add origin git@github.com:aplikacjainfo/proj1.git | |
$ git config master.remote origin | |
$ git config master.merge refs/heads/master |
An Xcode Playground that contains examples of the various options available to you when you use the new FormatStyle protocol in iOS 15.
Read the series on my blog:
https://ampersandsoftworks.com/posts/formatstyle-deep-dive/
Download the Xcode Playground:
This has updated for 1.20.4, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.
Lithium - A mod designed to drastically improve the general performance of Minecraft without breaking things.
VMP - A mod designed to improve general server performance at high playercount.
This file contains 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
Visual Studio 2022 | |
Enterprise : | |
VHF9H-NXBBB-638P6-6JHCY-88JWH | |
Professional: | |
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J |
NewerOlder