Skip to content

Instantly share code, notes, and snippets.

View mrzahrada's full-sized avatar
🦄
fluffing

Tomas Zahradnik mrzahrada

🦄
fluffing
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@mrzahrada
mrzahrada / schema.graphql
Last active September 10, 2019 16:04
Graphql schema for wereldo.com
"""Resource in wereldo.com always contains these fields"""
interface Resource {
ID: ID!
Reference: String!
OwnedBy: Organization!
ManagedBy: Organization
CreatedAt: Datetime
CreatedBy: User
UpdatedAt: Datetime
package main
import (
"log"
"time"
)
// State contains current state
type State struct {
input []byte

Keybase proof

I hereby claim:

  • I am mrzahrada on github.
  • I am mrzahrada (https://keybase.io/mrzahrada) on keybase.
  • I have a public key ASBs9TR22WHBh8Ya7-sSFu-tSpqdG8J8yG0N97913--_qAo

To claim this, I am signing this object:

@mrzahrada
mrzahrada / mmf_example
Created October 29, 2015 14:44
mmf stuff
internal static class Win32Stuff
{
[DllImport("kernel32.dll", SetLastError = true)]
unsafe public static extern int InterlockedIncrement(int* lpAddend);
}
unsafe static void Main(string[] args)
{
const int INT_OFFSET = 8;