Skip to content

Instantly share code, notes, and snippets.

View rmaicle's full-sized avatar

ric maicle rmaicle

  • Quezon City, Philippines
View GitHub Profile
@rmaicle
rmaicle / convert_asciidoc_html_to_markdown
Created April 24, 2017 13:58
Converts asciidoc generated HTML to markdown
#!/bin/bash
# Convert asciidoc to markdown
# Argument(s):
# - filename - assumed to have an extension of .adoc
#
# TODO: Lists
filename="$1.md"
filename="${filename//-/_}"
@rmaicle
rmaicle / compose_image.sh
Last active September 11, 2018 02:46
Compose Image from input text using a background image.
#!/bin/sh
# ------------------------------------------------------------------------------
# Reference(s):
# Uses Fred's ImageMagick Scripts
# http://www.fmwconcepts.com/imagemagick/
# - graytoning
# ------------------------------------------------------------------------------
@rmaicle
rmaicle / var_1a
Created November 21, 2014 16:33
Simple variant class using standard container for storage and small buffer optimization
class var
{
private:
std::size_t index;
static std::vector<int64_t> vsigned;
static std::vector<double> vdouble;
static std::vector<std::string> vstring;
public:
var() { }
var(bool v) : index(v) { }