Skip to content

Instantly share code, notes, and snippets.

View yordis's full-sized avatar
💜
Helping people one second at the time

Yordis Prieto yordis

💜
Helping people one second at the time
View GitHub Profile
@yordis
yordis / easing.css
Created June 29, 2018 13:00 — forked from bendc/easing.css
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
@yordis
yordis / color-conversion-algorithms.js
Created July 1, 2018 09:50 — forked from mjackson/color-conversion-algorithms.js
RGB, HSV, and HSL color conversion algorithms in JavaScript
/**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0, 1].
*
* @param Number r The red color value
* @param Number g The green color value
* @param Number b The blue color value
* @return Array The HSL representation
@yordis
yordis / speechtotext.html
Created December 18, 2018 06:12
Prototype for speech to text
<h1>Speech to Text</h1>
<p class="closed-caption"></p>
alias API.{ErrorView, Redis}
defmodule API.RateLimitPlug do
@moduledoc """
A plug that rate limits authenticated requests by the minute.
"""
import Plug.Conn
import Phoenix.Controller
@yordis
yordis / main.go
Created May 25, 2020 19:15 — forked from julz/main.go
containersched minicontainer
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
@yordis
yordis / MutateRuntimePlugin.js
Created June 16, 2020 13:27 — forked from ScriptedAlchemy/MutateRuntimePlugin.js
Remote PublicPath Modification
const PLUGIN_NAME = "MutateRuntimePlugin";
class MutateRuntimePlugin {
/**
*
* @param {FederationDashboardPluginOptions} options
*/
constructor(options) {}
/**
@yordis
yordis / MutateRuntimePlugin.js
Created June 16, 2020 13:27 — forked from ScriptedAlchemy/MutateRuntimePlugin.js
Remote PublicPath Modification
const PLUGIN_NAME = "MutateRuntimePlugin";
class MutateRuntimePlugin {
/**
*
* @param {FederationDashboardPluginOptions} options
*/
constructor(options) {}
/**
@yordis
yordis / MutateRuntimePlugin.js
Created June 16, 2020 13:27 — forked from ScriptedAlchemy/MutateRuntimePlugin.js
Remote PublicPath Modification
const PLUGIN_NAME = "MutateRuntimePlugin";
class MutateRuntimePlugin {
/**
*
* @param {FederationDashboardPluginOptions} options
*/
constructor(options) {}
/**
{
"environment": "staging"
}
@yordis
yordis / eventstore.cs
Created January 6, 2021 02:39 — forked from adymitruk/eventstore.cs
simple event store in #0tech c#
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Text;
using System.Threading;
using System.Xml;
using System.Xml.Serialization;
using System.Linq;
using domain;