Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlbinoGeek
AlbinoGeek / bitwise.cs
Last active October 18, 2016 16:04
People keep asking me how to use an `enum` or `FlagsAttribute` or bitwise, so here goes:
[Flags]
public enum attackType
{
// Enums should have a 0 value
None = 0,
Melee = 1 << 0,
Ranged = 1 << 1,
Thrown = 1 << 2
}
@AlbinoGeek
AlbinoGeek / DebugPlugin.cs
Last active October 6, 2016 14:55
Sample Plugin for AsunaBot
namespace DebugPlugin
{
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
// Make sure to add AsunaBot.SDK via NuGet
using AsunaBot.SDK;
using AsunaBot.SDK.Attributes;
<html>
<head>
<title>[url]http://50.31.76.12/[/url]</title>
</head>
<body>
</body>
</html>
10 - {overlord}
10 - {drone}
16 - {hatch}
16 - {extractor}
17 - {pool}
17 - {overlord}
19 - {queen} {queen}
28 - {warren}
28 - {overlord} {overlord} {overlord}
#!/usr/bin/env node
// Starts a small HTTP server on all IP addresses, port 8000
// Server will resolve all /example.com style requests with jwhois.
(function() {
var Router, HashTable;
try {
Router = require('node-simple-router');
} catch (e) {

Keybase proof

I hereby claim:

  • I am AlbinoGeek on github.
  • I am gh (https://keybase.io/gh) on keybase.
  • I have a public key whose fingerprint is 218B AD81 42ED 785D 4255 8917 E337 D331 2197 6529

To claim this, I am signing this object: