Skip to content

Instantly share code, notes, and snippets.

@guneysus
guneysus / FastMethodInvoker.cs
Last active April 8, 2020 09:44 — forked from CleanCoder/Reflaction
FastMethodInvoker
public static FastInvokeHandler GetMethodInvoker(MethodInfo methodInfo)
{
DynamicMethod dynamicMethod = new DynamicMethod(string.Empty,
typeof(object), new Type[] { typeof(object),
typeof(object[]) },
methodInfo.DeclaringType.Module);
ILGenerator il = dynamicMethod.GetILGenerator();
ParameterInfo[] ps = methodInfo.GetParameters();
Type[] paramTypes = new Type[ps.Length];
for (int i = 0; i < paramTypes.Length; i++)
@guneysus
guneysus / markdown-details-collapsible.md
Created March 27, 2020 11:07 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets
@guneysus
guneysus / Makefile
Created March 26, 2020 10:02 — forked from puzrin/Makefile
Makefile example for fontello.com API
# Edit here - set path to you directory with config.json & fonts
FONT_DIR ?= ./assets/vendor/fontello/src
### Don't edit below ###
FONTELLO_HOST ?= http://fontello.com
fontopen:
@if test ! `which curl` ; then \
@guneysus
guneysus / How-to-Permalink-to-a-Gist's-Raw-File.md
Last active March 15, 2020 17:54 — forked from atenni/README.md
How to permalink to a gist's raw file