I hereby claim:
- I am jacobdam on github.
- I am jacobdam (https://keybase.io/jacobdam) on keybase.
- I have a public key ASCqbyQsbLyw2j7iTMqfURPdzMo1025YtuC5Lh9HRbP0tQo
To claim this, I am signing this object:
relevance_template = """ | |
System: | |
You are an AI assistant. You will be given the definition of an evaluation metric for assessing the quality of an answer in a question-answering task. Your job is to compute an accurate evaluation score using the provided evaluation metric. | |
User: | |
Relevance measures how well the answer addresses the main aspects of the question, based on the context. Consider whether all and only the important aspects are contained in the answer when evaluating relevance. Given the context and question, score the relevance of the answer between one to five stars using the following rating scale: | |
One star: the answer completely lacks relevance | |
Two stars: the answer mostly lacks relevance | |
Three stars: the answer is partially relevant | |
Four stars: the answer is mostly relevant |
import assert from "node:assert"; | |
import { AsyncLocalStorage } from "node:async_hooks"; | |
// database | |
interface WorkflowInst { | |
completedSteps: number; | |
recordedStepCalls: { name: string; params: any }[]; // for debug only | |
} | |
const db: { [_: string]: WorkflowInst } = {}; | |
async function getWorkflowInstanceFromDB( |
class AuthService extends EventEmitter { | |
async initialize(){ | |
this.accessToken = res['access_token']; | |
this._checkTokenExpiration(); | |
// ... | |
} | |
isSignedIn(){ | |
return !!this.accessToken; |
I hereby claim:
To claim this, I am signing this object:
<link rel="import" href="../cool-clock/cool-clock.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<link rel="import" href="../paper-input/paper-input.html"> | |
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
# bad | |
class Book | |
belongs_to :categoy, :class_name => BookCategory | |
end | |
# good | |
class Book | |
belongs_to :categoy, :class_name => 'BookCategory' | |
end |
__hasProp = {}.hasOwnProperty; | |
__extends = function(child, parent) { | |
for (var key in parent) { | |
if (__hasProp.call(parent, key)) | |
child[key] = parent[key]; | |
} | |
function ctor() { | |
this.constructor = child; |
source "https://rubygems.org" | |
ruby '2.0.0' | |
gem 'rack' |
require 'mysql2' | |
p Mysql2::VERSION # Make sure mysql2 version >= 0.3.12 | |
Encoding::default_internal = Encoding::UTF_8 | |
Encoding::default_external = Encoding::UTF_8 | |
s = 'Test emoji 💝' # text with emoji character | |
c = Mysql2::Client.new(username: 'root', database: 'test', encoding: 'utf8mb4') | |
c.query("INSERT INTO test(`text`) VALUES('#{c.escape(s)}')") |
For Jeff n Kelly 💝 |