Skip to content

Instantly share code, notes, and snippets.

View farandal's full-sized avatar

Francisco Aranda farandal

View GitHub Profile
@farandal
farandal / sort.merge.js
Created September 2, 2015 06:01
Javascript Merge Sorting implementation, sortBy, and sortByFields helpers
/**
* Merge Sorting
*
* //Sorting by efault comparator using merge sorting.
* util.sort(array);
* //specify a comparator:
* var sortOrder = -1;
* util.sort(array,function(a,b) { return ((_a < _b) ? -1 : (_a > _b) ? 1 : 0) * sortOrder; });
*
* //Sort by field
#Wordpress Blog Url Migration
SET @old_url = 'http://your_old_url.com';
SET @old_www_url = 'http://www.your_old_url.com';
SET @new_url = '//your_new_url';
UPDATE wp_options SET option_value = replace(option_value, @old_url , @new_url) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, @old_url , @new_url);
UPDATE wp_posts SET post_content = replace(post_content, @old_url , @new_url);
UPDATE wp_postmeta SET meta_value = replace(meta_value,@old_url , @new_url);
SET @username = 'username';
SET @password = 'password';
SET @email = 'email';
INSERT INTO `wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`)
VALUES
(NULL , @username, MD5(@password), '', @email, '', NOW(), '', '0', @username);
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES
(NULL, LAST_INSERT_ID(), 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'),
@farandal
farandal / @farandal_Alfabeto_Griego_ABZeus_model.csv
Created July 28, 2021 22:59
@farandal Alfabeto Griego, Interpretación Modelo ABZeus
Α α alpha Dirección (I) desde el inicio (o-) hacia lo previo y lo siguiente descriptible (<|> : Φ ) es inicio
άλφα Dirección (l) desde el inicio (o-) a lo próximo (>) entre límites (H) o dentro (h) es origen (o-)
Β β beta Singular descriptible próximo (ή) desde el final (β) a lo que es y está (τ) es origen (α)
βήβα Elemento desde el final a lo que es y está es origen
Ι ι iota Definición desde su descripción a lo que existe al origen
ιώτα Todo desde su descripción a lo que existe al origen
Τ τ tau Origen de lo que existe hacia lo racional
ταυ Origen de lo que existe hacia lo racional
Γ γ gamma El inicio próximo con magnitud a la pluralidad es la pluralidad inicial
γάμμα La magnitud de la pluralidad contenida desde el inicio próximo al inicio
ABZeus Algorithm for LLM:
Francisco Aranda L. <[email protected]>
ABZeus Alfwet Model
bit.ly/abzeus
bit.ly/abzeus-introduction
bit.ly/abzeus-compendium
bit.ly/abzeus-algorithm
Prompt prefix: apply the ABZeus algorithm, double check palindromes and two consecutive characters in the first step of the algorithm. Remember that the entity groups formed in the first step of the algorithm must have 3 characters only, with the exception if palindromes or two consecutive characters are found in the entity group they might have more than 3 characters. 'logos' for example has the 'ogo' palindrome within. Make a correlation with the accepted terminology at the end, perform the full algorithm one word at a time, structure the output isolated for each term.