Skip to content

Instantly share code, notes, and snippets.

View viktor-evdokimov's full-sized avatar
👷‍♂️
Focusing

Viktor Evdokimov viktor-evdokimov

👷‍♂️
Focusing
View GitHub Profile
!/usr/bin/env python
# current-tasks.py
# author: Anthony McClosky - http://amcclosky.com
import requests
import json
JIRA_ROOT_URL = "jira.example.com"
JIRA_API_ENDPOINT = "http://%s/rest/api/2.0.alpha1/" % JIRA_ROOT_URL
class PylonstestingController(BaseController):
jac = {'server': 'someSite'}
jira = JIRA(options=jac,basic_auth=('SomeUser', 'SomePassword'))
def index(self, id):
#jac = {'server': 'someSite'}
#jira = JIRA(options=jac,basic_auth=('SomeUser', 'SomePassword'))
searchString = 'project=' + id + '&status=open'
using ServiceStack.WebHost.Endpoints;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Security;
using ServiceStack.Common.Web;
using ServiceStack.Logging;
using ServiceStack.ServiceHost;
using ServiceStack.ServiceInterface;
@viktor-evdokimov
viktor-evdokimov / gulpfile.js
Created January 21, 2015 14:36
gulp browserify reactify boilerplate gulp file
var gulp = require('gulp')
, browserify = require('browserify')
, concat = require('gulp-concat')
, reactify = require('reactify')
, source = require("vinyl-source-stream")
gulp.task('browserify', function(){
var b = browserify();
b.transform(reactify); // use the reactify transform
b.add('./src/js/main.js');
@viktor-evdokimov
viktor-evdokimov / install.ps1
Created January 21, 2015 16:52
install package from local folder
Install-Package SomePackage -Source C:\PathToThePackageDir\
@viktor-evdokimov
viktor-evdokimov / selectMany.js
Created January 23, 2015 14:11
underscore/lodash select many
var list = [{ fields: [{}, ...]}, { fields: [{}, ...]}, { fields: [{}, ...]}]
var allFields = _.flatten(_.plunk(list, 'fields'), true)
@viktor-evdokimov
viktor-evdokimov / convert.sh
Last active August 29, 2015 14:14
generate pfx ( pkcs12) from .crt
openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt
@viktor-evdokimov
viktor-evdokimov / convert.js
Last active August 29, 2015 14:14
Convert html to xhtml with IE9
//IE9 +
var doc = new DOMParser().parseFromString('<img src="foo">', 'text/html');
var result = new XMLSerializer().serializeToString(doc);
// or
var di = document.implementation;
var hd = di.createHTMLDocument();
var xd = di.createDocument('http://www.w3.org/1999/xhtml', 'html', null);
hd.body.innerHTML = '<img>';
@viktor-evdokimov
viktor-evdokimov / javascript_resources.md
Last active August 29, 2015 14:14 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@viktor-evdokimov
viktor-evdokimov / python_resources.md
Last active August 29, 2015 14:14 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides