Skip to content

Commit

Permalink
Tweak Projects page
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrifuno committed Nov 2, 2023
1 parent 98dc7ed commit 0e1496e
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"eslint.nodePath": ".yarn/sdks",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"prettier.prettierPath": ".yarn/sdks/prettier/index.js"
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs"
}
20 changes: 20 additions & 0 deletions .yarn/sdks/eslint/lib/unsupported-api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/use-at-your-own-risk
require(absPnpApiPath).setup();
}
}

// Defer to the real eslint/use-at-your-own-risk your application uses
module.exports = absRequire(`eslint/use-at-your-own-risk`);
12 changes: 10 additions & 2 deletions .yarn/sdks/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"name": "eslint",
"version": "8.50.0-sdk",
"version": "8.52.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
"type": "commonjs",
"bin": {
"eslint": "./bin/eslint.js"
},
"exports": {
"./package.json": "./package.json",
".": "./lib/api.js",
"./use-at-your-own-risk": "./lib/unsupported-api.js"
}
}
20 changes: 20 additions & 0 deletions .yarn/sdks/prettier/bin/prettier.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/bin/prettier.cjs
require(absPnpApiPath).setup();
}
}

// Defer to the real prettier/bin/prettier.cjs your application uses
module.exports = absRequire(`prettier/bin/prettier.cjs`);
File renamed without changes.
5 changes: 3 additions & 2 deletions .yarn/sdks/prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "prettier",
"version": "3.0.3-sdk",
"main": "./index.js",
"type": "commonjs"
"main": "./index.cjs",
"type": "commonjs",
"bin": "./bin/prettier.cjs"
}
6 changes: 3 additions & 3 deletions .yarn/sdks/typescript/lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/typescript.js
// Setup the environment to be able to require typescript
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/lib/typescript.js your application uses
module.exports = absRequire(`typescript/lib/typescript.js`);
// Defer to the real typescript your application uses
module.exports = absRequire(`typescript`);
6 changes: 5 additions & 1 deletion .yarn/sdks/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"name": "typescript",
"version": "5.2.2-sdk",
"main": "./lib/typescript.js",
"type": "commonjs"
"type": "commonjs",
"bin": {
"tsc": "./bin/tsc",
"tsserver": "./bin/tsserver"
}
}
14 changes: 7 additions & 7 deletions app/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const projects: Project[] = [
<a href="https://arxiv.org/abs/2104.10402">
PTHash minimal perfect hashing
</a>
. Used to generate static hash tables at compile time backed by perfect
hash functions, which are smaller and faster than conventional hash
. Used to generate static hash tables at compile time which use perfect
hash functions, making them smaller and faster than conventional hash
tables. It is twice as fast at lookup, and more than 10 times as fast at
constructing a perfect hash function compared to{' '}
<a href="https://crates.io/crates/phf">phf</a>.
Expand All @@ -46,8 +46,8 @@ const projects: Project[] = [
description: (
<>
Rust crate for faster division and modulo operations by a fixed divisor,
by replacing division operations with an equivalent, but computationally
cheaper, sequence of multiplications and bitshifts.
by replacing division operations with a numerically equivalent, but
computationally cheaper, sequence of multiplications and bitshifts.
</>
),
url: 'https://github.com/dtrifuno/quickdiv',
Expand All @@ -56,10 +56,10 @@ const projects: Project[] = [
title: 'Ipsum',
description: (
<>
Python library for generating placeholder text that resembles modern
Python library for generating placeholder text based on modern
languages. It uses Markov chains trained on large corpora of texts to
create output that is meaningless, but typographically resembles
languages that designers might be targeting today.
languages that designers are targeting today.
</>
),
url: 'https://ipsum.trifunovski.me',
Expand All @@ -76,7 +76,7 @@ const projects: Project[] = [
individual player performance.
</>
),
url: 'trifunovski.me/pdf/gsu2022.pdf',
url: '/pdf/gsu2022.pdf',
},
]

Expand Down

0 comments on commit 0e1496e

Please sign in to comment.