Skip to content

Instantly share code, notes, and snippets.

View tesfabpel's full-sized avatar

Fabrizio Pelosi tesfabpel

  • CostaSoft
View GitHub Profile
@tesfabpel
tesfabpel / test_bounds_enum_variants.rs
Created October 28, 2021 10:51 — forked from rust-play/playground.rs
Code shared from the Rust Playground
#[derive(Clone, Debug)]
pub struct Point(f32, f32);
#[derive(Clone, Debug)]
pub struct ValidBounds {
min: Point,
max: Point
}
#[derive(Clone, Debug)]
@tesfabpel
tesfabpel / proxy.rb
Last active August 29, 2015 14:01 — forked from torsten/proxy.rb
#!/usr/bin/env ruby
# A quick and dirty implementation of an HTTP proxy server in Ruby
# because I did not want to install anything.
#
# Copyright (C) 2009 Torsten Becker <torsten.becker@gmail.com>
require 'optparse'
require 'socket'
require 'uri'