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
My name is {{.Name}} and I'm {{.Age}} years old!! |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
today := time.Now() | |
julian := GregorianToJulian(today.Year(), int(today.Month()), today.Day()) |
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
" Name: No Frils Dark Colorscheme | |
" Author: robertmeta (on Github) | |
" URL: https://github.com/robertmeta/nofrils | |
" (see this url for latest release & screenshots) | |
" License: OSI approved MIT license | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
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
package main | |
import ( | |
"crypto/hmac" | |
"crypto/sha256" | |
"fmt" | |
"hash" | |
"io" | |
"golang.org/x/crypto/hkdf" |
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 <immintrin.h> | |
#include <inttypes.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
// hi lo | |
// Vd, Vn, Vm, #imm | |
#define vext8(x, y) ({ \ | |
uint64_t xhi = _mm_extract_epi64((x), 1); \ | |
uint64_t ylo = _mm_extract_epi64((y), 0); \ |
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 <arm_neon.h> | |
#include <stdint.h> | |
typedef uint8x16_t u128; | |
#define pmullq_u8(a, b) ({ \ | |
u128 r; \ | |
__asm__ __volatile__("pmull %0.1q, %1.1d, %2.1d \n\t" \ | |
: "=w"(r) \ | |
: "w"((a)), "w"((b))); \ |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"syscall" | |
"unsafe" | |
) | |
var ( |
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 <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
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
/*-------, .-------* | |
| +----------------------+ | | |
*----| THE REALTIME GUILD |----* | |
`*--------------------*/ |
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
#ifndef ListH | |
#define ListH | |
#include <stdlib.h> | |
#include <string.h> | |
#define LIST_DECLARE_EX(n,t,r) \ | |
typedef struct list_##n { t* v; unsigned c, a; } list_##n; \ | |
void list_init_##n (list_##n * list); \ | |
void list_clear_##n (list_##n * list); \ |
NewerOlder