Skip to content

Instantly share code, notes, and snippets.

#include <pokemon.h>
int main(int argc, char **argv)
{
FILE *f;
PkmnState s;
int i;
// Replicate Gen 1
s->IgnoreAbilities(true);
#ifndef MODE_H
#define MODE_H
static struct cmode_ mode_list[] = {
{ 'i', CMODE_INVITE },
{ 'm', CMODE_MOD },
{ 'n', CMODE_NOEXT },
{ 'p', CMODE_PRIV },
{ 's', CMODE_SEC },
{ 't', CMODE_TOPIC },
{ 'r', CMODE_REGONLY},
/*
* Copyright (c) 2014 Alyx Wolcott <alyx -at- malkier.net>
* Rights to this code are as documented in doc/LICENSE.
*
* To use this module, add a lastfm_api value to the gameserv{}
* config block containing your Last.FM API key.
*/
#include "../api/http.h"
#include "../gameserv/gameserv_common.h"
/* Sigyn - A reasonably sane IRC bot.
* Copyright (c) 2011-2012 Alyx Wolcott <alyx@malkier.net>
* Released under the BSD license.
*/
#include "sigyn.h"
mowgli_heap_t *channel_heap;
mowgli_heap_t *chanuser_heap;
@alyx
alyx / factoid.c
Last active December 14, 2015 04:29
#include "sigyn.h"
/*#include "db.h"*/
#include "kclangc.h"
DECLARE_MODULE("contrib/factoid", MODULE_UNLOAD_CAPABILITY_OK, _modinit, _moddeinit,
"0.1", "Alyx <alyx@malkier.net>");
static void cmd_fact(const irc_event_t *event, int parc, char **parv);
static KCDB *factdb;
-module(collatz).
-export([find_len/2]).
find_len(Start, Len) when Start =:= 1 orelse Start =:= 0 ->
Len;
find_len(Start, Len) when Start rem 2 =:= 1 ->
find_len((Start * 3) + 1, Len + 1);
find_len(Start, Len) when Start rem 2 =:= 0 ->
From 62cc22747c26d8d94d1dcc5e8528dc39cc8da078 Mon Sep 17 00:00:00 2001
From: Alyx Wolcott <alyx@malkier.net>
Date: Sat, 16 Feb 2013 22:35:41 +0000
Subject: [PATCH] Changed the TYPE_ defines to an enum
---
ext/csyndi/logger.c | 2 +-
include/syndi/logger.h | 13 ++++++++-----
2 files changed, 9 insertions(+), 6 deletions(-)
#!/usr/bin/env python2.7
import web, os
from markdown import markdown
#####
# CONFIG:
#####
TITLE = "Stupid CMS Website"
BASE = "./docs"
#!/usr/bin/env python
import hyperclient, hashlib, random
Client = hyperclient.Client('192.157.253.11', 1982)
def add_words(String):
Words = []
for Word in String.split():
Words.append(Word)
if len(Words) == 3:
@alyx
alyx / amanda.erl
Created February 7, 2013 06:33
I'm sure this is fucko and broken as hell. Oh well.
-module(amanda).
-author("Alyx Wolcott <contact@alyxw.me>").
-include("amqp_client.hrl").
connect(Host, Port) ->
{ok, Queue} = start_amqp(),
{ok, Sock} = gen_tcp:connect(Host, Port, [{packet, line}]),
start_amqp() ->