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
| #!/usr/bin/env bash | |
| echo "==============================================" | |
| echo "Minimal Reproduction: macOS Shebang Bug" | |
| echo "==============================================" | |
| echo "" | |
| echo "Platform: $(uname -s) $(uname -m)" | |
| echo "Nix version: $(nix --version)" | |
| echo "" |
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
| 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) { |
We can't make this file beautiful and searchable because it's too large.
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
| 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 |
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
| #!/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 |
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
| // 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 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
| 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 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 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 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
| #!/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 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
| [flake8] | |
| max-line-length = 88 | |
| extend-ignore = E203, W503, E501 | |
| exclude = | |
| # No need to traverse our git directory | |
| .git, | |
| # There's no value in checking cache directories | |
| __pycache__, | |
| # This contains our built documentation | |
| build, |
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
| +(/Users/agucova/.pyenv/bin/pyenv:23): enable -f /Users/agucova/.pyenv/bin/../libexec/pyenv-realpath.dylib realpath | |
| +(/Users/agucova/.pyenv/bin/pyenv:30): '[' -z '' ']' | |
| ++(/Users/agucova/.pyenv/bin/pyenv:32): type -P greadlink readlink | |
| ++(/Users/agucova/.pyenv/bin/pyenv:32): head -1 | |
| +(/Users/agucova/.pyenv/bin/pyenv:32): READLINK=/opt/homebrew/bin/greadlink | |
| +(/Users/agucova/.pyenv/bin/pyenv:33): '[' -n /opt/homebrew/bin/greadlink ']' | |
| +(/Users/agucova/.pyenv/bin/pyenv:58): '[' -z /Users/agucova/.pyenv ']' | |
| +(/Users/agucova/.pyenv/bin/pyenv:61): PYENV_ROOT=/Users/agucova/.pyenv | |
| +(/Users/agucova/.pyenv/bin/pyenv:63): export PYENV_ROOT | |
| +(/Users/agucova/.pyenv/bin/pyenv:65): '[' -z '' ']' |
NewerOlder