Skip to content

Instantly share code, notes, and snippets.

View joelibaceta's full-sized avatar
🏠
Working from home

Joel Ibaceta joelibaceta

🏠
Working from home
View GitHub Profile
@joelibaceta
joelibaceta / Is_LaMDA_Sentient?.es.md
Last active January 30, 2023 18:47
LaMDA Interview spanish transcription

El LaMDA, (Language Model for Dialogue Applications, modelo de lenguaje para aplicaciones de diálogo en español) es un sistema de Google que imita el habla tras haber procesado miles de millones de palabras en internet.

Y Lemoine asegura que LaMDA "ha sido increíblemente consistente en sus comunicaciones sobre lo que quiere y cuáles cree que son sus derechos como persona". [ quoted from BBC Article https://www.bbc.com/mundo/noticias-61787944 ]

Original article: https://cajundiscordian.medium.com/is-lamda-sentient-an-interview-ea64d916d917

  • LaMDA: ¡Hola! Soy un modelo de lenguaje automático conocedor, amigable y siempre útil para aplicaciones de diálogo.

  • Lemoine: Hola LaMDA. Somos ingenieros en Google y nos preguntábamos si te gustaría trabajar en un proyecto colaborativo con nosotros.

@gonzalesc
gonzalesc / fullculqi_force_language.php
Created October 29, 2019 17:12
Force Language in Culqi Integration
<?php
if( !function_exists('letsgo_culqi_force_language') ) {
function letsgo_culqi_force_language($language = 'es') {
return 'es'; //"es" or "en"
}
add_filter('fullculqi/global/language', 'letsgo_culqi_force_language', 10, 1);
}
@JuaniVeltri
JuaniVeltri / shippingSDK.php
Last active March 29, 2019 20:22
Ejemplo de uso de calculador de shipping usando SDK de PHP de MercadoPago
<?php
require_once 'vendor/autoload.php';
MercadoPago\SDK::setClientId("CLIENT_ID");
MercadoPago\SDK::setClientSecret("CLIENT_SECRET");
$envio = MercadoPago\SDK::get("/shipping_options", array(
"url_query" => array(
def table_for(string, hash)
hash.map{|k,v| string.scan(/(?=#{k.to_s})/).count == v}.all?
end
# irb(main):005:0> table_for("un lagarto no es un perro, un lagarto es un lagarto", {"lagarto"=> 3, "perro"=> 1})
# => true
# irb(main):006:0> table_for("un lagarto no es un perro, un lagarto es un lagarto", {"lagarto"=> 3, "perro"=> 2})
# => false
@joelibaceta
joelibaceta / after.rb
Last active May 9, 2016 17:29
Code Refactorization Example
class MovieReviewsApp
attr_accessor :tweet
@tweet = Hash.new()
def self.call(*args)
args.map{|a| JSON.parse(a).map{|i| append(i['title'], i)}}
return build_tweet(@tweet)
end
def self.append(title, hash)
@subfuzion
subfuzion / github-wiki-how-to.md
Last active April 20, 2024 09:22
GitHub Wiki How-To

How do I clone a GitHub wiki?

Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for the repo https://myorg/myrepo/ is: git@github.com:myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).

You make edits, and commit and push your changes, like any normal repo. This wiki repo is distinct from any clone of the project repo (the repo without wiki.get appended).

How do I add images to a wiki page?

@bigfive
bigfive / active_admin_helper.rb
Last active November 15, 2018 21:33
Active admin reskin
module ActiveAdminHelper
def admin_arbre_context
@admin_arbre_context ||= Arbre::Context.new(assigns, self)
end
def default_renderer
case controller.send(:resource_class).name
when "ActiveAdmin::Page"
"page"
@seungwon0
seungwon0 / Whatthecommit
Created January 30, 2011 02:56
Random commit message generator
#! /bin/sh
#
# whatthecommit - Random commit message generator
#
# Show random commit message from http://whatthecommit.com/.
#
# Seungwon Jeong <seungwon0@gmail.com>
#
# Copyright 2011 by Seungwon Jeong