Skip to content

Instantly share code, notes, and snippets.

Avatar

Jakub Gutkowski Gutek

View GitHub Profile
@Gutek
Gutek / C# Version Cheat Sheet.md
Last active Aug 6, 2020
Short cheat sheet of changes in C# language from version 6 to 9
View C# Version Cheat Sheet.md

CS 6

read-only auto properties

Small help with immutable types...

// private readonly int _age;
// public int Age { get { return _age; } }
public int Age { get; }
View deployment.yaml
apiVersion: v1
kind: Namespace
metadata:
name: samples
---
apiVersion: v1
kind: ConfigMap
metadata:
name: sample-api-cm
namespace: samples
@Gutek
Gutek / presentation.vssettings
Created May 9, 2017
Presentation settings for Visual Studio 2015
View presentation.vssettings
<?xml version="1.0" encoding="UTF-8"?>
<UserSettings>
<ApplicationIdentity version="14.0" />
<ToolsOptions>
<ToolsOptionsCategory name="Environment" RegisteredName="Environment" />
</ToolsOptions>
<Category name="Environment_Group" RegisteredName="Environment_Group">
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package">
<PropertyValue name="Version">2</PropertyValue>
<FontsAndColors Version="2.0">
View rider_info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
@Gutek
Gutek / SQL_EF_query_Page_1
Last active Mar 8, 2016
These two queries (generated by EF) returns same set of data (exactly). However if you change sorting from `AssessmentTypeName` to `ParameterName` paging works as expected. any ideas why?
View SQL_EF_query_Page_1
SELECT
[Project1].[AutomatedComplianceAssessmentId] AS [AutomatedComplianceAssessmentId],
[Project1].[AssessmentTypeCode] AS [AssessmentTypeCode],
[Project1].[AssessmentTypeName] AS [AssessmentTypeName],
[Project1].[EmissionPointId] AS [EmissionPointId],
[Project1].[EmissionPointCode] AS [EmissionPointCode],
[Project1].[ParameterMatrixName] AS [ParameterMatrixName],
[Project1].[ParameterId] AS [ParameterId],
[Project1].[ParameterName] AS [ParameterName]
FROM ( SELECT
@Gutek
Gutek / feed_finder.fs
Created Mar 1, 2016
Finds RSS feeds for bogs
View feed_finder.fs
open System.IO
open FSharp.Data
let readLines filePath = File.ReadAllLines(filePath);;
let downloadWebAsync (links:seq<string>) =
links
|> Seq.map HtmlDocument.AsyncLoad
let castToOption (linkElements:seq<HtmlNode>) =
@Gutek
Gutek / HowTo
Created Dec 12, 2013
Jak pobrać historię z konta walutowego - firmowego w mbank
View HowTo
1 Zaloguj sie
2 Zmien profil na firmowy
3 Kliknij na historie
4 Kliknij na zmien widok (gorny prawy rog pod menu)
5 Wybierz konto
6 Wybierz przedzial czasowy
7 przeszukaj
8 wejdz w szczegoly tranzakcji
9 Pobierz PDFa
@Gutek
Gutek / makeebooks
Created Aug 23, 2012
CQRS Journey Makeebooks
View makeebooks
#!/usr/bin/env ruby
# This script convers markdown book to one of the serveral e-book
# formats supported with calibre (http://calibre-ebook.com)
#
# Samples:
#
# Build e-book for amazon kindle
# $ make-ebook
# or
# $ FORMAT=mobi make-ebook
@Gutek
Gutek / bootstrap-alerts-ex-sample.htm
Created Mar 9, 2012
Twitter Bootstrap - add alert
View bootstrap-alerts-ex-sample.htm
<html>
<head>
<!-- bootstrap styles -->
</head>
<body>
<div class="alerts">
</div>
<button id="add">
Add Alert</button>
<!-- jquery js files and bootstrap files -->
You can’t perform that action at this time.