Skip to content

Instantly share code, notes, and snippets.

@sarony
sarony / gist:b7bc7cfaa785d39e5b3a3ca5fb38c1b9
Created October 23, 2023 05:49
styling lists final part 1
<ul>
<li class="mb-8 border-b-2 border-gray pb-8">
<h2 class="font-bold">
temperature
</h2>
<p class="text-gray-500">
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
</p>
<p class="text-gray-500">
We generally recommend altering this or top_p but not both.
@sarony
sarony / gist:f447d8002567f5101f93ca5311c990c8
Created October 22, 2023 21:09
open_ai_list_style_nad_final
<ul>
<li class="mb-8 border-b-2 border-gray pb-8">
<h3>
<span class="font-bold mr-2">temperature</span>
<span class="text-gray-500 mr-2 bg-gray-100 px-2 rounded text-xs">number or null</span>
<span class="text-gray-500 mr-2 bg-gray-100 px-2 rounded text-xs">Optional</span>
<span class="text-gray-500 bg-gray-100 px-2 rounded text-xs">Defaults to 1</span>
</h3>
<p class="text-gray-600">
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
@sarony
sarony / v1.html
Created October 22, 2023 18:14
text-gray-400 mr-2 inline
<ul>
<li class="mb-8 border-b-2 border-gray pb-8">
<h3>
<span class="font-bold mr-2">temperature</span>
<span class="text-gray-400 mr-2">number or null</span>
<span class="text-gray-400 mr-2">Optional</span>
<span class="text-gray-400">Defaults to 1</span>
</h3>
<p>
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
import aiohttp
import asyncio
import uvicorn
from fastai import *
from fastai.vision import *
from fastai.vision.all import *
from io import BytesIO
from starlette.applications import Starlette
from starlette.middleware.cors import CORSMiddleware
from starlette.responses import HTMLResponse, JSONResponse
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<!-- NAME: 1 COLUMN -->
<!--[if gte mso 15]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
@sarony
sarony / gist:8ae7c3178669079782b9
Created February 28, 2015 08:17
list.js for March Is For Makers
var featureList = new List('archives', options);
$("img.lazy").lazyload({
events: [{
bindTo: window,
event: "scroll resize load"
}, {
bindTo: featureList.listContainer,
event: "updated"
}]
// migration.rb
class AddTransactionsToRsvp < ActiveRecord::Migration
def change
add_column :rsvps, :transactions, :string, array: true, default: []
end
end
// gig_post_helper.rb
def duration_tag_collection
require 'spec_helper'
feature "Super admin can invite admin" do
scenario "from admin panel" do
visit admin_panel_path
expect(page).to have_content("Invite Admin")
click_link("Invite Admin")
require 'pry'
num = 13195
class FindLargestPrimeFactor
def initialize(num)
@num = num
end
require 'SQLite3'
class Student
attr_accessor :name, :twitter, :linkedin, :facebook, :website
attr_reader :id
ATTRIBUTES = {
:id=>"INTEGER PRIMARY KEY AUTOINCREMENT", :name=>"TEXT", :twitter=>"TEXT", :linkedin=>"TEXT", :facebook=>"TEXT", :website=>"TEXT"
}