Skip to content

Instantly share code, notes, and snippets.

View sampletext32's full-sized avatar
😉

Bird Egop sampletext32

😉
View GitHub Profile
if __name__ == "__main__":
m = int(input())
list = []
for i in range(m):
list.append(int(input()))
sum = list[0]
for i in range(1, m):
sum += list[i]
def my_max2(a, b):
if a > b:
return a
else:
return b
if __name__ == "__main__":
m = int(input())
y = []
if __name__ == "__main__":
a = []
n = int(input())
for i in range(n):
element = int(input())
a.append(element)
index = 0
maxElement = a[0]
for i in range(n):
if a[i] > maxElement:
_logger.LogDebug(
$"ContentType: {httpContext.Request.ContentType}\n" +
$"ContentLength: {httpContext.Request.ContentLength}\n" +
$"Query: {string.Join(", ", from q in httpContext.Request.Query select $"{q.Key} = {string.Join(",", q.Value)};")}\n" +
$"Cookies: {string.Join(", ", from c in httpContext.Request.Cookies select $"{c.Key} = {c.Value};")}\n" +
$"HasFormContentType: {httpContext.Request.HasFormContentType}\n" +
$"Headers: {string.Join(", ", from h in httpContext.Request.Headers select $"{h.Key} = {string.Join(",", h.Value)};")}\n" +
$"Host: {httpContext.Request.Host.Value}\n" +
$"IsHttps: {httpContext.Request.IsHttps}\n" +
$"Method: {httpContext.Request.Method}\n" +
{
"Items": [
{
"ItemData": {
"Name": "Томат",
"Amount": 84,
"Cost": 976
},
"UserData": {
"Nickname": "Sample",
@sampletext32
sampletext32 / example1.cs
Created November 27, 2020 17:50
Interesting behaviour of a disposable struct
using System;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Disposable d = new Disposable();