Skip to content

Instantly share code, notes, and snippets.

Jake Bathman jakebathman

Block or report user

Report or block jakebathman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jakebathman
jakebathman / markov.php
Last active Aug 29, 2015 — forked from bmcculley/markov.php
PHP Markov Chain class
View markov.php
<?php
/*
Levi Thornton from boogybonbon and wordze generously posted his php Markov
Chain class.. unfortunately there is a missing $nn++ thus the class can hang,
the working version is below all credit to Levi for the code, i just fixed a
bug.
Example Usage:
------------------
@jakebathman
jakebathman / install-tmux
Last active Nov 16, 2015 — forked from rothgar/install-tmux
Install tmux 2.0 on rhel/centos 6
View install-tmux
# Install tmux on Centos release 6.5
# Forked from https://gist.github.com/rothgar/cecfbd74597cc35a6018
# which lists the steps for installing tmux 1.9
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
@jakebathman
jakebathman / jsonToCsv.php
Last active Jun 21, 2019 — forked from Kostanos/json-to-csv.php
A function to convert a JSON string (or a PHP array) to a CSV file or CSV string echoed to the browser
View jsonToCsv.php
<?php
/*
*
* Based on (forked from) the work by https://gist.github.com/Kostanos
*
* This revision allows the PHP file to be included/required in another PHP file and called as a function, rather than focusing on command line usage.
*
* Convert JSON file to CSV and output it.
*
* JSON should be an array of objects, dictionaries with simple data structure
You can’t perform that action at this time.