Skip to content

Instantly share code, notes, and snippets.

View markwalsh-liverpool's full-sized avatar
🎯
Focusing

Mark Walsh markwalsh-liverpool

🎯
Focusing
View GitHub Profile
using Microsoft.Extensions.DependencyInjection;
namespace CtorDoesntThrow
{
internal class CtorDoesntThrow
{
static void Main(string[] args)
{
var services = new ServiceCollection();
services.AddScoped<IParent, Parent>();
http://bfst.to/play/soccer.php
My advice is to simply walk around in the city centre and get yourself "lost" - go to Ribeira and enjoy the amazing view while drinking a nice beer and eating some tremoços (lupin beans) - careful with the prices, normally that area is very touristy and the prices are substantially higher.
If you are a Port wine lover, you should definitely make a visit to the Porto wine cellars. If you want to do tasting only - Kopke is a nice option.
On the other hand, if you have some time and want to make a visit and understand all the process and history of Port wine you can go to Sandeman or Taylor's.
Places to visit:
- São Bento train station -considered one of the most beautiful train stations in the world, mainly due to the 20,000 painted tiles, also known as "azulejos". Azulejo tiles are a classic part of Porto's contribution to art and can be seen throughout the city. You will also find them all over Portugal.
- Rua Santa Catarina - the shopping street of Porto - there you will find an elegant and very know
@markwalsh-liverpool
markwalsh-liverpool / LivingLens Javascript SSO.js
Created February 5, 2018 16:24
LivingLens Javascript SSO.js
const cryptoJS = require('crypto-js');
const moment = require('moment-timezone');
module.exports = {
createEncodedOptsString(emailAddress, encryptionKey, iv, dateTime) {
let timestamp = null;
if (!dateTime) {
moment.locale('en-GB');
timestamp = moment().tz('Europe/London').format('DD/MM/YYYY HH:mm:ss');
} else {
@markwalsh-liverpool
markwalsh-liverpool / 0_reuse_code.js
Created August 1, 2016 16:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
[RoutePrefix("login")]
public class LoginController : ApiController
{
private readonly ITokenProvider _tokenProvider;
private readonly IUserRepository _userRepository;
public LoginController(ITokenProvider tokenProvider, IUserRepository userRepository)
{
_tokenProvider = tokenProvider;
_userRepository = userRepository;