- URL: https://completion.amazon.com/api/2017/
- Resource: suggestions
- Paramters:
- session-id: 133-2190809-5709766
- customer-id: A1CNYR04B8CZOZ
- request-id: NTH41W0H5GYC8N00NVCS
- page-type: Gateway
- lop=en_US
- site-variant=desktop
- client-info=amazon-search-ui
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
version: "2.1" | |
services: | |
rabbit1: | |
image: "rabbitmq:3-management-alpine" | |
mem_limit: 2g | |
memswap_limit: 2g | |
mem_swappiness: 0 | |
restart: unless-stopped | |
ports: | |
- "15672:15672" |
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
# Spring | |
spring: | |
cloud: | |
stream: | |
default: | |
contentType: application/json | |
bindings: | |
input: | |
destination: pollerIn-process | |
group: group |
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
// create the file: | |
sudo vim /usr/share/applications/intellij.desktop | |
// add the following entry | |
[Desktop Entry] | |
Version=2018.1.1 | |
Type=Application | |
Terminal=false | |
Icon[en_US]=/opt/idea/idea-IC-181.4203.550/bin/idea.png | |
Name[en_US]=IntelliJ |
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
version: '2.1' | |
services: | |
master: | |
image: redis:3.2-alpine | |
command: ["redis-server","/usr/local/etc/redis/redis.conf"] | |
sysctls: | |
net.core.somaxconn: '1024' | |
mem_limit: 8g | |
memswap_limit: 8g |
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
if (!doc['request.keyword'].empty) { | |
def m = /\/api\/(.*[-\/]v[0-9])\/.*/.matcher(doc['request.keyword'].value); | |
if (m.matches()) { | |
return m.group(1) | |
} | |
} | |
return "" |
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
class Solution { | |
public int[] twoSum(int[] nums, int target) { | |
int n = nums.length; | |
int [][] arr = new int[n][2]; | |
for (int i=0; i < n; i++) { | |
arr[i][0] = nums[i]; | |
arr[i][1] = i; | |
} |
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
version: "2.1" | |
services: | |
cfg: | |
container_name: mongo_cfg | |
image: dadhx05.interno:9092/mongo:3.4.4 | |
restart: unless-stopped | |
command: mongod --config /config/cfgsrv.yaml --port 27000 | |
ulimits: |
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
""" | |
File name: main.py | |
Author: adriano | |
Date created: 10/11/17 | |
""" | |
import json | |
import requests | |
from requests.auth import HTTPBasicAuth | |
__HOST = "http://apisdigitais.interno:8765" |
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
class Pouring(capacity: Vector[Int]) { | |
//states | |
type State = Vector[Int] | |
val initialState = capacity map (x => 0) | |
trait Move { | |
def change(state: State): State | |
} |
NewerOlder