Hijacking img requests
self.addEventListerner('fetch', (event) => {
if (event.request.url.endsWith('.jpg')) {
event.respondWith(
fetch('/img/someLocalImage.jpg')
);
}
}
# A gist for using the `llama.cpp` model with the `dspy` library. | |
# | |
# DSPy features used in this gist | |
# - `dspy.Predict` | |
# - `dspy.Signature` | |
# - `dspy.context` | |
# - `dspy.evaluate.Evaluate` | |
# | |
# The script first prompts the model to answer a example question and assess the correctness and engagingness of the answer using a evaluator. | |
# |
# A gist for using the `llama.cpp` model with the `dspy` library. | |
# | |
# DSPy features used in this gist | |
# - `dspy.Predict` | |
# - `dspy.Signature` | |
# - `dspy.context` | |
# The script first prompts the model to answer a example question and assess the correctness and engagingness of the answer. | |
# | |
# Install `llama.cpp` from brew with built-in OpenAI-compatible server. | |
# brew install ggerganov/ggerganov/llama.cpp |
Hijacking img requests
self.addEventListerner('fetch', (event) => {
if (event.request.url.endsWith('.jpg')) {
event.respondWith(
fetch('/img/someLocalImage.jpg')
);
}
}
reMarkable is a paper tablet by https://remarkable.com/.
The reMarkable tablet is the best e-paper in the market. However, it does not have built-in support for CJK (Chiniese, Korean and Japanese) users.
Luckily, this could be resolved by installing CJK fonts on the tablet.
Preference > Storage > Enable USB web interface (Beta)
.Preference > About
. e.g. ssh root@10.11.99.1
#!/usr/bin/env coffee | |
fs = require 'fs' | |
ck = require 'coffeecup' | |
path = require 'path' | |
viewhelpers = {} | |
viewhelper_merge = (vhs)-> | |
for k, v of vhs |
doctype 5 | |
html -> | |
head -> | |
meta charset: 'utf-8' | |
title 'hello' | |
script src: 'http://codeorigin.jquery.com/jquery-1.10.2.min.js' | |
script src: 'http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js' | |
script src: 'http://d3js.org/d3.v3.min.js' | |
link rel: 'stylesheet', href: 'http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css' | |
style ''' |
# Rime schema | |
# encoding: utf-8 | |
schema: | |
schema_id: bopomofo | |
name: 正體 | |
version: "1.3" | |
author: 這樣 是 | |
- 佛振 <chen.sst@gmail.com> | |
- turtleknight(修正臺灣使用者輸入習慣) <stk.chen@gmail.com> |