Skip to content

Instantly share code, notes, and snippets.

View binaryatrocity's full-sized avatar

Brandon Cornejo binaryatrocity

View GitHub Profile
@binaryatrocity
binaryatrocity / gist:d8c4660394dc6acce7c6
Created May 14, 2014 03:24
Dota Item Tooltips (too old)
<?php
$id = $_POST['id'];
$type = $_POST['ttt'];
if(isset($type) && isset($id))
{
switch($type)
{
case 'item':
getItem($id);
@binaryatrocity
binaryatrocity / gist:8e2970efc1548e169f40
Last active August 29, 2015 14:00
First JS Pagination & Live Search Attempt
var perPage = 20,
data = [[ PUT DATA INTO TEMPLATE HERE ]]
lastPage = Math.ceil(data.length/perPage);
function minifyPagination() {
var current = parseInt($('li.uk-active').attr('page')),
min = Math.max(current-3, 1),
max = current+3;
$('#page_first, #page_last').remove();
@binaryatrocity
binaryatrocity / gist:8035168
Last active December 31, 2015 19:39
MUD Connect Script (tmux & tintin++)
#/bin/bash
tmux split-window -h -p 35 "tail -f ~/MUD/$1/chat.log"
tmux split-window -v -p 40 "pico ~/MUD/$1/notes.txt"
tmux select-pane -t 0
tt++ ~/MUD/$1/config.tin
tmux kill-pane -a