Skip to content

Instantly share code, notes, and snippets.

View siepet's full-sized avatar
🎯
Focusing

Marcin Siepetowski siepet

🎯
Focusing
  • Gdańsk, Poland
View GitHub Profile
@siepet
siepet / gist:83de914a82c27cc0285e2ea54142974f
Last active June 29, 2018 21:46
prepare-commit-msg to include jira issue no in commit message
#!/bin/sh
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
REGEXP="([A-Z]{3}-[0-9]+)"
if [[ $BRANCH_NAME =~ $REGEXP ]]
#!/bin/sh
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
REGEXP="([A-Z]{3}-[0-9]+)"
if [[ $BRANCH_NAME =~ $REGEXP ]]
@siepet
siepet / Sample Module
Created September 14, 2017 10:32
module that is sample
defmodule Sample do
def call(conn, options) do
conn
|> do_something(options)
end
end
@siepet
siepet / pixi
Last active March 18, 2017 20:46
import Pixi from 'pixi.js';
class Application {
constructor() {
this.app = new PIXI.Application(800, 600, { backgroundColor: 0x1099bb});
document.body.appendChild(this.app.view);
this.initializeFunia = this.initializeFunia.bind(this);
this.run = this.run.bind(this);
this.gameLoop = this.gameLoop.bind(this);
this.initializeFunia();