Skip to content

Instantly share code, notes, and snippets.

View gandarez's full-sized avatar
🏄‍♂️
Surfing

Carlos Henrique Guardão Gandarez gandarez

🏄‍♂️
Surfing
View GitHub Profile
@gandarez
gandarez / test_mime.py
Created January 21, 2021 00:10
Test analyse_text for MIMELexer
import os
import pytest
from pygments.lexers.mime import MIMELexer
@pytest.fixture(scope="module")
def lexer():
yield MIMELexer()
def _example_file_path(filename):
@gandarez
gandarez / BinaryTreeFindLongestZigZag.cs
Created March 9, 2017 01:10
Find the longest zigzag from a binary tree
class Tree
{
public int x;
public Tree l;
public Tree r;
};
class Task3
{
public int solution(Tree T)
@gandarez
gandarez / CreateIssueWithAttachmentJiraUsingRestsharp.cs
Last active February 1, 2017 17:12
Example of creating an issue with attachment on Jira using Restsharp
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using Jira
using RestSharp;
using RestSharp.Authenticators;
namespace Jira
{
@gandarez
gandarez / CreateIssueJiraUsingRestsharp.cs
Created August 25, 2016 13:29
Example of creating an issue on Jira using Restsharp
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using Jira
using RestSharp;
using RestSharp.Authenticators;
namespace Jira
{
@gandarez
gandarez / ExamplePage.cshtml
Created July 12, 2016 13:55
Example of custom Hangfire page
@*
Generator: Template
TypeVisibility: Public
GeneratePrettyNames: true
Namespace: Hangfire.Dashboard.Pages
*@
@using System.Xml
@using Fator.Hangfire.Custom.Storage
@using Hangfire.Dashboard
@using Hangfire.Dashboard.Pages
@gandarez
gandarez / Program.cs
Created June 24, 2016 13:37
Callback from Async Task
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace TaskWithCallback
{
class Program
{
private static readonly object Obj = new object();