Skip to content

Instantly share code, notes, and snippets.

View miguelcnf's full-sized avatar

Miguel Fonseca miguelcnf

View GitHub Profile
<HEADER>
<TITLE>The World Wide Web project</TITLE>
<NEXTID N="55">
</HEADER>
<BODY>
<H1>World Wide Web</H1>The WorldWideWeb (W3) is a wide-area<A
NAME=0 HREF="WhatIs.html">
hypermedia</A> information retrieval
initiative aiming to give universal
access to a large universe of documents.<P>
@miguelcnf
miguelcnf / rollback.go
Last active January 29, 2021 20:56
Idiomatic, simple, defer-based rollback mechanism https://play.golang.org/p/p28rpnpiUcL
package main
import (
"errors"
"log"
)
// rollback function
func rollback(rollbackCtrl *bool, rollbackFunc func()) {
if *rollbackCtrl {
@miguelcnf
miguelcnf / main.rs
Last active August 14, 2020 18:01
Raw notes taken during the udemy The Rust Programming Language course by Dmitri Nesteruk
#![allow(dead_code)]
use std::collections::{HashMap, HashSet};
use std::mem;
fn main() {
println!("Hello, world!");
// test_vars();
// test_operators();
// test_constants();