Skip to content

Instantly share code, notes, and snippets.

View dan0nchik's full-sized avatar
🎧
Always focused

Daniel Khromov dan0nchik

🎧
Always focused
  • Student at HSE University
  • Moscow, Russia
  • 06:28 (UTC +03:00)
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
namespace Многоугольники
{
public partial class Form1 : Form
#include <iostream>
#include <vector>
using namespace std;
int main()
{
std::vector<int> v;
for(int i =1390; i<12567;++i ){
if((i%3==0 or i%5==0) and i%7!=0 and i%11!=0 and i%13!=0 and i%23!=0) v.push_back(i);
}
int max = 1389;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@dan0nchik
dan0nchik / cs
Created June 30, 2020 09:34
Get request in ASP.NET core
WebRequest request = WebRequest.Create("https://api.thecatapi.com/v1/categories");
using (var s = request.GetResponse().GetResponseStream())
{
using (var sr = new StreamReader(s))
{
var asJSON = sr.ReadToEnd();
res = JsonConvert.DeserializeObject<List<CategoriesModel>>(asJSON);
}
}