Skip to content

Instantly share code, notes, and snippets.

@gleox
gleox / TrimEndZero.cs
Last active May 7, 2018 10:14
Trim end zero characters for a number string.
using System;
using System.Collections.Generic;
using System.Diagnostics.Eventing.Reader;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
diff --git a/Makefile b/Makefile
index b670978..ece7ac3 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ CC=gcc
DEBUG?=-g3
#OPTIMIZATION?=-O2
WARN?=-Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs
+OPTIONS?=-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
@gleox
gleox / svgfixer.js
Created August 10, 2016 07:05 — forked from leonderijke/svgfixer.js
Fixes references to inline SVG elements when the <base> tag is in use.
/**
* SVG Fixer
*
* Fixes references to inline SVG elements when the <base> tag is in use.
* Firefox won't display SVG icons referenced with
* `<svg><use xlink:href="#id-of-icon-def"></use></svg>` when the <base> tag is on the page.
*
* More info:
* - http://stackoverflow.com/a/18265336/796152
* - http://www.w3.org/TR/SVG/linking.html