Skip to content

Instantly share code, notes, and snippets.

@Jnesselr
Jnesselr / huffnesshopp.cpp
Created Aug 13, 2015
Huffman compression and decompression (Puff) that was done for a school assignment and designed to be fast
View huffnesshopp.cpp
/*
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
Simple laravel environment manager
View gist:3a588ef750130cbab064
#!/bin/sh
if [ $# -eq 0 ]
then
if [ ! -f ".env" ]
then
echo "No current environment found"
exit
fi
View RFID_door
#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;
You can’t perform that action at this time.