Skip to content

Instantly share code, notes, and snippets.

Akbashev Alexander Jimilian

Block or report user

Report or block Jimilian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Jimilian /
Last active Jul 23, 2017
Compare performance of basic use cases for two the most popular python libraries for Jenkins
from __future__ import absolute_import
import time
import jenkinsapi # python -m pip install jenkinsapi
import jenkins # python -m pip install python-jenkins
jenksins_url= # i.e. "http://myjenkins"
Jimilian /
Created Aug 17, 2016
In some cases exception-way could be much faster
from __future__ import print_function
import os
import timeit
def check_file_classic():
if os.path.exists("asdfas"):
return 1
return 2
from __future__ import print_function
import pickle
import cPickle
test_cPickle = True
test_cPickle = False
import json
import marshal
import timeit
Jimilian /
Last active Jun 10, 2019
Returns json created from pipe
# Example:
# > echo "key1 value1 key2 value2" | ./
# {'key1': value1, 'key2': value2}
while read x y;
Jimilian / .vimrc
Last active Dec 30, 2016
Vim settings
View .vimrc
" Standard configuration
filetype plugin indent on
syntax on
set tabstop=4
set shiftwidth=4
set expandtab
" Enables paste mode
set pastetoggle=<F2>
You can’t perform that action at this time.