Skip to content

Instantly share code, notes, and snippets.

View stevenh77's full-sized avatar

Steven Hollidge stevenh77

View GitHub Profile
<!DOCTYPE html>
<head>
<link href="bootstrap.min.css" rel="stylesheet">
<!-- Add IntroJs styles -->
<link href="bootstrap-responsive.min.css" rel="stylesheet">
<link href="introjs.css" rel="stylesheet">
<!-- end IntroJs styles -->
</head>
<body>
<!DOCTYPE html>
<head>
<link href="bootstrap.min.css" rel="stylesheet">
<!-- Add IntroJs styles -->
<link href="bootstrap-responsive.min.css" rel="stylesheet">
<link href="introjs.css" rel="stylesheet">
<!-- end IntroJs styles -->
</head>
<body>
// http://stackoverflow.com/questions/14773269/injecting-a-mock-into-an-angularjs-service
angular.module('myModule')
.factory('myService', function (myDependency) {
return {
useDependency: function () {
return myDependency.getSomething();
}
};
});
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Markers for column type series - HighCharts example</title>
<script type='text/javascript' src='./js/jquery-1.9.1.js'></script>
function getContrastYIQ(hexcolor){
var r = parseInt(hexcolor.substr(0,2),16);
var g = parseInt(hexcolor.substr(2,2),16);
var b = parseInt(hexcolor.substr(4,2),16);
var yiq = ((r*299)+(g*587)+(b*114))/1000;
return (yiq >= 128) ? 'black' : 'white';
}
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
-webkit-box-sizing: border-box;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using CarRental.Business.Bootstrapper;
using CarRental.Business.Entities;
using CarRental.Data.Contracts;
using Core.Common.Contracts;
using Core.Common.Core;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
public interface IIdentifiableEntity
{
int EntityId { get; set; }
}
public interface IDataRepository
{
}
public interface IDataRepository<T> : IDataRepository
where T : class, IIdentifiableEntity, new()
{
T Add(T entity);