Skip to content

Instantly share code, notes, and snippets.

import calplot
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
all_days = pd.date_range('1/1/2019', periods=730, freq='D')
days = np.random.choice(all_days, 500)
events = pd.Series(np.random.randn(len(days)), index=days)
plot = calplot.calplot(events)
import calplot
import numpy as np
import pandas as pd
all_days = pd.date_range('1/1/2019', periods=730, freq='D')
days = np.random.choice(all_days, 500)
events = pd.Series(np.random.randn(len(days)), index=days)
plot = calplot.calplot(events)
print(type(plot[0])) # reveals <class 'matplotlib.figure.Figure'>
import fire
import random
class ProcessClass(object):
def __init__(self):
self.pizza = ''
def orderUp(self, HowMuchPizza, TipAmount):
'''
import fire
import random
class ProcessClass(object):
def __init__(self):
self.pizza = ''
def orderUp(self, HowMuchPizza, TipAmount):
'''
@Sn3akyP3t3
Sn3akyP3t3 / AuthenticationConfigModel.cs
Created July 8, 2020 15:52
Files For [Bug] AcquireTokenForClient Causes Application To Terminate With Code 0 Without Any Explanation
using System.Security.Cryptography.X509Certificates;
namespace TestingGetEwsToken
{
/// <summary> An incomplete data Model for authentication modded for testing acquisition of a token. </summary>
public class AuthenticationConfigModel
{
/// <summary> (Required) Also known as the Application ID in Microsoft Azure.
/// Gets or sets the identifier of the client. </summary>
/// <value> The identifier of the client. </value>