Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 106ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login

All gists

All Recently liked Recently forked
Recently created Least recently created Recently updated Least recently updated
jackz

jackz / BufferReader.ts

Last active 2 months ago
0 0 1
1 export default class BufferReader {
2 #buffer: Buffer
3 #offset: number
4 #length = 0
5
6 /// Yields BufferReaders, splitting when it hits newline
7 static *getPackets(data: Buffer) {
8 let reader = new BufferReader(data)
9 yield reader
10 // while(reader.nextBuffer != null) {
jackz

jackz / MNISTGRNN_multi.py

Last active 2 months ago
0 0 1
1 import numpy as np
2 import pandas as pd
3 import matplotlib.pyplot as plt
4 import pickle as pk
5 import multiprocessing
6 import time
7
8 MemoryValue = 0.55
9
10 start_time = time.time()
Newer Older