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
@carloscabo
carloscabo / reset.css
Created October 20, 2023 06:42 — forked from atelierbram/reset.css
CSS Typography reset
html, body, div, span, applet, object, iframe, table, caption,
tbody, tfoot, thead, tr, th, td, del, dfn, em, font, img, ins,
kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,
acronym, address, big, cite, code, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend {
vertical-align: baseline;
font-family: inherit;
font-weight: inherit;
font-style: inherit;
@carloscabo
carloscabo / hosts
Created May 23, 2023 05:36
Block Adobe Hosts \drivers\etc\hosts
# This file is just a list of hosts to prevent adobe activation.
# For more protection, like blocking Adware, Malware, FakeNews,
# Gambling, Porn or Social, go to https://github.com/StevenBlack/hosts
#
# To easily manage multiple host databases, use Hostman.
# http://www.abelhadigital.com/hostsman/
# Or just copy that file to
# "C:\Windows\System32\drivers\etc"
# =================================
@carloscabo
carloscabo / key.md
Created February 3, 2023 09:03
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

function setup() {
createCanvas(800, 800);
angleMode(DEGREES);
}
function draw() {
background((95 / 100) * 255);
push();
translate(width / 2, height / 2);
let ratio = 0.01;
@carloscabo
carloscabo / content-tag.php
Created January 19, 2022 06:27 — forked from hugodias/content-tag.php
content_tag function in PHP to work as Rails content_tag function
<?php
/**
* @param $tag
*
* @return string
*/
function close_tag($tag)
{
return "</" . $tag . ">";
@carloscabo
carloscabo / ffmpeg.txt
Created October 15, 2021 12:33 — forked from fraguada/ffmpeg.txt
ffmpeg cheat sheet
.png sequence to mp4
ffmpeg -r 30 -i Frame_%05d.png -pix_fmt yuv420p out.mp4
-intra flag useful for seekable mp4, but higher file size
concatenate mp4s
https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg
:: Create File List
echo file file1.mp4 > mylist.txt
echo file file2.mp4 >> mylist.txt
@carloscabo
carloscabo / hypnosquare.pde
Created October 26, 2020 18:55 — forked from beesandbombs/hypnosquare.pde
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);
HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008
Compiled by Eric Pement - eric [at] pement.org version 0.27
Latest version of this file (in English) is usually at:
http://www.pement.org/awk/awk1line.txt
This file will also be available in other languages:
Chinese - http://ximix.org/translation/awk1line_zh-CN.txt
USAGE:
@carloscabo
carloscabo / noiseloop.pde
Created November 27, 2017 16:01 — forked from golanlevin/noiseloop.pde
Processing code to demonstrate seamless loop of 1D noise
// Processing 3.0x code to demonstrate seamless loop of 1D noise
// Inspired by, and created in support of:
// "Drawing from noise, and then making animated loopy GIFs from there" by Etienne Jacob (@n_disorder)
// https://necessarydisorder.wordpress.com/2017/11/15/drawing-from-noise-and-then-making-animated-loopy-gifs-from-there/
// Note: this program has no dependencies, and does not require SimplexNoise.
// Demo GIF: https://media.giphy.com/media/xUOxeU2ELSPeTbevle/giphy.gif or http://gph.is/2Ah5kqG
PGraphics offscreenImg;
float myScale = 0.01;
float radius = 100.0;