Skip to content

Instantly share code, notes, and snippets.

@Jnesselr
Jnesselr / huffnesshopp.cpp
Created August 13, 2015 19:39
Huffman compression and decompression (Puff) that was done for a school assignment and designed to be fast
/*
Name: Huff.cpp
Authors: Caleb Hopper and Justin Nesselrotte
Data: 10/27/2013
Description: This program takes as input from the console a
file name. It then writes out a compressed file with the same
file name but a .huf extension. It does this by using the
Huffman algorithm to compress the data.
*/
#include <iostream>
@Jnesselr
Jnesselr / gist:3a588ef750130cbab064
Created May 26, 2015 07:18
Simple laravel environment manager
#!/bin/sh
if [ $# -eq 0 ]
then
if [ ! -f ".env" ]
then
echo "No current environment found"
exit
fi
#include <SoftwareSerial.h>
#define CARD_CODE_LENGTH 10
const int ledPin = 2;
const int doorLock = 4;
const int txPin = 6;
const int rxPin = 8;
int byteRead = 0;
int bytesRead = 0;