Skip to content

Instantly share code, notes, and snippets.

View jzelez's full-sized avatar

Jurica Železnjak jzelez

  • twentysix
  • Croatia
View GitHub Profile
@jzelez
jzelez / keybase.md
Last active January 15, 2020 07:22

Keybase proof

I hereby claim:

  • I am jzelez on github.
  • I am jzelez (https://keybase.io/jzelez) on keybase.
  • I have a public key whose fingerprint is 1CEE D8E6 7E9C 76F8 5A61 6869 2285 1B5E 0690 3E61

To claim this, I am signing this object:

@jzelez
jzelez / .direnvrc
Last active July 4, 2017 06:06
direnv + zsh
layout_virtualenv() {
local venv_path="${1-./}"
source ${venv_path}/bin/activate
}
jQuery(document).ready(function(){
var languageSelected = jQuery('.lang_sel_sel').children('span'),
filter = jQuery('.prdctfltr_filter_inner');
if (languageSelected.text() == 'EN'){
function replaceStrings (inputText, outputText){
filter.find('.prdctfltr_regular_title').each(function(){
if (this.childNodes[0].nodeValue.indexOf(inputText) !== -1)
this.childNodes[0].nodeValue = outputText;
});
@jzelez
jzelez / webpack.js
Created May 26, 2017 06:21
webpack commons chunk + chunk hashing
new webpack.optimize.CommonsChunkPlugin({
name: 'commons',
filename: 'commons.[chunkhash].js',
minChunks(module, count) {
const context = module.context
return context && context.indexOf('node_modules') >= 0
}
}),
new webpack.optimize.CommonsChunkPlugin({
minChunks: 2,