Skip to content

Instantly share code, notes, and snippets.

View luiscastillocr's full-sized avatar

Luis Fernando Castillo Mata luiscastillocr

  • Independent Contractor
  • Costa Rica
  • 20:31 (UTC -06:00)
View GitHub Profile
import sys
import time
import fileinput
from os import system
class Student(object):
id = 0
age = 0
name = ""
{
'fields':[
'_source'
],
'query':{
'filtered':{
'filter':{
'bool':{
'must':[
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)
# -*- 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|
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.
}
}
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
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
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":[]}}'