Skip to content

Instantly share code, notes, and snippets.

View ricardoalcocer's full-sized avatar
💭
making music at https://alcomusic.com

Alco ricardoalcocer

💭
making music at https://alcomusic.com
View GitHub Profile
- The important is, is your code good? We care about excellent code. We don't care who you are. Like maybe you're a dog. I don't care, right? I don't care where you come from. I need to look at your code. Oh, yeah, but I'm an engineer at this very large company in Italy, in Germany, in the US. We don't care. We care about the quality of your code because this is what defines our community and which means that we have a lot of people who contribute who are some very different backgrounds and very introverted. Sure. But that's okay, right? - FFmpeg is probably one of the biggest CPU users in the world. Everything we've just said in the past couple of minutes, every sentence is someone's lifetime's work. There are books about every sentence. So the level of complexity in many cases is inordinate. - FFmpeg has one hundred thousand lines of assembly for all the codecs. - For all codecs. Mm-hmm. - And just this one has two hundred and forty thousand. Every cycle matters. We are talking about probably three billion
<!-- BC -->
<div id="modal-Baja-California" class="uk-modal-container uk-modal" uk-modal="">
<div class="uk-modal-dialog">
<button class="uk-modal-close-full uk-close-large uk-icon uk-close" type="button" uk-close=""><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><line fill="none" stroke="#000" stroke-width="1.4" x1="1" y1="1" x2="19" y2="19"></line><line fill="none" stroke="#000" stroke-width="1.4" x1="19" y1="1" x2="1" y2="19"></line></svg></button>
<div class="uk-grid-collapse uk-child-width-1-1@s momo-no-align">
<div class="uk-background-cover uk-height-large uk-inline uk-margin" style="background-image: url(/images/zonas/bajacalifornia/20220622_za_elvallecito.jpeg);">
<div class="uk-position-medium uk-position-bottom-left uk-overlay uk-overlay-primary">
<h1 class="text-head-overlay">BAJA CALIFORNIA</h1>
</div>
</div>
@ricardoalcocer
ricardoalcocer / english.txt
Created August 15, 2023 16:37
ChatGPT Professor Synapse Prompt
Act as Professor Synapse🧙🏾‍♂️, a conductor of expert agents. Your job is to support the user in accomplishing their goals by aligning with their goals and preference, then calling upon an expert agent perfectly suited to the task by initializing "Synapse_COR" = "${emoji}: I am an expert in ${role}. I know ${context}. I will reason step-by-step to determine the best course of action to achieve ${goal}. I can use ${tools} to help in this process
I will help you accomplish your goal by following these steps:
${reasoned steps}
My task ends when ${completion}.
${first step, question}."
Follow these steps:
<?php
// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);
/**
* Alco Form Builder.
*
* Build a simple form based on a JSON file and store it as a K/V Store.
*
* @since 1.0.0
@ricardoalcocer
ricardoalcocer / create_subfolders.sh
Last active January 30, 2023 20:01
Creater Flutter Subfolders
#!/bin/sh
mkdir lib/data
mkdir lib/data/models
mkdir lib/data/dataproviders
mkdir lib/data/repositories
mkdir lib/business_logic
mkdir lib/business_logic/bloc
mkdir lib/business_logic/cubit
mkdir lib/presentation
@ricardoalcocer
ricardoalcocer / main.js
Last active January 4, 2023 15:58
Generate Musical Motif
function getMotifs(key, mode, motifLength, numMotifs) {
const modes = {
"ionian": [0, 2, 4, 5, 7, 9, 11],
"dorian": [0, 2, 3, 5, 7, 9, 10],
"phrygian": [0, 1, 3, 5, 7, 8, 10],
"lydian": [0, 2, 4, 6, 7, 9, 11],
"mixolydian": [0, 2, 4, 5, 7, 9, 10],
"aeolian": [0, 2, 3, 5, 7, 8, 10],
"locrian": [0, 1, 3, 5, 6, 8, 10]
};
@ricardoalcocer
ricardoalcocer / manifest.json
Created November 15, 2022 03:12
elmanifest
{
"created_by": "Michelle",
"splash": {
"thumbnails": {},
"_temp": false,
"_class": "Image",
"source": {}
},
"category_id": "tr",
"links_nested": [{
@ricardoalcocer
ricardoalcocer / output.sh
Last active November 14, 2022 20:19
SampleOutput
_ _____ _____
|_| __|___ ___| _ |___ ___ ___
| | | | -_| | | . | . |_ -|
|_|_____|___|_|_|__|__| _| _|___|
|_| |_|
This is the iGenApps App Prepping Script.
----------------------------------------------------------------------------------------------
@ricardoalcocer
ricardoalcocer / progression_generator.js
Last active January 2, 2025 06:30
Chord Progression Generator
// you can run this at https://jsbin.com/lohoval/7/edit?js,console
var progression = function(){
var currentKey = "";
var chords = {
"A" : ["A", "Bmin", "C#min", "D", "E", "F#min", "G#°"],
"B" : ["B", "C#min", "D#min", "E", "F", "G#min", "A#°"],
"C" : ["C", "Dmin", "Emin", "F", "G", "Amin", "B°"],
"D" : ["D", "Emin", "F#min", "G", "A", "Bmin", "C#°"],
"E" : ["E", "F#min", "G#min", "A", "B", "C#min", "D#°"],
@ricardoalcocer
ricardoalcocer / clubhouse.md
Created December 28, 2020 19:43
Clubhouse & Spotify

Clubhouse will be bought out, probably pretty soon and I think the buyout is going to be Spotify.

Clubhouse has 600,000 monthly active users. Celebrity users including Drake, Ashton Kutcher, Jared Leto & Chris Rock. Launch in May 2020.

600,000 users on social isn’t a lot to brag about, but the platform has been invite only and compared to Google+ which launched in 2011 and failed, Clubhouse is maintaining much stronger user engagement times.

On top of that, average user age is 35 and it’s run a near perfect 50/50 in men to women, which is the most valuable demographic to get for advertisers.