Skip to content

Instantly share code, notes, and snippets.

jakebathman / groupMeApi.php
Last active Aug 28, 2015
GroupMe API post
View groupMeApi.php
public function apiPost($url, $data = array() , $boolHeaders = false)
$ch = curl_init($url);
if (empty($data['file']))
$data = json_encode($data);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($data)
jakebathman / Auto-clicker for
Last active Aug 29, 2015
Auto-clicker for /r/TheButton
View Auto-clicker for


This little script will automatically click The Button ( when the timer goes below a certain time (set by the user as intClickUnderTime).

This will only run until you refresh the page or navigate away.

⚠️ ⚠️ ⚠️


jakebathman / map.php
Last active Aug 29, 2015
Google Maps v3 basic example
View map.php
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
jakebathman / markov.php
Last active Aug 29, 2015 — forked from bmcculley/markov.php
PHP Markov Chain class
View markov.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
Example Usage:
View regex.php
$arrRegexPatterns = array(
'subreddit' => "/(reddit\.com|reddittryhard\.com)?(?:\/r\/){1}([\w]+)/i",
if (preg_match($arrRegexPatterns['subreddit'], $text, $arrMatches) !== false)
echo json_encode($arrMatches);
View select_textarea.html
<textarea rows="10" cols="50" onclick="this.focus();" readonly="readonly">
example text
jakebathman / nflPick.php
Last active Sep 30, 2015
NFL Game Picker (random)
View nflPick.php
$arrMap = array(
"gameId" => "eid",
"gsis" => "gsis",
"day" => "d",
"time" => "t",
"status" => "q",
"homeAbb" => "h",
"homeName" => "hnn",
"homeScore" => "hs",
jakebathman / Fluent.filter.php
Last active Oct 1, 2015
Flient.filter.php update
View Fluent.filter.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* Filter Fluent: Create fluent style for multi-level object access.
* PHP version 5
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* If you did not receive a copy of
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
# which lists the steps for installing tmux 1.9
# install deps
yum install gcc kernel-devel make ncurses-devel
curl -OL

Keybase proof

I hereby claim:

  • I am jakebathman on github.
  • I am jakebathman ( on keybase.
  • I have a public key whose fingerprint is 3891 05D9 9B00 89CA 6185 734B 6AB7 BF82 DEE3 ADC0

To claim this, I am signing this object: