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
name: Test | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: |
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
type Block = Important | Emphasis | Regular | |
type BK = Block['kind'] | |
type Important = { kind: 'important'; important: string } | |
type Emphasis = { kind: 'emphasis'; emphasis: string } | |
type Regular = { kind: 'text'; text: string } | |
type SmartOpts<T extends Block['kind']> = Extract<Block, { kind: T }> | |
type RegularOptions = SmartOpts<'text'> |
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
#!/bin/sh | |
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".[j|t]sx\{0,1\}$") | |
TSLINT="$(git rev-parse --show-toplevel)/WebClient/node_modules/.bin/tslint" | |
if [[ "$STAGED_FILES" = "" ]]; then | |
exit 0 | |
fi | |
PASS=true |
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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 14, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,248,248,0.8)', |
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 get-jira-card-number { | |
# Assuming branch names have the following body: XX-1234-Title, | |
# we are only interested in XX-1234. | |
git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3-8 | cut -d"-" -f 1-2 | |
} | |
function jira-card-number-commit { | |
local number=`get-jira-card-number` | |
local message=$1; |
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
console.log('HELLO WORLD'); |
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
.cycle-slideshow.auto{data: { cycle_loader: true, cycle_progressive: "#slideshow-images" }} | |
-# default image loaded | |
= image_tag "image0.jpg", alt: "" | |
%script#slideshow-images{type: "text/cycle"} | |
- image_count = 6 | |
[ | |
- (1..image_count).each_with_index do |i| | |
- path = image_path("image#{i}.jpg") |
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
// this = marker under mouse | |
const matrix = this.getScreenCTM() | |
.translate(+this.getAttribute('cx'), +this.getAttribute('cy')); | |
const graphDiv = document.getElementById(graphOptions.chart.id).getBoundingClientRect(); | |
let tooltTipLeftpx = matrix.e - graphDiv.left; | |
if (tooltTipLeftpx > (graphOptions.chart.width - (graphOptions.chart.padding * 1.5))) { | |
tooltTipLeftpx -= graphOptions.chart.padding * 2; |
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
.something | |
.selector | |
.svg | |
.selector | |
.backgroundsize | |
.selector | |
.svg.backgroundsize |