Skip to content

Instantly share code, notes, and snippets.

View neiled's full-sized avatar

Neil Edwards neiled

View GitHub Profile

Keybase proof

I hereby claim:

  • I am neiled on github.
  • I am neiled (https://keybase.io/neiled) on keybase.
  • I have a public key whose fingerprint is 76DC EFCC 14D6 B698 EE5E FCAF E84A F9DA 17E2 9D5D

To claim this, I am signing this object:

renderer.AddGradientPoint (-1.0000, utils::Color ( 0, 0, 128, 255)); // deeps
renderer.AddGradientPoint (-0.2500, utils::Color ( 0, 0, 255, 255)); // shallow
renderer.AddGradientPoint ( 0.0000, utils::Color ( 0, 128, 255, 255)); // shore
renderer.AddGradientPoint ( 0.0625, utils::Color (240, 240, 64, 255)); // sand
renderer.AddGradientPoint ( 0.1250, utils::Color ( 32, 160, 0, 255)); // grass
renderer.AddGradientPoint ( 0.3750, utils::Color (224, 224, 0, 255)); // dirt
renderer.AddGradientPoint ( 0.7500, utils::Color (128, 128, 128, 255)); // rock
renderer.AddGradientPoint ( 1.0000, utils::Color (255, 255, 255, 255)); // snow
@neiled
neiled / gist:a46f9d89fecdeeacc619
Created May 11, 2015 18:53
Verifying I am +neiled on my passcard. https://onename.com/neiled
Verifying I am +neiled on my passcard. https://onename.com/neiled
@neiled
neiled / keybase.md
Created April 30, 2014 16:25
keybase.md

Keybase proof

I hereby claim:

  • I am neiled on github.
  • I am neiled (https://keybase.io/neiled) on keybase.
  • I have a public key whose fingerprint is B733 DCCB 65F0 0747 5F25 99CE B406 ABAE F9F3 8E18

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am neiled on github.
  • I am neiled (https://keybase.io/neiled) on keybase.
  • I have a public key whose fingerprint is 6A8E 50E5 EC89 2C66 18B1 FD19 8663 92CE 7C80 AAB5

To claim this, I am signing this object:

public void AddDoors(Level level)
{
for (int y = RoomStart.Y - 1; y <= RoomStart.Y + Height; y++)
{
for (int x = RoomStart.X-1; x <= RoomStart.X + Width; x ++)
{
if (y != RoomStart.Y - 1 && y != RoomStart.Y + Height && x != RoomStart.X - 1 && x != RoomStart.X + Width)
continue;
if (y < 0) continue;
@neiled
neiled / min_spanning_tree
Created February 7, 2014 16:23
min spanning tree
private void connectRooms(List<Room> rooms)
{
/*
Input: A non-empty connected weighted graph with vertices V and edges E (the weights can be negative).
Initialize: Vnew = {x}, where x is an arbitrary node (starting point) from V, Enew = {}
Repeat until Vnew = V:
Choose an edge {u, v} with minimal weight such that u is in Vnew and v is not
* (if there are multiple edges with the same weight, any of them may be picked)
Add v to Vnew, and {u, v} to Enew
Output: Vnew and Enew describe a minimal spanning tree

=What to have on an admin dashboard=

==Users== List all of the users in the system Ability to:

  • Group/filter by company
  • Reset a user's password
  • See their billing status (Last billed time, amount, status)
  • Refund them money
  • Invite a new user to a company
Done
1 Albino Troll
1 Birds of Paradise
1 Blastoderm
1 Call of the Herd
1 Constant Mists
1 Crop Rotation
1 Elvish Scrapper
1 Eternal Witness
1 Fyndhorn Elves
@neiled
neiled / pr.md
Created March 25, 2013 12:31 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: