Skip to content

Instantly share code, notes, and snippets.

View FanaHOVA's full-sized avatar
🛠️
Automating

Alessio Fanelli FanaHOVA

🛠️
Automating
View GitHub Profile
class CohereFunctionModel(BaseModel):
name: str
description: str
parameter_definitions: dict
@classmethod
def from_pydantic_model(cls, model: BaseModel):
return cls(
name=model.__name__,
description=model.__doc__,

Chapters:

  • [00:00:37] Introduction to Tianqi Chen
  • [00:01:07] Background on creating XGBoost
  • [00:04:11] Motivation and process behind creating XGBoost
  • [00:06:53] Comparing tree-based models vs deep learning
  • [00:12:21] Overview of how TVM and ONNX work together
  • [00:16:23] Background and motivation behind creating TVM
  • [00:18:30] Importance of machine learning systems research
  • [00:20:02] Overview of MLC and running models on phones
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement.
PRESIGNED_URL="https://download.llamameta.net/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
TARGET_FOLDER="." # where all files should end up
mkdir -p ${TARGET_FOLDER}
# Setting this manually instead of prompting in cli
MODEL_SIZE="7B,7B-chat,13B,13B-chat"
@FanaHOVA
FanaHOVA / gist:0f23dcf699fbd7c41b688f5c05013378
Created October 6, 2022 18:29
How to use turbo-confirm alongside data-action with Rails / Stimulus / Turbo
<%= button_to path, form: { data: { action: 'controller#method', turbo_confirm: 'Are you sure?' } } do %>
<i class='fa fa-check' /> Do The Thing
<% end %>
const {
html,
render,
useState,
useEffect,
useLayoutEffect
} = await import('https://unpkg.com/htm/preact/standalone.module.js');
const {
✔ ~/the645app [add-launchable|✚ 1…13]
19:06 $ launchable record tests --build local-test-setup /tmp/test-results
Usage: launchable record tests [OPTIONS] COMMAND [ARGS]...
Options:
--base DIR (Advanced) base directory to make test names
portable
--session TEXT Test session ID
--build BUILD_NAME build name
<p dir="ltr" style="font-family: helvetica, Arial; font-size: 13px; text-size-adjust: auto; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 11pt; font-family: Arial; color: rgb(204, 0, 0); background-color: transparent; font-weight: 700; font-style: normal; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;">ALESSIO FANELLI</span></p><p dir="ltr" style="font-family: helvetica, Arial; font-size: 13px; text-size-adjust: auto; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 8pt; font-family: Arial; background-color: transparent; font-weight: 700; font-style: normal; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;">Engineer | </span><a href="https://645ventures.com/" style="text-decoration: none;"><span style="font-size: 8pt; font-family: Arial; background-color: transparent; font-weight: 700; font-style: normal; font-variant-east-asian: normal; text-decoration-line: underline; vertic
https://blizzardwatch.com - Blog specializing in news and guides about the company's games and events.
https://hostingfacts.com - Hosting providers reviewed by uptim, page speed and customer support quality.
https://elementor.com - Front end drag and drop page builder for WordPress. Free, open source.
https://colorlib.com - Simple, responsive, clean and fast loading WordPress themes. Highly customizable functionality and design.
https://www.uptimerobot.com - Service that monitors websites at five minute intervals.
https://www.jsdelivr.com - A free CDN for JavaScript and jQuery plugins.
https://www.sktthemes.net - Responsive themes with options panel and customizer. Free and premium options.
https://www.clickmeter.com - Web based professional real-time link tracker service. Provides pay-per-click, affiliation, and cross-promotion monitoring.
https://www.emailondeck.com - Free web-based addresses created in advance, with no registration required. Messages and addresses are deleted within a few days.
ht
require 'benchmark'
iterations = 100_000
Benchmark.bmbm(20) do |bm|
bm.report('Regexp New') do
iterations.times do
'menu'[Regexp.new("^\\b#{Regexp.union(['menu'])}\\b")]
end
end
homeassistant:
latitude: 32.87336
longitude: 117.22743
elevation: 665
unit_system: metric
time_zone: America/Los_Angeles
name: Maker Faire 2016
http: