Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Watch the FIA documents portal for new event notes | |
# (Very quick and dirty but does the job, only tested on macOS) | |
require 'uri' | |
require 'net/http' | |
require 'nokogiri' | |
previous = nil | |
while true do |
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
// Super simple TCP echo server using Tokio | |
// basically a couple tutorials spliced together by DM Futcher (github.com/dmfutcher) | |
use tokio::net::{TcpListener, TcpStream}; | |
use tokio::io::{AsyncBufReadExt, AsyncWriteExt, BufReader}; | |
async fn process_connection(mut stream : TcpStream) { | |
let (reader, mut writer) = stream.split(); | |
let buf = BufReader::new(reader); | |
let mut lines = buf.lines(); |
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
;; Simple TCP echo server in x86_64 assembly, using Linux syscalls | |
;; | |
;; nasm -felf64 -o server.o server.asm | |
;; ld server.o -o server | |
;; ./server | |
;; | |
global _start | |
;; Data definitions |