Skip to content

Instantly share code, notes, and snippets.

View bricss's full-sized avatar
🦉
Understand Create Evaluate

Yahor Siarheyenka bricss

🦉
Understand Create Evaluate
View GitHub Profile
@bricss
bricss / git-report.sh
Last active February 24, 2023 13:40
Generates monthly Git reports
#!/usr/bin/env bash
# Generates monthly Git reports
# Usage: `sh git-report.sh [ample]`
author=$(git config user.name)
ample=$(expr "$1" == 'ample')
date=$(date +%Y-%m-%d)
foretime=$(date +%Y-%m-01)
fullpath="$PWD"
target=reports/report-${date}
@bricss
bricss / Forrst.icls
Last active March 29, 2023 15:19
WebStorm Forrst Theme
<scheme name="Forrst" version="142" parent_scheme="Default">
<metaInfo>
<property name="created">2023-03-29T17:02:29</property>
<property name="ide">WebStorm</property>
<property name="ideVersion">2023.1.0.0</property>
<property name="modified">2023-03-29T17:03:46</property>
<property name="originalScheme">Forrst</property>
</metaInfo>
<colors>
<option name="CARET_COLOR" value="8961e" />
@bricss
bricss / config.yml
Last active February 4, 2023 16:25
MongoDB config sample
net:
ipv6: true
storage:
dbPath: "C:/MongoDB/data"
directoryPerDB: true
journal:
enabled: true
wiredTiger:
engineConfig:
cacheSizeGB: 2
@bricss
bricss / viewport.check.js
Last active June 8, 2019 22:11
Wild way of viewport breakpoints checkout(s)
/*!
* @media (min-width: 1200px) {
* body:after {
* content: 'widescreen';
* display: none;
* }
* }
*/
export default () => window.getComputedStyle(document.body, ':after').getPropertyValue('content');
(function() {'use strict';
/**
* Handlebars addition helper.
*
* Usage:
* {{addition 10 to="10"}}
* {{addition key to="20"}}
* {{addition key to="-5"}}
*/
Handlebars.registerHelper('addition', function(context, options) {