Skip to content

Instantly share code, notes, and snippets.

View carloscabo's full-sized avatar
🏠
Working 100% remotely since 2018

Carlos Cabo carloscabo

🏠
Working 100% remotely since 2018
View GitHub Profile
function setup() {
createCanvas(800, 800);
angleMode(DEGREES);
}
function draw() {
background((95 / 100) * 255);
push();
translate(width / 2, height / 2);
let ratio = 0.01;
@beesandbombs
beesandbombs / hypnosquare.pde
Created October 26, 2020 18:51
hypnosquare
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
@carloscabo
carloscabo / easings.css
Created July 21, 2020 05:43 — forked from argyleink/easings.css
Handy CSS properties for easing functions
:root {
--ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
--ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
--ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
--ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
--ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
--ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
--ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
--ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
--ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
@IvanArjona
IvanArjona / raspberrypi-mediacenter.md
Last active February 21, 2024 12:27
Configuración mediacenter raspberry pi con Plex, Sonarr y Jackett

Flashear SD

Descargar imagen Raspbian Lite.

Flashear imagen a la SD con Balena Etcher (Windows).

Activar ssh

Añadir carpeta /ssh a la raíz de la sd.

int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
@hugodias
hugodias / content-tag.php
Last active January 19, 2022 06:27
content_tag function in PHP to work as Rails content_tag function
<?php
/**
* @param $tag
*
* @return string
*/
function close_tag($tag)
{
return "</" . $tag . ">";
@SMUsamaShah
SMUsamaShah / List of JavaScript GUI libraries.md
Last active July 17, 2024 11:39
dat.gui alternatives to create GUI from JavaScript object

JavaScript GUI libraries

These libraries can be used to quickly create a GUI for configureable parameters using sliders, checkboxes, colors pickers etc

  1. Tweakpane https://github.com/cocopon/tweakpane Demo: https://cocopon.github.io/tweakpane/
  2. control-panel https://github.com/freeman-lab/control-panel
  3. ControlKit https://github.com/automat/controlkit.js
  4. guify https://github.com/colejd/guify Main site is down, here is the demo https://jons.website/projects/guify/index
  5. oui https://github.com/wearekuva/oui
  6. Palette.js https://github.com/lehni/palette.js
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
@carloscabo
carloscabo / __no-js__not-ie.js
Last active January 10, 2018 08:24
Detects JS support and IE10/11 browser
/*
<html xml:lang="es" lang="es" class="not-ie no-js">
Replaces the `no-js` by `js` if browser has JS support and the `not-ie` by `ie` if we are in IE browser
Conditional comments are no longer supported in IE10 / 11 https://msdn.microsoft.com/en-us/library/hh801214(v=vs.85).aspx
Is recommended to be the FIRST js script app ;)
*/
(function(){
var
ua = window.navigator.userAgent;