Skip to content

Instantly share code, notes, and snippets.

seebs seebs

Block or report user

Report or block seebs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@seebs
seebs / bbcode
Created Oct 16, 2019
the forum-code source for my old "how to suck at city of heroes" post
View bbcode
[b][size=4]How to Suck at City of Heroes (and Villains)[/size][/b]
In most MMOs, experienced players know that there is no such thing as a bad group; there are only good groups, and funny groups. City of Heroes is afflicted with a player base many of whom are basically intelligent and friendly, meaning a lot fewer funny groups, which in turn denys us a lot of opportunities to rant on the forums. You can help. By learning to really suck at CoH, both game mechanically and socially, you can keep SG channels and global channels hopping with funny stories, giving other players the chance to bond as they commiserate.
This guide gives you an overview to key ways in which you can completely fail at many aspects of City of Heroes. I try to cover build advice, character design, interaction with other players, and more.
This guide is necessarily a work in progress, and I am deeply indebted to various pick-up groups for their contributions, feedback, and ongoing support.
[b][size=4]Section 1: Philosophy[/size][/b]
@seebs
seebs / c2.sh
Created May 30, 2019
A C interpreter as a shell script. Note, this is every bit as stupid as it sounds. The summer of 1995 was not a great time for good engineering decisions for me.
View c2.sh
#!/bin/sh
# C interpreter in sh. Wow.
# Logic: we parse files, or arguments, or stdin.
# We see if we have exactly one argument that looks like a file. If so,
# we parse it. Otherwise, we look for arguments. Otherwise, we work on
# stdin.
ANSI="Y"
VERBOSE="N"
INCLUDES="stdio.h stdlib.h ctype.h"
@seebs
seebs / ttt.c
Created May 30, 2019
I apparently wrote this in 1996. I do not know how it works or why it works that way. I'm so sorry.
View ttt.c
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* tic tac toe. we must draw reliably. */
enum players { x, o };
int turn = x;
@seebs
seebs / gist:58a7d32549dcd136dad09cb52fe277ad
Created Dec 6, 2018
someone asked me for help with their c homework once
View gist:58a7d32549dcd136dad09cb52fe277ad
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include <stddef.h>
#include <math.h>
struct {
double lo, close;
@seebs
seebs / go2_generic_feedback.md
Created Aug 29, 2018
contract design feedback for go2 generics
View go2_generic_feedback.md

One question occurs me with regards to this example:

contract mappable(k K, _ V) { k == k }

Why not

contract mappable[_ K, _ V] { var _ map[K]V }

This would, I think, make the intent much clearer.

View log.go
package main
import (
"bytes"
"fmt"
"sync"
"time"
"github.com/daviddengcn/go-colortext"
)
View ergodox.c.patch
- // read from teensy
- return
- (PINF&(1<<0) ? 0 : (1<<0)) |
- (PINF&(1<<1) ? 0 : (1<<1)) |
- (PINF&(1<<4) ? 0 : (1<<2)) |
- (PINF&(1<<5) ? 0 : (1<<3)) |
- (PINF&(1<<6) ? 0 : (1<<4)) |
- (PINF&(1<<7) ? 0 : (1<<5)) ;
+ /* read from teensy
+ * bitmask is 0b11110011, but we want those all
View main.go
package main
import (
"flag"
"fmt"
"math/big"
"time"
)
/* there are four interesting values:
View log.c
/* someone posted to comp.lang.c asking for homework help. i felt the need to contribute.
* -seebs
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include <stddef.h>
#include <math.h>
View gist:0991b70eefb02abfaa2b2cf5f4c91e58
0227_UATraps.pdf
02_UA_Underdark_Characters.pdf
04_UA_Classics_Revisited.pdf
1_UA_Artificer_20170109.pdf
2016_Fighter_UA_1205_1.pdf
2017_01_UA_RangerRogue_0117JCMM.pdf
20170213_Wizrd_Wrlck_UAv2_i48nf.pdf
2017_UAMassCombat_MCUA_v1.pdf
26_UASorcererUA020617s.pdf
M_2016_UAMonk1_12_12WKWT.pdf
You can’t perform that action at this time.