Skip to content

Instantly share code, notes, and snippets.

Artur Karbone ArturKarbone

Block or report user

Report or block ArturKarbone

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ArturKarbone
ArturKarbone / README.MD
Last active Aug 25, 2017
Warehouse API
View README.MD

Warehouse API

Warehouse API is a nice and sexy service for working with Naburszh Warehouse.

API

API is exposed through the following endpoint –

http://warehouse-api.azurewebsites.net/api

The endpoint is protected by the authentication token. The token must be provided via x-client-id header

View gist:e99bf04b95100cd69f915d3008bc30c7
public class Program
{
//Not Awaited
//public static void Main(string[] args) => AsyncMain(args);
//Awaited #1
//public static void Main(string[] args) => AsyncMain(args).GetAwaiter().GetResult();
//Awaited #2
public static void Main(string[] args) => AsyncMain(args).Wait();
@ArturKarbone
ArturKarbone / CI.functions.ps1
Last active Oct 3, 2016
Simple .NET Core CI pipeline
View CI.functions.ps1
function CleanUpArtifactsDirectory
{
if(Test-Path .\.artifacts) {
echo "build: Cleaning .\.artifacts"
Remove-Item .\.artifacts -Force -Recurse
}
}
function RestoreSolutionPackages
View ExperienceWihMongoUniversity1
class Program
{
public class Person
{
public ObjectId Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
}
public class MongoFirstConcept
View gist:93abb6b2960fb161eaea
public static class MigradocExtensions
{
public static void AddCheckbox(this Paragraph paragraph, bool value)
{
//paragraph.AddFormattedText("\u00fe", new Font("Wingdings"));
//paragraph.AddFormattedText("\u00fd", new Font("Wingdings"));
//paragraph.AddFormattedText("\u00fc", new Font("Wingdings"));
paragraph.AddFormattedText(value ? "\u00fe" : "\u00A8", new Font("Wingdings"));
@ArturKarbone
ArturKarbone / gist:feb15bde965b8247cefd
Last active Aug 29, 2015
F# expressive factorial
View gist:feb15bde965b8247cefd
let a func = func
let from value = value
let rec factorial n =
match n with
| 0 | 1 -> 1
| _ -> n * factorial(n-1)
a factorial (from 4)
You can’t perform that action at this time.