This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Linq.Expressions; | |
| namespace Microsoft.EntityFrameworkCore | |
| { | |
| public static class IQueryableExtensions | |
| { | |
| public static IQueryable<TQuery> In<TKey, TQuery>( | |
| this IQueryable<TQuery> queryable, | |
| IEnumerable<TKey> values, | |
| Expression<Func<TQuery, TKey>> keySelector) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Add authored MRs | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2024-10-09 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match http://gitlab.x-code.loc/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=x-code.loc | |
| // @grant unsafeWindow | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM mcr.microsoft.com/mssql/server:2022-latest | |
| USER root | |
| RUN apt-get update && \ | |
| apt-get install -y software-properties-common && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN apt-get update && apt-get install -y curl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name GitLab Related Issue Labels | |
| // @match http://gitlab.x-code.loc/*/issues/* | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.3 | |
| // @description Showing labels for related issues | |
| // @author Simon Pamies | |
| // @author Dimitar Pavlov | |
| // @grant none | |
| // @require http://code.jquery.com/jquery-1.12.4.min.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Watch": { | |
| "commandName": "Executable", | |
| "executablePath": "dotnet", | |
| "workingDirectory": "$(ProjectDir)", | |
| "hotReloadEnabled": true, | |
| "hotReloadProfile" : "aspnetcore", | |
| "commandLineArgs": "watch run", | |
| "launchBrowser": true, | |
| "environmentVariables": { | |
| "ASPNETCORE_ENVIRONMENT": "Development", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // add references WindowsBase, UIAutomationClient, UIAutomationTypes | |
| // using System.Windows.Automation; | |
| // using System.Windows; | |
| [DllImport("user32.dll", CharSet = CharSet.Auto)] static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam); | |
| public void RightClick(AutomationElement element) | |
| { | |
| const int WM_LBUTTONDOWN = 0x0201; | |
| const int WM_LBUTTONUP = 0x0202; | |
| Point point = element.GetClickablePoint(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
| Enable-RemoteDesktop | |
| choco install git | |
| choco install notepadplusplus | |
| choco install 7zip | |
| choco install scriptcs | |
| choco install dotnet4.6 | |
| choco install visualstudio2015community |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function ($) { | |
| $.fn.ellipsis = function () { | |
| return this.each(function () { | |
| var el = $(this); | |
| if (!el.hasClass('running-ellipsis')) { | |
| var text = el.html(); | |
| var divToMark = text.substr(text.indexOf('<div')); //div z trójkątem przy rozwijaniu/zwijaniu pozycji w lewym menu | |
| if (divToMark.length > 1) { | |
| text = text.substr(0, text.indexOf('<div')); //usunięcie tego trójąta ze sprawdzango tekstu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $dom = new DOMDocument; | |
| $dom->load('studenci.xml'); | |
| if($dom->relaxNGValidate('xml.rng')) | |
| { | |
| echo "udało się \n"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <studenci> | |
| <student prywatny="tak"> | |
| <imie /> | |
| <nazwisko /> | |
| </student> | |
| </studenci> |
NewerOlder