<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
// Zed settings | |
// | |
// For information on how to configure Zed, see the Zed | |
// documentation: https://zed.dev/docs/configuring-zed | |
// | |
// To see all of Zed's default settings without changing your | |
// custom settings, run the `open default settings` command | |
// from the command palette or from `Zed` application menu. | |
{ | |
"assistant": { |
# Extract dominant colors from image | |
```elixir | |
Mix.install([ | |
{:kino, "~> 0.11.3"}, | |
{:dominant_colors, "~> 0.1.4"} | |
]) | |
``` |
import fs from "fs"; | |
import { PDFDocument } from "pdf-lib"; | |
import { fromBuffer } from "pdf2pic"; | |
import path from "path"; | |
const OUTPUT_IMAGE_DPI = 200; | |
export async function extractPDFCoverImage( | |
pdfFilePath: string, | |
coverOutputPath: string |
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.6 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |
import esbuild from "esbuild"; | |
import esbuildSvelte from "esbuild-svelte"; | |
import sveltePreprocess from "svelte-preprocess"; | |
import { readdir } from "fs/promises"; | |
async function allSvelteComponents() { | |
const baseDir = "./js/app/"; | |
const all = await readdir(baseDir); | |
return all.filter((f) => f.endsWith(".svelte")).map((f) => `${baseDir}${f}`); | |
} |
this is an example gist |
# app deps | |
sudo yum install git | |
# erlang deps | |
sudo yum groupinstall "Development Tools" | |
sudo yum install ncurses-devel | |
# erlang | |
wget http://www.erlang.org/download/otp_src_19.1.tar.gz | |
tar -zxvf otp_src_19.1.tar.gz |
sudo yum -y install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git | |
sudo yum -y install wxBase.x86_64 | |
sudo yum -y install wget | |
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm | |
sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm | |
sudo yum -y install esl-erlang | |
sudo mkdir /opt/elixir | |
sudo git clone https://github.com/elixir-lang/elixir.git /opt/elixir | |
cd /opt/elixir | |
sudo make clean test |
#!/usr/bin/env python | |
__copyright__ = 'Yuanxuan Wang <zellux at gmail dot com>' | |
from calibre.web.feeds.news import BasicNewsRecipe | |
from calibre.ebooks.BeautifulSoup import Tag, NavigableString | |
from collections import OrderedDict | |
from contextlib import nested, closing | |
import json |