Skip to content

Instantly share code, notes, and snippets.

Avatar

Neil Edwards neiled

View GitHub Profile
@neiled
neiled / hamlhtml5boilerplate.html.haml
Created Nov 25, 2010
My haml version of the html 5 boiler plate code
View hamlhtml5boilerplate.html.haml
!!! 5
/[if lt IE 7] <html lang="en" class="no-js ie6">
/[if IE 7 ] <html lang="en" class="no-js ie7">
/[if IE 8 ] <html lang="en" class="no-js ie8">
/[if IE 9 ] <html lang="en" class="no-js ie9">
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
%head
%meta{:charset => "utf-8"}/
/
Always force latest IE rendering engine (even in intranet) &amp; Chrome Frame
View gist:737305
abstract (1.0.0)
actionmailer (3.0.3)
actionpack (3.0.3)
activemodel (3.0.3)
activerecord (3.0.3)
activeresource (3.0.3)
activesupport (3.0.3)
arel (2.0.4)
bcrypt-ruby (2.1.2)
builder (3.0.0, 2.1.2)
@neiled
neiled / AUAT.txt
Created Jul 19, 2011
Automated User Acceptance Tests
View AUAT.txt
Contents:
Outside in development. BDD in .NET
Scenarios & Features
Automating acceptance testing -> BDD
-->Using MSTest
-->Using MSpec/SpecFlow
=========================================
@neiled
neiled / GivenSpecification.cs
Created Aug 2, 2011
GivenSpecification for Automated Acceptance Testing
View GivenSpecification.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace IntegrationTestUtils
{
public abstract class GivenSpecification
{
public TestContext TestContext { get; set; }
/// <summary>
/// Steps that are run before each test.
View gist:1467580
Build 9 for DivaRemotingServer 1.0 (12.12.2011 14:05:00)
Action Group 5: Integration Tests
Action 1: Run MSTest tests on ~\_extracted\IntegrationTests\DivaRemoting.Tests.Integration.dll
Initializing Action...
Source and Target directory same; splitting.
RemoteAction Initialization Complete:
Temp Directory: C:\BuildMaster\_AGTTMP\_A7\_S0\TMP
Source Directory: C:\BuildMaster\_AGTTMP\_A7\_S0\SRC
Target Directory: C:\BuildMaster\_AGTTMP\_A7\_S0\WRK
Server: Build Server (Id: 8)
View req.json
{ socket:
{ _handle:
{ writeQueueSize: 0,
socket: [Circular],
onread: [Function: onread] },
_pendingWriteReqs: 0,
_flags: 0,
_connectQueueSize: 0,
destroyed: false,
errorEmitted: false,
View gist:3086494
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
View eve_skill_tree.xml
<?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.
View eve_certificates.xml
<?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 Feb 4, 2013
gallante prospector queue
View gist:4709176
Spaceship Command: 1
Mechanics: 1
Engineering: 1
Science: 1
Electronics: 1
Navigation: 1
Mining: 1
Drones: 1
Industry: 1
Gallente Frigate: 1