This file contains 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
#!/usr/bin/env ruby | |
def exec_rubocop(file_name) | |
response = %x{rubocop -c ./.rubocop.yml #{file_name}} | |
response = response.split("\n") | |
response.grep(/\d*:\d*/) | |
end | |
def commits_to_load | |
%x{git log --format=format:%h $(git merge-base HEAD develop)..HEAD}.split("\n") |
This file contains 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
BRANCH_NAME=feature/BACK-581-automatic-bills-generation-sverka | |
BASE_BRANCH=develop | |
TMP_DIR=/tmp/extractor/ | |
EXTRACTED_FILES_LIST_FILE=$TMP_DIR/extracted_files.list | |
FULL_FILES_LIST_FILE=$TMP_DIR/full_files.list | |
TMP_FILES_LIST_FILE=$TMP_DIR/tmp_files.list | |
# creating and clening the temp folder |
This file contains 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/bash | |
STAGING_BRANCH=staging | |
DEVELOP_BRANCH=develop | |
BRANCH_NAME=`git branch --list | fzf` | |
COMMON_PARENT_COMMIT_HASH=`git merge-base $BRANCH_NAME $DEVELOP_BRANCH` | |
FILES_LIST=`comm -12 <(git diff $BRANCH_NAME $STAGING_BRANCH --name-only) <(git diff $COMMON_PARENT_COMMIT_HASH $BRANCH_NAME --name-only)` | |
function diff_or_die { | |
if [ -z $1 ]; then | |
exit |
This file contains 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/bash | |
STAGING_BRANCH=staging | |
DEVELOP_BRANCH=develop | |
BRANCH_NAME=`git branch --list | fzf` | |
COMMON_PARENT_COMMIT_HASH=`git merge-base $BRANCH_NAME $DEVELOP_BRANCH` | |
comm -12 <(git diff $BRANCH_NAME staging --name-only) <(git diff $COMMON_PARENT_COMMIT_HASH $BRANCH_NAME --name-only) \ | |
| xargs -I{} git diff staging $BRANCH_NAME -- {} |
This file contains 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
var links_hash = {}; | |
function store_in_links_hash(href, item, container) | |
{ | |
if(links_hash[href] == undefined) | |
{ | |
links_hash[href] = item; | |
//item.css("background-color", "red"); | |
//$(container).css("border", "2px solid red"); | |
console.log(href); |
This file contains 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
<?php | |
/** | |
* php-ansi-color | |
* | |
* Original | |
* https://github.com/loopj/commonjs-ansi-color | |
* | |
* @code | |
* <?php | |
* require_once "ansi-color.php"; |