Skip to content

Instantly share code, notes, and snippets.

View fedulovivan's full-sized avatar

Ivan Fedulov fedulovivan

View GitHub Profile
Group Name Campaign group type ID GCG group type ID
None not applicable 0
Target 0 2
Random 1 not applicable
Control 2 1
@fedulovivan
fedulovivan / resultSet.java
Last active February 16, 2017 12:45
resultset optional colum reader implemented using generics and lambda, for java 8
/**
* WARNINIG works with ojdbc7 only
*
* @param rs
* @param columnName
* @param columnType
* @param reader
* @throws SQLException
*/
protected static <T> void readOptionalColumn(
async function(req, res, next) {
const ACTIVATION = 1;
const EXPIRATION = 2;
const OFFER = 3;
const CHARGE = 4;
const EXTERNAL = 5;
const getAutoGroup = ({ groupId, name }) => {
if (groupId) return groupId;
declare module 'lodash/array/chunk' { export = _.chunk }
declare module 'lodash/array/compact' { export = _.compact }
declare module 'lodash/array/difference' { export = _.difference }
declare module 'lodash/array/drop' { export = _.drop }
declare module 'lodash/array/dropRight' { export = _.dropRight }
declare module 'lodash/array/dropRightWhile' { export = _.dropRightWhile }
declare module 'lodash/array/dropWhile' { export = _.dropWhile }
declare module 'lodash/array/fill' { export = _.fill }
declare module 'lodash/array/findIndex' { export = _.findIndex }
declare module 'lodash/array/findLastIndex' { export = _.findLastIndex }
@fedulovivan
fedulovivan / save-load-docker-images.sh
Last active November 9, 2022 08:10 — forked from mmrko/save-load-docker-images.sh
Script to (selectively) save/load multiple Docker images
#!/usr/bin/env bash
# Script to (selectively) save/load multiple Docker images to/from a directory.
# Run ./save-load-docker-images.sh for help.
set -e
directory=$PWD
filter=""
compress=0