This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"type":"Topology","objects":{"map-england":{"type":"GeometryCollection","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:OGC:1.3:CRS84"}},"geometries":[{"type":"Polygon","properties":{"Name":"Bedfordshire","Description":""},"arcs":[[0,1,2,3]]},{"type":"Polygon","properties":{"Name":"Berkshire","Description":""},"arcs":[[4,5,6,7,8,9]]},{"type":"MultiPolygon","properties":{"Name":"Bristol","Description":""},"arcs":[[[10,11,12]],[[13]]]},{"type":"Polygon","properties":{"Name":"Buckinghamshire","Description":""},"arcs":[[14,15,-1,16,17,-7]]},{"type":"Polygon","properties":{"Name":"Cambridgeshire","Description":""},"arcs":[[18,19,-3,20,21,22,23]]},{"type":"MultiPolygon","properties":{"Name":"Cheshire","Description":""},"arcs":[[[24,25,26,27,28,29]],[[30]]]},{"type":"Polygon","properties":{"Name":"City of London","Description":""},"arcs":[[31]]},{"type":"MultiPolygon","properties":{"Name":"Cornwall","Description":""},"arcs":[[[32,33]],[[34]],[[35]],[[36]],[[37]],[[38]],[[39]],[[40]],[[41]],[[42]],[[43]], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using Windows.Media; | |
using Windows.Media.Capture; | |
using Windows.Media.MediaProperties; | |
using Windows.Storage; | |
using Windows.UI; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// set the dimensions and margins of the graph | |
var margin = { top: 20, right: 20, bottom: 50, left: 70 }; | |
var width = 960 - margin.left - margin.right; | |
var height = 500 - margin.top - margin.bottom; | |
// set the ranges | |
var x = d3.scaleOrdinal().range([0, width]); | |
var y = d3.scaleLinear().range([height, 0]); | |
// define the line | |
var valueline = d3.line() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 1, | |
"name": "Muddy Waters", | |
"image": "/img/muddy-waters.jpg", | |
"friendlyUrl": "muddy-waters", | |
"lyrics": [ | |
{ | |
"title": "Hoochie Coochie Man", | |
"urlFriendlyTitle": "hoochie-coochie-man", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DummyController : Controller | |
{ | |
private BbContext _context; | |
public DummyController(BbContext context) | |
{ | |
_context = context; | |
} | |
[HttpGet("api/testdatabase")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PermissionsService : IPermissionsService | |
{ | |
private string _userId; | |
private bool _isAdministrator; | |
private HttpContext _httpContext; | |
private readonly UserManager<BbUser> _userManager; | |
public PermissionsService(UserManager<BbUser> userManager) | |
{ | |
_userManager = userManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-04-30 18:39:12 139761014732928 [ERROR] mysqld: Can't lock aria control file '/var/lib/mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds | |
2018-04-30 18:39:43 139761014732928 [ERROR] mysqld: Got error 'Could not get an exclusive lock; file is probably in use by another process' when trying to use aria control file '/var/lib/mysql/aria_log_control' | |
2018-04-30 18:39:43 139761014732928 [ERROR] Plugin 'Aria' init function returned error. | |
2018-04-30 18:39:43 139761014732928 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed. | |
2018-04-30 18:39:43 139761014732928 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins | |
2018-04-30 18:39:43 139761014732928 [Note] InnoDB: Uses event mutexes | |
2018-04-30 18:39:43 139761014732928 [Note] InnoDB: Compressed tables use zlib 1.2.7 | |
2018-04-30 18:39:43 139761014732928 [Note] InnoDB: Using Linux native AIO | |
2018-04-30 18:39:43 139761014732928 [Note] InnoDB: Number of pools: 1 | |
2018-04-30 18:39:43 139761014732928 [Note] InnoDB: Using SSE2 |