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 / 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:
#!/bin/sh
script_name=`basename "$0"`
branch_name="$(git symbolic-ref HEAD 2>/dev/null)" ||
branch_name="(unnamed branch)" # detached HEAD
branch_name=${branch_name##refs/heads/}
if [ -z "$1" ]
then
echo "You must provide a version string, for instance:"
echo "./$script_name v1.34.9-beta"
# Randomly copy certain amount of certain file type from one directory into another
shuf -zn8 -e *.jpg | xargs -0 cp -vt target/
# shuf shuffles the list of *.jpg files in the current directory.
# -z is to zero-terminate each line, so that files with special characters are treated correctly.
# -n8 exits shuf after 8 files.
# xargs -0 reads the input delimited by a null character (from shuf -z) and runs cp.
# -v is to print every copy verbosely.
# -t is to specify the target directory.
@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;
@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;
@mixin ie() {
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
@content;
}
}
@carloscabo
carloscabo / .eslintrc
Created August 22, 2017 13:42
VSCode default .eslintrc
{
"env": {
"browser": true,
"es6": true,
"jquery": true
},
"globals": {
"CEP": true,
"MQBE": true,
"Swiper": true,
@carloscabo
carloscabo / archillect_images_filtered.txt
Created July 8, 2017 16:00
archillect_images_filtered.txt
This file has been truncated, but you can view the full file.
http://33.media.tumblr.com/41460e0998b603696e7e099cc3a3448a/tumblr_mtbk48fbRb1r70wouo1_500.gif
http://33.media.tumblr.com/846fd9340ed1c31e81b041ec492e4ef7/tumblr_n6s3z23sNO1sa7e18o1_500.gif
http://33.media.tumblr.com/785e7510dcf91bc284560b0f0495b7d1/tumblr_n8es4eWfKz1selevzo1_500.gif
http://38.media.tumblr.com/3c04c288a0c4b4fea5b9741646248186/tumblr_nas45dAhHF1tticljo1_400.gif
http://38.media.tumblr.com/tumblr_m9gw12l0OY1r4zr2vo1_r1_500.gif
http://38.media.tumblr.com/4f04e046555fed7bffc9db587e22f2aa/tumblr_miedjhR3AC1qaxxueo1_500.gif
http://38.media.tumblr.com/db63dbe147706bdf5a1453732f02d98c/tumblr_n289m5izc81qzcuu3o1_500.gif
http://33.media.tumblr.com/c9a7d1b2f68e95e4358bb494d09b8714/tumblr_mk3kkvZVVf1qb2cp4o1_500.gif
http://33.media.tumblr.com/eb3d713fba47ea2d42b0dee4acf787d6/tumblr_mlfqwkcBM61rk1qp5o1_500.gif
http://38.media.tumblr.com/98d80cfaa486d98a86136f1dd86cac44/tumblr_mguqhvDxdH1qzqz4so1_500.gif