Skip to content

Instantly share code, notes, and snippets.

View XOlegator's full-sized avatar

Oleg Ekhlakov XOlegator

View GitHub Profile
@tomfun
tomfun / plural.js
Created August 23, 2016 12:31
JavaScript russian plural function
function getNoun(number, one, two, five) {
let n = Math.abs(number);
n %= 100;
if (n >= 5 && n <= 20) {
return five;
}
n %= 10;
if (n === 1) {
return one;
}
@seanjensengrey
seanjensengrey / centos_7_kerl.md
Created August 3, 2016 18:32
centos erlang build using kerl
curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl
chmod +x kerl

sudo yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git
sudo yum install pam-devel
sudo yum install perl-Digest-SHA-5.85-3.el7.x86_64


CFLAGS="-DOPENSSL_NO_EC=1" ./kerl build git https://github.com/basho/otp OTP_R16B02_basho10 R16B02-basho10
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 1, 2024 17:49
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites