Skip to content

Instantly share code, notes, and snippets.

View aehernandez's full-sized avatar

Alain Hernandez aehernandez

View GitHub Profile
@aehernandez
aehernandez / .vimrc
Last active June 26, 2019 19:22
.vimrc
" Usage
" curl https://gist.githubusercontent.com/aehernandez/2980246e2ecf78de87e6d05ccd1ad396/raw/3e0d1d7ccd08cc68d225fb6e0c6d97ff42c154f8/.vimrc > ~/.vimrc && vim
set t_Co=256
syntax on
" colorscheme molokai
set textwidth=120 " break lines when line length increases
set expandtab " enter spaces when tab is pressed
set tabstop=4 " use 4 spaces to represent tab
@aehernandez
aehernandez / ws.sh
Last active March 8, 2019 05:21
Serve files in a web server from a directory with a single command
#!/bin/bash
# Usage: ws.sh /path/to/directory
# Makes all files and directories under `directory` available from port 80 (HTTP) on your local machine
# Check that a path was provided
if [ -z "$1" ]
then
echo "No target directory provided"
exit 1
fi
@aehernandez
aehernandez / REPORT.md
Created April 26, 2016 22:42
CIS198 Final Project Report

Summary

The current state Rump library can connect to a WAMP router and perform publish and subscribe events asynchronously. It has support for encoding heterogeneous positional arguments and keyword arguments when Rust's strongly typed system, while still adhering to WAMP's robust spec. The limitations of the Rump library lies in it's lack of error handling and fine grained control over events and event options.

Accomplishments

There were three tiers of goals: minimal, expected, and stretch goals.