Skip to content

Instantly share code, notes, and snippets.

@inorganik
inorganik / app.js
Last active May 12, 2024 13:01
Using CountUp.js in React
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;
@ddh0
ddh0 / voice_chat.py
Created May 12, 2024 03:40
Make Siri speak for your LLM, using macOS `say` and easy-llama
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',
@ricealexander
ricealexander / emoji-list.md
Last active May 12, 2024 13:00 — forked from rxaviers/gist:7360908
Comprehensive list of GitHub-supported emojis
@MaskeZen
MaskeZen / cotizacionBCU.php
Created August 16, 2018 14:23
Cotización del BCU WS
<?php
getCotizacionesWS();
function getCotizacionesWS(){
$context = [
"ssl" => [
"verify_peer" => FALSE,
"verify_peer_name" => FALSE,
'crypto_method' => STREAM_CRYPTO_METHOD_TLS_CLIENT
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 12, 2024 12:54
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active May 12, 2024 12:53
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

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.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@Jamp
Jamp / cotizaciones.php
Created February 13, 2019 00:41 — forked from jtechera/cotizaciones.php
Cotizacion de monedas y U.I. desde el BCU (Uruguay)
<?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 {
@TinsFox
TinsFox / utilities.css
Created May 11, 2024 02:49
simple tailwindcss utilities
.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 }
@Techgokul
Techgokul / Matrixrain.html
Created December 7, 2017 12:14
Make a Matrix rain using HTML5,JS,CSS
<html>
<head>
<title>Matrix Rain</title>
<style>
* {margin: 0; padding: 0;}
body {background: black;}
canvas {display: block;}
</style>
</head>
<body>