Skip to content

Instantly share code, notes, and snippets.

View ammancilla's full-sized avatar
😃
Compa’ qué?

Alfonso Manuel ammancilla

😃
Compa’ qué?
View GitHub Profile
@ammancilla
ammancilla / api_wrapper.rb
Created January 25, 2021 21:26
API WRAPPER
require 'net/http'
module APIWrapper
class ServiceUnavailable < StandardError; end
class BadGateway < StandardError; end
class GatewayTimeOut < StandardError; end
class UnknownResponse < StandardError; end
class InvalidResponse < StandardError; end
class ExternalServerError < StandardError; end
class BadRequest < StandardError; end
#
# Simple python module to add a black fadeout effect to a given image
#
#
# apt-get install -y gimp gimp-python
#
# gimp -i -d -f --batch-interpreter python-fu-eval -b 'import sys; sys.path=["."]+sys.path;import gimp_fadeout; gimp_fadeout.apply()'
#
@ammancilla
ammancilla / csv_to_xlsx_r.rb
Last active March 31, 2020 14:39
Convert a single .csv file to .xlsx file. Convert a folder of .csv files into a folder of .xlsx files.
#
# 1. Convert a given .csv to .xslx
# 2. Convert *.csv, from a given directory (and sub-directories), to .xlsx preserving the structure of the directory
#
# Example:
#
# 1. csv_to_xlsx(path_to_csv_file)
# 2. csv_to_xlsx_r(path_to_directory)
#

Keybase proof

I hereby claim:

  • I am ammancilla on github.
  • I am almancill (https://keybase.io/almancill) on keybase.
  • I have a public key ASAvY9XjLXSaDa_c3eCxKrNSjUbHsvC6mG0b5-o5pwdgKgo

To claim this, I am signing this object: