Skip to content

Instantly share code, notes, and snippets.

@eyalstoler
eyalstoler / why_coding.json
Created December 8, 2020 15:04
why coding?
{
"Why coding is awesome?": ["It bring happiness into my life", "It deafeats comptettion for high quality jobs", "It can make a difference in my workplace", "It give me another skill to influence", "It creates a better world to live in"]
}
# TOP programming languages in 2020 - Provided by Tiobe https://www.tiobe.com/tiobe-index/ all rights reserved to this site
Python 11.27
C 16.95
Java 12.56
C++ 6.94
C# 4.16
VisualBasic 3.97
JavaScript 2.14
SQL 1.57
PHP 2.09
@eyalstoler
eyalstoler / create_session_3_commits.sh
Last active October 30, 2017 15:09
Simple shell to generate session #3 commits
#!/bin/bash
echo
echo "********************************************************************"
echo "*** Author: Eyal Stoler ***"
echo "*** Created: Oct 30, 2017 ***"
echo "*** A simple script to quickly set up some git commits ***"
echo "********************************************************************"
echo
echo
@eyalstoler
eyalstoler / git-movie
Last active October 30, 2017 15:20
Shows famous movie lines quotes in a Git manner
#!/bin/bash
movie_lines=()
while read line
do
movie_lines+=("$line")
done < git-movie.conf
rand=$RANDOM
rand=$[ $rand % ${#movie_lines[@]} ]
import groovy.json.JsonSlurper
def baseUrl = new URL('http://consul.kenshoo-lab.com/v1/kv/demo/my-groovy-key')
def connection = baseUrl.openConnection()
connection.with {
doOutput = true
requestMethod = 'GET'
def str = content.text[1..-2]
# Allow this repository to get it’s branches overwritten from another repository
git config receive.denyCurrentBranch ignore
# git conflict repo to clone
https://github.com/eyalstoler/source-control-olympic-sports
@eyalstoler
eyalstoler / __home_assignments
Last active September 6, 2016 13:40
home_assignments
=== Home Assignments ==
Start word: dog
Target word: cat
dog → cog → chg → chi → chm → com → cat
----------------------------------------------------------------------
Start word: cat
Target word: net
Cat → eat → fat → hat → lat → mat → met → net
@eyalstoler
eyalstoler / _kenshoo_match_pixel.markdown
Last active August 29, 2015 14:15
A short implementation guide for the Kenshoo Match Pixel

Kenshoo Match Pixel - Site Implementation

This document is intended to describe the implementation steps needed in order to have the Kenshoo Match Pixel installed on your site.

The Kenshoo Match Pixel is a Javascript based pixel implementation which allows the site owner to report user based activity to Kenshoo. This data will be later used for Cross device reporting and path capabilities.

The Kenshoo Match Pixel is designed to be implemented on every page the site owner chooses without any overhead in page loading. For best user coverage we highly recommend to implement this Pixel on EVERY possible page view which has access to the site's user identifier.

In order to use the Pixel you must first import the kenshoo.js script as follows:

Call Eyal Stoler