This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stddef.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
typedef struct { | |
int baz; | |
} bar; | |
typedef struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE AllowAmbiguousTypes #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
module ByteEnum (ByteEnum, toByte, fromByte, fromByteAll, allValues, enum) where | |
import Data.Word (Word8) | |
import Language.Haskell.TH | |
class ByteEnum e where | |
toByte :: e -> Word8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tag = Symbol(); | |
const data = (variants, extend = class {}) => { | |
const obj = class extends extend {}; | |
for (const v in variants) { | |
let cargs; | |
obj[v] = (...args) => new (class extends obj { | |
constructor(...args) { | |
super(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set runtimepath+=~/.config/nvim/repos/github.com/Shougo/dein.vim | |
let s:bundle_dir = expand('~/.config/nvim') | |
let s:plugin_dir = s:bundle_dir . '/repos/github.com' | |
if dein#load_state(s:bundle_dir) | |
call dein#begin(s:bundle_dir) | |
" --- Dein --- |