Skip to content

Instantly share code, notes, and snippets.

View hexerei's full-sized avatar

Daniel Vorhauer hexerei

View GitHub Profile
@hexerei
hexerei / index.html
Created May 26, 2017 10:16
Liquid number format with thousands and decimal seperator
<h1>Usage Template</h1>
<h2>With integer to decimal conversion</h2>
<p>
{% include numf.html number=12345 %} <!-- output is 12.345,00 --><br />
{% include numf.html number=12345 decimals=0 %} <!-- output is 12.345 --><br />
{% include numf.html number=12345 decimals=4 %} <!-- output is 12.345.0000 --><br />
{% include numf.html number=12345 ds='.' ts=',' %} <!-- output is 12,345.00 --><br />
</p>
@hexerei
hexerei / graph_gist_template.adoc
Created August 25, 2016 18:09 — forked from jexp/graph_gist_template.adoc
CHANGEME: GraphGist Template. Fork to make your own, view source to see instruction comments

REPLACEME: TITLE OF YOUR GRAPHGIST

Introduction

@hexerei
hexerei / gist:fb7f4128f1beb2b87bed
Created October 25, 2015 10:55
telephone.app - crash on 10.11.1 after wake-up
Process: Telephone [1783]
Path: /Applications/Telephone.app/Contents/MacOS/Telephone
Identifier: com.tlphn.Telephone
Version: 1.1.4 (114)
App Item ID: 406825478
App External ID: 221942642
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Telephone [1783]
User ID: ..me..
@hexerei
hexerei / majortom.vba
Created October 7, 2015 19:27
Selfdestructing VBA Code - Code to remove all VBA Modules from given Window - i.e. after copying Table, remove code
Dim x As Integer
With ActiveWindow
.Visible = False
.Activate
On Error Resume Next
For x = .VBProject.VBComponents.Count To 1 Step -1
.VBProject.VBComponents.Remove .VBComponents(x)
Next x
For x = .VBProject.VBComponents.Count To 1 Step -1
.VBProject.VBComponents(x).CodeModule.DeleteLines _
<?xml version="1.0"?>
<!--
ADOBE SYSTEMS INCORPORATED
Copyright 2005-2007 Adobe Systems Incorporated
All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file
in accordance with the terms of the license agreement accompanying it.