This doc includes some random notes on implementing mode/presence tracking in IRC. Note that this implementation assumes we don't have access to any IRCv3 caps.
There is a rough implementation for go-irc here.
package log_hook | |
import ( | |
"errors" | |
"github.com/Sirupsen/logrus" | |
"github.com/getsentry/raven-go" | |
) | |
// severityMap is a simple mapping of logrus log level to raven log |
README.el | |
backups/ | |
elpa/ | |
projectile-bookmarks.eld | |
recentf | |
smex-items |
This doc includes some random notes on implementing mode/presence tracking in IRC. Note that this implementation assumes we don't have access to any IRCv3 caps.
There is a rough implementation for go-irc here.
I hereby claim:
To claim this, I am signing this object:
// NOTE: _GNU_SOURCE is required for this to work because of asprintf | |
#define _GNU_SOURCE | |
#include <stdarg.h> | |
#include <stdio.h> | |
// This function allocates a string, prints the formatted version to it and uses write to print it to stdout. | |
void waprintf(const char *fmt, ...) { | |
va_list args; |
[submodule "mcstat"] | |
path = mcstat | |
url = https://github.com/winny-/mcstat.git |
<?php | |
// Settings | |
$hostname = "66.240.202.11"; | |
$port = 25565; | |
// Based off of https://github.com/winny-/mcstat/blob/master/mcstat.php | |
// with updated reading of the key-value and username portions. | |
$sess_id = rand(1, 0xFFFFFFFF) & 0x0F0F0F0F; |
import json | |
import struct | |
import socket | |
# Minecraft varints are 32-bit signed values | |
# packed into Google Protobuf varints | |
# https://gist.github.com/nickelpro/7312782 | |
import struct | |
def pack_varint(val): |
import java.awt.Graphics; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.imageio.ImageIO; | |
import org.apache.commons.cli.BasicParser; | |
import org.apache.commons.cli.CommandLine; | |
import org.apache.commons.cli.HelpFormatter; |
import requests | |
import gspread | |
gc = gspread.login('[email protected]', 'password') | |
wks = gc.open('Reddit Analysis Data').sheet1 | |
# Grab the hot topics | |
r = requests.get("http://www.reddit.com/hot.json?limit=50") | |
j = r.json() | |
cols = ['title', 'author', 'over_18', 'url', 'permalink', 'created_utc', 'subreddit', 'num_comments', 'ups', 'downs', 'score'] |