A Pen by Captain Anonymous on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'socket' | |
host = 'game.toribash.com' | |
port = 22000 | |
server = 'judo1' | |
#Create our socket. | |
lobbySock = TCPSocket.new host, port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create a new server if none exists already | |
require 'socket' | |
def resolver(server) | |
puts "Trying to resolve #{server} to IP..." | |
#Create our socket. | |
host = 'game.toribash.com' | |
port = 22000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
## Bot, sits in TB server and pings periodically to | |
## remain connected. Parses SAY strings for globals | |
require 'socket' | |
require 'digest/md5' | |
def resolver(server) | |
puts "Trying to resolve #{server} to IP..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
## Bot, sits in TB server and pings periodically to | |
## remain connected. Parses SAY strings for globals | |
require 'socket' | |
require 'digest/md5' | |
require 'io/wait' | |
def resolver(server) | |
puts "Trying to resolve #{server} to IP..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var http = require('http'); | |
var url = ''; | |
var data = ''; | |
var libraries = { | |
releases: {}, | |
snapshots: {} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//bookmarklet: | |
javascript:(function(e){var t=e(".comment"),n=t.find(".md > p");n.each(function(t){if(/^not\s+\w.+but/ig.test(e(this).text())){e(this).parentsUntil(".comment").parent().hide()}})})($) | |
//un minified: | |
(function ($) { | |
var c = $('.comment'), t = c.find('.md > p'); | |
t.each(function (index) { | |
if (/^not\s+\w.+but/ig.test($(this).text())) { | |
$(this).parentsUntil('.comment').parent().hide(); |