Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Oscar Fraxedas fraxedas

🏠
Working from home
View GitHub Profile
@fraxedas
fraxedas / ClassGenerator.sql
Created Jan 24, 2019 — forked from ernado-x/ClassGenerator.sql
Generate C# class from database table
View ClassGenerator.sql
--from SO: http://stackoverflow.com/questions/5873170/generate-class-from-database-table
declare @TableName sysname = 'TableName'
declare @Result varchar(max) = 'public class ' + @TableName + '
{'
select @Result = @Result + '
public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; }
'
from
@fraxedas
fraxedas / Ocr.cs
Last active Nov 27, 2018
OCR with Azure Computer Vision
View Ocr.cs
public static async Task<string> GetTextAsync(Stream image)
{
try
{
using (var client = new ComputerVisionClient(
new ApiKeyServiceClientCredentials(SubscriptionKey))
{Endpoint = UriBase}
)
{
var result =
View nunit console runner
"C:\Program Files (x86)\NUnit 2.6.3\bin\nunit-console.exe" /include:Firehose /result:console-test.xml /work:results C:\Users\fraxedas\Documents\GitHub\photo\src\photo.exif.unit.test\bin\Debug\photo.exif.unit.test.dll
You can’t perform that action at this time.