Skip to content

Instantly share code, notes, and snippets.

View eduardo-robles's full-sized avatar

Eduardo Robles eduardo-robles

View GitHub Profile
(setq-default gptel-model "gemini-pro"
gptel-backend (gptel-make-gemini "Gemini"
:key "xxxxxxxx"
:stream t))
(setq tag-list nil)
(mapc (lambda (buffer)
(with-current-buffer buffer
(org-element-map (org-element-parse-buffer) 'headline
(lambda (headline)
(let ((tags (org-element-property :tags headline)))
(when tags
(setq tag-list (append tags tag-list))))))))
(buffer-list))
(setq tag-list (delete-dups tag-list))

{{{travis}}} {{{melpa}}} {{{GPLv3}}}

@eduardo-robles
eduardo-robles / keybase.md
Created February 8, 2017 22:56
keybase.md

Keybase proof

I hereby claim:

  • I am eduardo-robles on github.
  • I am eduardorobles (https://keybase.io/eduardorobles) on keybase.
  • I have a public key whose fingerprint is 4440 B6B3 10DF AF2B 0E01 A3D6 5BFD 7245 1356 7F96

To claim this, I am signing this object:

@eduardo-robles
eduardo-robles / logo-switcher
Created June 23, 2016 16:32
This function switches the logo by determining on which page it is on via the PageID inside WordPress
<?php
/*
* Include the following 2 line of code in the area of the theme where you want the logo to change
*/
?>
<?php $postid = get_the_ID(); ?>
<?php echo logoSwitcher($postid); ?>