Skip to content

Instantly share code, notes, and snippets.

View vgebrev's full-sized avatar

Veli Gebrev vgebrev

View GitHub Profile
@vgebrev
vgebrev / jira-task-list-since-last-git-tag.ps1
Created June 11, 2020 12:45
PowerShell script that lists all distinct JIRA task codes from commit messages since the last tag
$jiraTaskPattern = 'XXX-\d{1,4}'
$latestTaggedCommit = git rev-list --tags --max-count=1
$latestTag = git describe $latestTaggedCommit
git log --pretty=oneline "$latestTag..HEAD" | Select-String -Pattern $jiraTaskPattern | ForEach-Object { $_.Matches[0].Value } | Group-Object | ForEach-Object { $_.Name } | Sort-Object
@vgebrev
vgebrev / bitbucket-pipelines.yml
Last active August 19, 2019 10:51
Bitbucket Pipelines to run .NETCore and Angular tests on every Push and every Pull Request
# Bitbucket Pipelines to run .NETCore and Angular tests on every Push and every Pull Request
# At the time of writing: .NET Core 2.2, Node 10.16, Angular 8.2
# Example .net core test project: ./MyProject.Tests/MyProject.Tests.csproj
# Example asp.net core host for an angular app: ./MyProject.Web.UI/my-angular-app
image: microsoft/dotnet:sdk
definitions:
steps:
- step: &dotnet-test
class DataClass
{
public int Id { get; set; }
public int MyInt { get; set; }
}
var ids = new List<int> { 1, 3 };
var data = new List<DataClass> {
new DataClass { Id = 1, MyInt = 10 },
@vgebrev
vgebrev / timer.p8
Last active August 30, 2018 20:15
PICO-8 time based timer for animation example
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
function _init()
timer = { elapsed = 0, last = time() }
circle = {}
circle.animation = { length = 0.25, elapsed = 0}
circle.color = 0
end
@vgebrev
vgebrev / md-angular-calendar-purple-green-theme.scss
Last active January 31, 2024 13:10
Angular Material theme for angular-calendar
// Material Design theme for mattlewis92's angular-calendar component
// angular-calendar component: https://github.com/mattlewis92/angular-calendar
// Angular Material: https://material.angular.io/
@import '~@angular/material/theming';
@include mat-core();
// Based on the Angular Material purple-green prebuilt theme.
// Pick differnet colors and/or switch to a light background theme here:
$primary: mat-palette($mat-purple, 700);