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 base import http_get, url_builder, compare_expected_data_structure | |
import settings | |
def delete_route(route_id): | |
querystring = "delete_route?route_id=%s" % route_id | |
result = http_get(url_builder(querystring), 'oauth') | |
expected = '{"result":{"status":1,"output":[],"errors":[]}}' |
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 base import http_get, url_builder, compare | |
import settings | |
import json | |
def get_route_kml_by_oauth(privacy_setting): | |
route_key = create_route(privacy_setting) | |
querystring = "get_route_kml?route_key=%s" % route_key |
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 base import http_get, url_builder, compare | |
import settings | |
import json | |
def get_route_kml_by_oauth(privacy_setting): | |
route_key = create_route_key(privacy_setting) | |
querystring = "get_route_kml?route_key=%s" % route_key |
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
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. | |
'NAME': 'handshakez', # Or path to database file if using sqlite3. | |
'USER': 'handshakez', # Not used with sqlite3. | |
'PASSWORD': 'h0nd5hak3z', # Not used with sqlite3. | |
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. | |
'PORT': '', # Set to empty string for default. Not used with sqlite3. | |
} | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "centos-6.3" | |
config.vm.boot_timeout = 600 | |
config.vm.network "forwarded_port", guest: 8001, host: 8001 | |
config.vm.network "forwarded_port", guest: 8000, host: 8000 | |
config.vm.network "forwarded_port", guest: 5432, host: 5432 | |
config.vm.provider :virtualbox do |vb| |
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
E:\work\bayer\project>vagrant reload | |
[default] Attempting graceful shutdown of VM... | |
DL is deprecated, please use Fiddle | |
[default] Clearing any previously set forwarded ports... | |
Pruning invalid NFS exports. | |
[default] Clearing any previously set network interfaces... | |
[default] Preparing network interfaces based on configuration... | |
[default] Forwarding ports... | |
[default] -- 22 => 2222 (adapter 1) | |
[default] -- 8001 => 8001 (adapter 1) |
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
{ | |
'fields':[ | |
'_source' | |
], | |
'query':{ | |
'filtered':{ | |
'filter':{ | |
'bool':{ | |
'must':[ |
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
import sys | |
import time | |
import fileinput | |
from os import system | |
class Student(object): | |
id = 0 | |
age = 0 | |
name = "" |