- Cleaned up old branches
- Closed old and resolved issues (25+ issues closed)
- Labeled/Categorized issues
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
import { env } from "process"; | |
import * as Parser from "rss-parser"; | |
import slufigy from "slugify"; | |
import * as Contentful from "contentful-management"; | |
import { htmlToText } from "html-to-text"; | |
const client = Contentful.createClient({ | |
accessToken: env.ACCESS_TOKEN, | |
}); |
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
{ | |
"JobStatus": "SUCCEEDED", | |
"VideoMetadata": { | |
"Codec": "h264", | |
"DurationMillis": 14900, | |
"Format": "QuickTime / MOV", | |
"FrameRate": 30, | |
"FrameHeight": 576, | |
"FrameWidth": 320 | |
}, |
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 interface IRepository<T> where T : class | |
{ | |
/// <summary> | |
/// Gets all objects from database | |
/// </summary> | |
IQueryable<T> All(); | |
/// <summary> | |
/// Gets objects from database by filter. | |
/// </summary> |
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 HttpResponseMessage GetText() | |
{ | |
try | |
{ | |
string content = "Hello"; | |
HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK); | |
result.Content = new StringContent(content); | |
//a text file is actually an octet-stream (pdf, etc) | |
result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream"); |
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
/// <summary> | |
/// Interface for the unit of work pattern, inherits from IDisposable to dispose of the DbContext | |
/// </summary> | |
public interface IUnitOfWork: IDisposable | |
{ | |
/// <summary> | |
/// Saves the changes of the DbContext wrapped by the UoW | |
/// </summary> | |
/// <returns></returns> | |
int SaveChanges(); |
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 EntityRepository<T> : IRepository<T> | |
where T : class | |
{ | |
protected DbContext Context = null; | |
public EntityRepository(DbContext context) | |
{ | |
if (context == null) throw new ArgumentNullException("context"); | |
Context = context; |
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 interface IRepository<T> where T : class | |
{ | |
/// <summary> | |
/// Gets all objects from database | |
/// </summary> | |
IQueryable<T> All(params string[] includes); | |
/// <summary> | |
/// Gets objects from database by filter. | |
/// </summary> |
NewerOlder