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
#!/usr/bin/env bash | |
set -uo pipefail | |
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR | |
IFS=$'\n\t' | |
# Run syntax check | |
echo "Checking syntax..." | |
nvc --std=2008 --syntax lib/**/*.vhd | |
nvc --std=2008 --syntax test/**/*.vhd |
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 libcst as cst | |
from libcst.codemod import CodemodTest, VisitorBasedCodemodCommand | |
from libcst.codemod.visitors import AddImportsVisitor | |
DISTS: dict[str, str] = { | |
"base": "BaseDistribution", | |
"complex": "ComplexDistribution", | |
"const": "ConstantDistribution", | |
"uniform": "UniformDistribution", |
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
set remindersOpen to application "Reminders" is running | |
set todoistToken to "<YOUR_TOKEN_HERE>" | |
set apiCall to "curl https://api.todoist.com/sync/v9/quick/add" | |
set listOfCommands to {} | |
tell application "Reminders" | |
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
// Clean and simplify HTML | |
function cleanHTML(html: string): string { | |
const div = document.createElement('div'); | |
div.innerHTML = html; | |
// Remove all class attributes and data-* attributes | |
div.querySelectorAll('*').forEach(el => { | |
el.removeAttribute('class'); | |
Array.from(el.attributes).forEach(attr => { | |
if (attr.name.startsWith('data-')) { |
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
#!/usr/bin/env python3 | |
import typer | |
import pandas as pd | |
import requests | |
import base64 | |
from bs4 import BeautifulSoup | |
from PIL import Image | |
from io import BytesIO | |
from typing import Optional |
We can't make this file beautiful and searchable because it's too large.
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
System,Domain,Organization,Authors,Publication date,Reference,Link,Notability criteria,Notability criteria notes,Parameters,Parameters notes,Training compute (FLOP),Training compute notes,Training dataset,Training dataset notes,Training dataset size (datapoints),Dataset size notes,Abstract,Confidence,Country (from Organization),Organization categorization,Training time (hours),Training time notes,Training hardware,Model accessibility,Finetune compute notes,Hardware quantity,Hardware utilization,Base model,Citations,Compute cost notes,Finetune compute (FLOP),Epochs,Training compute cost (2023 USD),Batch size,Batch size notes | |
DeepSeek-Coder-V2-236B,Language,DeepSeek,"Qihao Zhu, Daya Guo, Zhihong Shao, Dejian Yang, Peiyi Wang, Runxin Xu, Y. Wu, Yukun Li, Huazuo Gao, Shirong Ma, Wangding Zeng, Xiao Bi, Zihui Gu, Hanwei Xu, Damai Dai, Kai Dong, Liyue Zhang, Yishi Piao, Zhibin Gou, Zhenda Xie, Zhewen Hao, Bingxuan Wang, Junxiao Song, Deli Chen, Xin Xie, Kang Guan, Yuxiang You, Aixin Liu, Qiushi Du, Wenjun Gao, Xuan |
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
function to(low, high) { | |
if (low >= high) throw new Error("Upper bound must be greater than lower bound"); | |
const p = 0.9; | |
const a = 0.147; | |
const y = Math.log(1 - (2*p-1) ** 2); | |
const z = 2/(Math.PI * a) + y/2; | |
const zScore = Math.sqrt(2) * Math.sqrt(Math.sqrt(z*z - y/a) - z); | |
if (low > 0) { |
OlderNewer