Skip to content

Instantly share code, notes, and snippets.

View gonzafernan's full-sized avatar
🎯
Focusing

Gonzalo G. Fernández gonzafernan

🎯
Focusing
View GitHub Profile
@gonzafernan
gonzafernan / variadic_function.c
Created July 9, 2018 23:54
Variadic function example
/*
EXAMPLE FROM THE GNU C LIBRARY
http://www.gnu.org/software/libc/manual/html_node/Variadic-Example.html#Variadic-Example
*/
#include <stdarg.h>
#include <stdio.h>
int add_em_up (int count,...){
va_list ap;
@gonzafernan
gonzafernan / progressBar.py
Last active March 29, 2019 21:47
Progress bar for python code
# From: https://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console
# Print iterations progress
def printProgressBar(iteration, total, prefix='', suffix='',
decimals=1, length=100, fill='█'):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
prefix - Optional : prefix string (Str)
@gonzafernan
gonzafernan / bash
Last active December 6, 2018 17:53
Bibliografía en LaTex con Biblatex y biber
biber example_doc
@gonzafernan
gonzafernan / dwm.desktop
Created March 23, 2020 21:26
dwm xsession entry
[Desktop Entry]
Encoding=UTF-8
Name=dwm
Comment=Dynamic window manager
Exec=dwm
Icon=dwm
Type=XSession
@gonzafernan
gonzafernan / getmonth.c
Last active April 20, 2022 16:01
Program to obtain month name from the corresponding index.
/*
============================================================================
Name : getmonth.c
Author : Gonzalo G. Fernandez
Email : ggfernandez@unbosque.edu.co
Institution : Universidad El Bosque
Year : 2022
Version : 1.0
Copyright : License MIT
Description : Program to obtain month name from the corresponding index.
@gonzafernan
gonzafernan / rpncalc.c
Last active April 20, 2022 16:00
Reverse Polish notation (RPN) is a mathematical notation in which operators follow their operands. This is a C implementation with a simple stack.
/*
============================================================================
Name : rpncalc.c
Author : Gonzalo G. Fernandez
Email : ggfernandez@unbosque.edu.co
Institution : Universidad El Bosque
Year : 2022
Version : 1.0
Copyright : License MIT
Description : Reverse Polish notation (RPN) is a mathematical notation in
[Desktop Entry]
Name=Obsidian
Exec=obsidian --no-sandbox %U
Terminal=false
Type=Application
Icon=/opt/obsidian/obsidian.png
StartupWMClass=obsidian
X-AppImage-Version=1.5.12
Comment=Obsidian
MimeType=x-scheme-handler/obsidian;