This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Standard configuration | |
filetype plugin indent on | |
syntax on | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
" Enables paste mode | |
set pastetoggle=<F2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Example: | |
# > echo "key1 value1 key2 value2" | ./key_value_pipe_to_json.sh | |
# {'key1': value1, 'key2': value2} | |
arr=(); | |
while read x y; | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import pickle | |
try: | |
import cPickle | |
test_cPickle = True | |
except: | |
test_cPickle = False | |
import json | |
import marshal | |
import timeit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import os | |
import timeit | |
test1=""" | |
def check_file_classic(): | |
if os.path.exists("asdfas"): | |
return 1 | |
return 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
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" | |
login= |