Skip to content

Instantly share code, notes, and snippets.

View PashaPash's full-sized avatar
🏠
Working from home

Pavel Pachobut PashaPash

🏠
Working from home
View GitHub Profile
@PashaPash
PashaPash / AutoMapper.cs
Created December 25, 2024 01:22 — forked from lbargaoanu/AutoMapper.cs
Sample AM
using AutoMapper;
interface IDestination
{
int SomeProp { get; }
}
class Destination : IDestination
{
public int SomeProp { get; set; }
Вот пример C++ кода, который выглядит очень странно. Почему-то, когда данные отсортированы код выполняется почти в шесть раз быстрее.
<!-- language: lang-cpp -->
#include <algorithm>
#include <ctime>
#include <iostream>
int main()
{
private void btnSave_Click(object sender, EventArgs e)
{
string connStr = @"Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\LitMapPoltavaData.mdf;Integrated Security=True";
SqlConnection conn = new SqlConnection(connStr);
try
{
//пробуем подключится
conn.Open();
@PashaPash
PashaPash / sample.go
Last active August 29, 2015 14:25
sample
package main
import "fmt"
func main() {
fmt.Println("Привет")
}