Skip to content

Instantly share code, notes, and snippets.

View neiled's full-sized avatar

Neil Edwards neiled

View GitHub Profile
class User
include Mongoid::Document
belongs_to :office
devise :invitable, :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
attr_accessible :name, :email, :password, :password_confirmation, :remember_me
@neiled
neiled / eve_skill_tree.xml
Created February 1, 2013 12:54
Eve Skill Tree
<?xml version='1.0' encoding='UTF-8'?>
<eveapi version="2">
<currentTime>2013-02-01 12:53:50</currentTime>
<result>
<rowset name="skillGroups" key="groupID" columns="groupName,groupID">
<row groupName="Planet Management" groupID="1044">
<rowset name="skills" key="typeID" columns="typeName,groupID,typeID,published">
<row typeName="Advanced Planetology" groupID="1044" typeID="2403" published="1">
<description>The advanced understanding of planet evolution allowing you to interpret data from scans of planets for resources at much higher resolutions.
@neiled
neiled / eve_certificates.xml
Created February 3, 2013 20:23
eve certificate tree
<?xml version='1.0' encoding='UTF-8'?>
<eveapi version="2">
<currentTime>2013-02-03 20:22:20</currentTime>
<result>
<rowset name="categories" key="categoryID" columns="categoryID,categoryName">
<row categoryID="3" categoryName="Core">
<rowset name="classes" key="classID" columns="classID,className">
<row classID="2" className="Core Fitting">
<rowset name="certificates" key="certificateID" columns="certificateID,grade,corporationID,description">
<row certificateID="5" grade="1" corporationID="1000125" description="This certificate represents a basic level of competence in fitting ships. It certifies that the holder is able to use baseline modules which improve power and CPU capabilities such as Co-Processors, Power Diagnostic Systems and Reactor Control Units. This is the first step towards broadening your fitting options.">
@neiled
neiled / gist:4709176
Created February 4, 2013 19:57
gallante prospector queue
Spaceship Command: 1
Mechanics: 1
Engineering: 1
Science: 1
Electronics: 1
Navigation: 1
Mining: 1
Drones: 1
Industry: 1
Gallente Frigate: 1
@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
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