- Exercise often
- Eat Healthy & Stay hydrated
- Stand up at least every hour
- Get plently of sleep
- Take care of your eyes
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
<div class="wrapper"> | |
<!-- Navigation --> | |
<nav class="main-nav"> | |
<ul> | |
<li> | |
<a href="#">Home</a> | |
</li> | |
<li> | |
<a href="#">About</a> | |
</li> |
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
/* | |
html5doctor.com Reset Stylesheet | |
v1.6.1 | |
Last Updated: 2010-09-17 | |
Author: Richard Clark - http://richclarkdesign.com | |
Twitter: @rich_clark | |
*/ | |
html, body, div, span, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, |
Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.
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 virtual async Task<IEnumerable<TEntity>> GetByFieldAsync(string field, string value) | |
{ | |
var filter = Builders<TEntity>.Filter.Eq(field, value); | |
var result = await Collection.Find(filter).ToListAsync(); | |
return result; | |
} | |
public virtual async Task<TEntity> GetByIdAsync(ObjectId id) | |
{ |
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 UnitOfWork | |
{ | |
private readonly MongoDataContext _dataContext; | |
public UserRepository Users { get; private set; } | |
public UnitOfWork(MongoDataContext dataContext) | |
{ | |
_dataContext = dataContext; |
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 UserRepository : MongoRepository<User> | |
{ | |
private readonly MongoDataContext _dataContext; | |
protected override IMongoCollection<User> Collection => _dataContext.Database.GetCollection<User>("users"); | |
public UserRepository(MongoDataContext dataContext) | |
: base(dataContext) | |
{ | |
_dataContext = dataContext; | |
} |
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 abstract class MongoRepository<TEntity> : IRepository<TEntity> | |
where TEntity : EntityBase | |
{ | |
protected abstract IMongoCollection<TEntity> Collection { get; } | |
public MongoRepository(MongoDataContext dataContext) | |
{ | |
} | |
public virtual async Task AddNewAsync(TEntity entity) |