Skip to content

Instantly share code, notes, and snippets.

guneysus / How-to-Permalink-to-a-Gist'
Last active Mar 15, 2020 — forked from atenni/
How to permalink to a gist's raw file
View How-to-Permalink-to-a-Gist'
guneysus / Makefile
Created Mar 26, 2020 — forked from puzrin/Makefile
Makefile example for API
View Makefile
# Edit here - set path to you directory with config.json & fonts
FONT_DIR ?= ./assets/vendor/fontello/src
### Don't edit below ###
@if test ! `which curl` ; then \
guneysus /
Created Mar 27, 2020 — forked from pierrejoubert73/
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!


  1. A numbered
  2. list
    • With some
    • Sub bullets
guneysus / FP.cs
Last active Apr 8, 2020 — forked from CleanCoder/FP
Funtional Programming
View FP.cs
struct Result<T> {
public T Ok { get; }
public Exception Error { get; }
public bool IsFailed { get => Error != null; }
public bool IsOk => !IsFailed;
public Result (T ok) {
Ok = ok;
Error = default (Exception);
guneysus / FastMethodInvoker.cs
Last active Apr 8, 2020 — forked from CleanCoder/Reflaction
View FastMethodInvoker.cs
public static FastInvokeHandler GetMethodInvoker(MethodInfo methodInfo)
DynamicMethod dynamicMethod = new DynamicMethod(string.Empty,
typeof(object), new Type[] { typeof(object),
typeof(object[]) },
ILGenerator il = dynamicMethod.GetILGenerator();
ParameterInfo[] ps = methodInfo.GetParameters();
Type[] paramTypes = new Type[ps.Length];
for (int i = 0; i < paramTypes.Length; i++)
guneysus / HookFx.cs
Created May 11, 2020 — forked from NaxAlpha/HookFx.cs
Windows API Hook with C#
View HookFx.cs
using System;
using System.Runtime.InteropServices;
public class FxHook:IDisposable {
const int nBytes = 5;
IntPtr addr;
Protection old;
byte[] src = new byte[5];
guneysus /
Created May 15, 2020 — forked from v0lkan/
The Evolution of a Software Engineer

This gist outlines the change in the depth and breadth of the tasks and responsibilities of a software engineer as she continuously improves herself.

I created this to supplement a discussion in an internal slack group; then I though the rest of the world might benefit from this too.

Contributions are always welcome.

Junior Engineer

  • Knowledge
View MSSQL executed query history
USE master
SELECT sdes.database_id
View contribs-with-repo-descriptions.gql
viewer {
repositoriesContributedTo(last: 100, orderBy: {field: STARGAZERS, direction: DESC}, includeUserRepositories: false, contributionTypes: [COMMIT, ISSUE, REPOSITORY, PULL_REQUEST, PULL_REQUEST_REVIEW]) {
nodes {
primaryLanguage {
guneysus /
Created Jul 20, 2020 — forked from GrabYourPitchforks/
Memory<T> API documentation and samples

Memory<T> API documentation and samples

This document describes the APIs of Memory<T>, IMemoryOwner<T>, and MemoryManager<T> and their relationships to each other.

See also the Memory<T> usage guidelines document for background information.

First, a brief summary of the basic types

  • Memory<T> is the basic type that represents a contiguous buffer. This type is a struct, which means that developers cannot subclass it and override the implementation. The basic implementation of the type is aware of contigious memory buffers backed by T[] and System.String (in the case of ReadOnlyMemory<char>).