When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
#!/usr/bin/env node | |
import * as fs from 'fs'; | |
import * as path from 'path'; | |
// https://gist.github.com/lovasoa/8691344 | |
async function* walk(dir) { | |
for await (const d of await fs.promises.opendir(dir)) { | |
const entry = path.join(dir, d.name); | |
if (d.isDirectory()) { |
export default async (url, module = {exports:{}}) => | |
(Function('module', 'exports', await (await fetch(url)).text()).call(module, module, module.exports), module).exports |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
export default class HTMLImport extends HTMLElement { | |
#abortController = new AbortController() | |
async connectedCallback() { | |
let src = this.getAttribute("src") | |
if (src === null) { | |
console.warn("<html-import> element requires attribute \"src\"") | |
this.remove() | |
return | |
} |
export default function () { | |
return window.location.toString(); | |
} |
const glob = require('glob'); | |
const util = require('util'); | |
const globPromise = util.promisify(glob); | |
const importArr = []; | |
const exportArr = ['export default {']; | |
const paths = [ | |
'node_modules/@tharsis/proto/dist/proto/evmos/**/*.js', | |
'node_modules/@tharsis/proto/dist/proto/ethermint/**/*.js', |
import llama_cpp | |
import re | |
import json | |
# Model configuration | |
# tested with mistral, llama2, llama3, and phi3 | |
model_path = "/path/to/model" | |
base_llm = llama_cpp.Llama(model_path, seed=42, n_gpu_layers=-1, n_ctx=4096, verbose=False, temperature=0.0) |
MONGO_DB= |