Skip to content

Instantly share code, notes, and snippets.

# Git-branches
function git-branches() {
if [ ! -z $1 ]
then
author=$1
else
author="Artur"
fi
git for-each-ref --format=' %(authorname) %09 %(refname)' --sort=authorname | grep ${author} | grep -v 'origin/release-'
import React, { FunctionComponent, useMemo } from 'react';
import { Else, If, Then } from 'react-if';
import ViewStep from '../view-step/ViewStep';
import { ProjectFormData } from '../../js/types/Project';
import { BuilderListItem } from '../../js/types/Builder';
import FormSection from '../form-section/FormSection';
import { AddProjectSteps } from '../../6-react-app/containers/add-project-button/AddProjectButton';
import TileBuilderCard from '../../3-components/tile-builder-card/TileBuilderCard';
interface ViewStepProps {
@arturkot
arturkot / .vimrc
Created August 8, 2019 08:32
Vim settings
set number
set autoread
set tabstop=2
runtime macros/matchit.vim
" Ignores
set wildignore+=*/tmp/*,*/node_modules/*,*/dist/*,*.so,*.swp,*.zip
" Prettier
function RunPrettier()
{
"id": "{{urlParam 'id'}}",
"roof": "{{hexColor}}",
"guttering": "{{hexColor}}",
"fascia": "{{hexColor}}",
"garageDoor": "{{hexColor}}",
"mortar": "{{hexColor}}",
"externalWalls": {
"brick": "{{guid}}",
"bondStyle": "{{guid}}",
import 'MorphSVGPlugin';
import TimelineMax from 'gsap/src/uncompressed/TimelineMax';
import { Power1 } from 'gsap/src/uncompressed/easing/EasePack';
const elA = catEl.querySelector('.el-a');
const elB = catEl.querySelector('.el-b');
const tl = new TimelineMax()
.to(elA, 2, { morphSVG: elB, ease: Power1.easeInOut });
"browser": {
"MorphSVGPlugin": "./src/js/vendor/MorphSVGPlugin.js",
"waveSVG": "./src/js/vendor/waveSVG.js",
"SplitText": "./src/js/vendor/SplitText.js"
}
export default function(timeline) {
const bodyEl = document.querySelector('body');
const timelineControlEl = document.createElement('input');
const timelinePlayEl = document.createElement('button');
let intitalProgress = parseFloat( localStorage.getItem('timelineValue') );
let isPlaying = false;
if ( isNaN(intitalProgress) ) { intitalProgress = 0; }
document.documentElement.classList.add('is-debug');
@arturkot
arturkot / components.my-component.js
Last active September 7, 2016 12:33
Query Params test
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
setArray () {
this.set('array', [4, 5]);
this.sendAction('performTransition');
},
setNumber () {
# Atom editor settings
{
"colorPrimary": "#E2299E",
"colorSecondary": "#8D7B87",
"colorBg": "#EBD5E4",
"colorGradient": ["#b9157f", "#db2b9b"],
"minRange": "0",
"maxRange": "250000",
"isEasing": "true",