Skip to content

Instantly share code, notes, and snippets.

View neiled's full-sized avatar

Neil Edwards neiled

View GitHub Profile
@neiled
neiled / gist:4709798
Last active December 12, 2015 03:48
cartographer
Spaceship Commandx1: 1
Electronicsx1: 1
Engineeringx1: 1
Sciencex1: 1
Mechanicsx1: 1
Surveyx1: 1
Spaceship Commandx1: 2
Electronicsx1: 2
Engineeringx1: 2
Sciencex1: 2
@neiled
neiled / elite_core_competency.txt
Created February 11, 2013 15:13
Elite Core Competency Plan
Engineering x 1 : 1
Science x 1 : 1
Gunnery x 1 : 1
Electronics x 1 : 1
Navigation x 1 : 1
Spaceship Command x 1 : 1
Mechanics x 1 : 1
Energy Systems Operation x 1 : 1
Signature Analysis x 1 : 1
Targeting x 1 : 1
@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:

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

=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
@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
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;

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:

@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:

@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