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
# all emoji | |
# 1000.times { |i| emoji(127740 + i) + ' ' } | |
# moon phases | |
# 8.times { |i| emoji(127761 + i) } | |
DELAY = 0.3; | |
# clean screen | |
def clean |
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
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security |
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
echo $(date +'[%F %T %Z]') |
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
git status --porcelain | grep -v "D " | cut -c4- | grep "\.rb\|rake" | xargs rubocop -a |
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
// set `wsse-user` and `wsse-secret` variables in | |
// your Postman environment | |
const user = pm.environment.get("wsse-user"); | |
const secret = pm.environment.get("wsse-secret"); | |
const header = getWsseHeader(user, secret); | |
pm.environment.set("wsse-header", header); | |
function sha1hex(str) { |
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
alias lint-all='git diff --name-only develop | grep "\.rb" | xargs rubocop -a' |
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
// https://www.codewars.com/kata/simple-time-difference/train/javascript | |
function solve(arr){ | |
return arr.map(convertTimeToMinutes).sort((a, b) => a - b); | |
// const day = convertTimeToMinutes('24:00') | |
// const firstTime = convertTimeToMinutes(arr[0]) | |
// const nextDayTime = firstTime + day | |
// return convertMinutesToTime(nextDayTime - firstTime - 1) | |
} |
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
swagger: '2.0' | |
info: | |
title: HTTP-proxy API | |
description: Example HTTP-proxy API | |
version: '1.0.0' | |
schemes: | |
- https | |
produces: | |
- application/json | |
paths: |
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 | |
# This script will create a git-tag if version in package.json changes | |
git config --global user.email "builds@travis-ci.com" | |
git config --global user.name "Travis CI" | |
VERSION=$(node -pe "require('./package.json').version") | |
export PACKAGE_VERSION="v${VERSION}" | |
export LAST_TAG=$(git tag --sort version:refname | tail -1) |
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
echo '{something+}' | sed -E 's/\{([A-Za-z0-9\-]+)\+\}/{\1}/' |
NewerOlder