This file contains hidden or 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
def test_urls(self): | |
profiling_api_url = url_for('profiling_api') | |
urls = ( | |
url_for('index'), | |
url_for('test_api'), | |
url_for('test_sentry'), | |
url_for('profiling'), |
This file contains hidden or 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 | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch/status of the current git repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import trafaret as t | |
class SchemaValidationError(t.DataError): | |
pass | |
# /hotels/destination_lookup |
This file contains hidden or 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
https://confluence.jetbrains.com/display/YTD65/YouTrack+REST+API+Reference |
This file contains hidden or 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
Feature: GetGoing API playground | |
Background: | |
Given I am on 'Playground' page | |
When Fill form: | |
| label | value | field_type | | |
| API KEY | 123132 | TextEdit | | |
| SECRET KEY | 123132 | TextEdit | | |
| Nonce | <random> | TextEdit | | |
| System | Mobile | Select | |
This file contains hidden or 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 multiprocessing import Pool | |
from subprocess import call, Popen, PIPE | |
from glob import glob | |
from datetime import datetime | |
import logging | |
import argparse | |
import json | |
from functools import partial | |
logging.basicConfig(level=logging.INFO, |
This file contains hidden or 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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme", | |
"cucumber_code_keywords": | |
[ | |
"given", | |
"when", | |
"then", | |
"and", | |
"but", | |
"und", |
This file contains hidden or 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 sqlalchemy import create_engine, func | |
from sqlalchemy.orm import scoped_session, sessionmaker | |
from yaml import load | |
import urllib | |
import logging | |
# can be removed when using as a library | |
logging.basicConfig(format="%(asctime)s %(levelname)s\t%(message)s", level=logging.DEBUG) | |
class LSDB(): |
This file contains hidden or 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
word = input('say something: ') | |
value = 0 | |
for char in word.upper(): | |
value += ord(char) - 64 | |
print("Your value is {}".format(value)) |