Skip to content

Instantly share code, notes, and snippets.

View oleksiilevzhynskyi's full-sized avatar

Oleksii Levzhynskyi oleksiilevzhynskyi

View GitHub Profile
@oleksiilevzhynskyi
oleksiilevzhynskyi / grammarly_web_frontend_resources.md
Last active May 7, 2024 13:45
Grammarly web front-end resources
@oleksiilevzhynskyi
oleksiilevzhynskyi / Quiz
Last active December 17, 2021 16:21
Quiz: all topics
### Quiz:
1. What is result of next line of code?
typeof null
Answer:
* `null`
* `object`
* `undefined`
@oleksiilevzhynskyi
oleksiilevzhynskyi / gist:1258663
Created October 3, 2011 08:00
How to get git-completion.bash to work on Mac OS X?
sudo port install git-core +bash_completion
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
GIT_PS1_SHOWDIRTYSTATE=true
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;33m\]\w\[\033[00m\]\[\033[01;31m\]$(__git_ps1 " {%s}")\[\033[00m\]\$ '
@oleksiilevzhynskyi
oleksiilevzhynskyi / gist:2282518
Created April 2, 2012 10:47
installing the oniguruma gem on debian/ubuntu
sudo apt-get install libonig-dev
gem install oniguruma
/* https://www.npmjs.com/package/webpack-watch-livereload-plugin
* in webpack.config:
* new WatchLiveReloadPlugin({
* files: ['./dist']
* })
*
* somewhere in index.ts
* if (process.env.NODE_ENV === 'development') {
* require('./livereload')()
* }
@oleksiilevzhynskyi
oleksiilevzhynskyi / gist:2557639
Created April 30, 2012 11:57
Parallel tests

Parallel tests

test:
  database: yourproject_test<%= ENV['TEST_ENV_NUMBER'] %>
  • Parallel tests with Cucumber:
#!/bin/sh
#
# Automatically adds ticket name to every commit message
# when branch name starts with "XX-00"
#
# Don't change message when it already contains any ticket name.#
#
# Don't do anything when in merge - https://git-scm.com/docs/githooks#_prepare_commit_msg
[ -f $GIT_DIR/MERGE_MSG ] && exit 0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.