Skip to content

Instantly share code, notes, and snippets.

View ff6347's full-sized avatar
🤖
updating status…

Fabian Morón Zirfas ff6347

🤖
updating status…
View GitHub Profile
@ff6347
ff6347 / sketch.js
Created May 15, 2024 08:54
p5js uses ollama to generate data
function preload() {
if (ollama) {
console.log('Yes ollama is there');
} else {
console.log('No ollama is not there');
}
}
let isGenerating = false;
const data = [];
[
{
"name": "#f0f8ff",
"hex": "aliceblue"
},
{
"name": "#faebd7",
"hex": "antiquewhite"
},
{
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Page Title</title>
<meta name="description" content="something">
@ff6347
ff6347 / README.md
Last active December 3, 2023 13:52 — forked from versionsix/README.md
OmniGraffle: Export layers on top of base-layer as PNG

Layer export for OmniGraffle

If you have a Graffle document (doc.graffle) with a canvas named "mycanvas" holding the following layers ...

  • Extra 3
  • Extra 2
  • Extra 1
  • Base

... then these images will be generated:

@ff6347
ff6347 / index.html
Last active August 28, 2023 11:50
Small page to make requests and see what happens, mainly for testing CORS requests. Deployed to vercel https://cors-requester.vercel.app/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>CORS Tester</title>
@echo off
@REM Set this to your weburl
set URL=https://kutt.it/clab-aus-mt-01
echo "To leave the kiosk mode you need to hit ALT + F4 or STRG + W"
echo "Countdown to application launch..."
timeout /t 10
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --chrome --new-window --kiosk URLURL% --no-user-gesture-required --overscroll-history-navigation=0 --enable-features=OverlayScrollbar,OverlayScrollbarFlashAfterAnyScrollUpdate,OverlayScrollbarFlashWhenMouseEnter
exit
@ff6347
ff6347 / README.md
Last active December 20, 2022 11:53 — forked from JonDotsoy/README.md
Conventional Commits to Terminal (zsh, sh)

Conventional Commits to Terminal (zsh, sh)

Git alias conventional-commit and m to create conventional commits so fast. And prepare the scope with the alias git scope <scope-name>.

image

How to install

Run the next line in your shell terminal

int poti = A0;
int led = 9;
int inMax = 0;
int inMin = 1023;
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
}
void loop() {
@ff6347
ff6347 / get-size.sql
Last active September 7, 2022 09:15
get size of all tables in postgres
-- https://stackoverflow.com/questions/2596624/how-do-you-find-the-disk-size-of-a-postgres-postgresql-table-and-its-indexes
SELECT
table_name,
pg_size_pretty(table_size) AS table_size,
pg_size_pretty(indexes_size) AS indexes_size,
pg_size_pretty(total_size) AS total_size
FROM (
SELECT
table_name,
pg_table_size(table_name) AS table_size,