Do this first!
sudo apt-get update && sudo apt-get dist-upgrade
import { useEffect, useRef } from 'react' | |
// playground: https://stackblitz.com/edit/react-ts-nv5fxe?file=App.tsx | |
export default function App() { | |
// create a ref and declare an instance for each countUp animation | |
const countupRef = useRef(null); | |
let countUpAnim; | |
import easy_llama as ez | |
from subprocess import run | |
USER = ez.utils.USER_STYLE | |
BOT = ez.utils.BOT_STYLE | |
DIM = ez.utils.DIM_STYLE | |
RESET = ez.utils.RESET_ALL | |
def say(something: str) -> None: | |
run(['say', something]) | |
Llama3 = ez.Model( | |
'Meta-Llama-3-8B-Instruct-q8_0.gguf', |
A list of GitHub emoji markup, adapted from rxavier’s Complete list of github markdown emoji markup, generated with a Grunt script for maintainability (see repository).
Smileys and People
Animals and Nature
Food and Drink
Activity
Travel and Places
Objects
<?php | |
getCotizacionesWS(); | |
function getCotizacionesWS(){ | |
$context = [ | |
"ssl" => [ | |
"verify_peer" => FALSE, | |
"verify_peer_name" => FALSE, | |
'crypto_method' => STREAM_CRYPTO_METHOD_TLS_CLIENT |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
<?php | |
function getCotizaciones($monedas = true) | |
{ | |
$url = 'https://www.bcu.gub.uy/_layouts/BCU.Cotizaciones/handler/CotizacionesHandler.ashx?op=getcotizaciones'; | |
$data = ""; | |
$last_date_found = false; | |
$diff = 1; | |
$cotizaciones = array(); | |
$codigosAceptados = array("USD", "EURO", "CHF", "GBP", "ARS", "BRL", "JPY", "U.I."); |
// | |
// SignatureAnimation.swift | |
// OpenSwiftUIAnimations | |
// | |
// Created by Amos Gyamfi on 11.5.2024. | |
// | |
import SwiftUI | |
struct SignatureAnimation: View { |
.pointer-events-none { pointer-events : none } | |
.pointer-events-auto { pointer-events : auto } | |
.visible { visibility : visible } | |
.invisible { visibility : hidden } | |
.collapse { visibility : collapse } | |
.static { position : static } | |
.fixed { position : fixed } | |
.absolute { position : absolute } | |
.relative { position : relative } | |
.sticky { position : sticky } |