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
@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 July 17, 2022 22:04
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.

@ricardoalcocer
ricardoalcocer / snippet.html
Created December 3, 2020 22:37
JS Closure Snippet
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script lang="javascript">
var module = function(){
@ricardoalcocer
ricardoalcocer / .htaccess
Last active November 20, 2020 16:47
iTransfer - Like we transfer but not as good
Options -Indexes
RewriteEngine On
################################################################
## ROUTES
################################################################
RewriteRule ^f/([A-Za-z0-9-\s]+)/?$ ./gf.php?f=$1 [NC,L]