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 test from 'ava' | |
import supertest from 'supertest' | |
process.env.MONGODB_APPLICATION_USER = 'admin' | |
process.env.MONGODB_APPLICATION_DATABASE = 'admin' | |
process.env.MONGODB_APPLICATION_PASS = 'qweqwe' | |
process.env.MONGODB_HOST = 'localhost' | |
const server = require('../index') | |
let listen = null | |
let db = null |
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
/* SELECT test */ | |
SELECT ID, reg_replace(post_content, '<aside class="mashsb-container(.*)">((.|\n)*)<\/aside>', '', TRUE, 2, 0) as content | |
FROM wp_posts | |
WHERE post_content REGEXP('<aside class="mashsb-container(.*)">((.|\n)*)<\/aside>') | |
LIMIT 1 | |
/* Update */ | |
UPDATE wp_posts | |
SET post_content = REGEXP_REPLACE('post_content', '<aside class="mashsb-container(.*)">((.|\n)*)<\/aside>', '') | |
WHERE ID = 469 |
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
.adsense-responsive { | |
width: 320px; | |
height: 100px; | |
} | |
@media(min-width: 500px) { | |
.adsense-responsive { | |
width: 468px; | |
height: 60px; | |
} | |
} |
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
function flattenForeach (array) { | |
let buffer = [] | |
let result = array.slice() | |
while (result.some(el => Array.isArray(el))) { | |
buffer = [] | |
result.forEach( | |
el => Array.isArray(el) | |
? buffer = buffer.concat(el) |
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
GET /api/orders/4f0a0821-c89d-4bb0-b360-0b10f5e467dd HTTP/1.1 | |
Host: backend-dot-atlas-morda-testing.appspot.com | |
Cookie: session=eyJhbGciOiJSUzI1NiIsImtpZCI6InNrSUJOZyJ9.eyJpc3MiOiJodHRwczovL3Nlc3Npb24uZmlyZWJhc2UuZ29vZ2xlLmNvbS9hdGxhcy1tb3JkYS10ZXN0aW5nIiwiYXVkIjoiYXRsYXMtbW9yZGEtdGVzdGluZyIsImF1dGhfdGltZSI6MTU4MDE0NjAyNiwidXNlcl9pZCI6Ijc5MTExMTExMTE5Iiwic3ViIjoiNzkxMTExMTExMTkiLCJpYXQiOjE1ODAxNDYwMjcsImV4cCI6MTU4MTM1NTYyNywiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6e30sInNpZ25faW5fcHJvdmlkZXIiOiJjdXN0b20ifX0.SxwVFWUwF5JL80zL6MS-hWp8Dpq6dtPKpGF2S5IwmOs2yOVECRhLKImKR0nWXTtpniKSj1mu7oeioLVcJdhl9E-9QHK_9T0AgzZ-k34PIxlAu4spkG8oRRGVtCB23W97kGmXTM-jdnW94TkxM9XtlSJaQo1B-CJ8lVWjmFlnqW9Z0LAkLxDtY_fldvsNtv3odDIYrAiOUMr3q2pYvifdfV3b8CkY95m8aEpWEAV4p9hrJh_JPdnhJ9-eRU35Mh9mvNQdZW5h5xum7iZPO0uGxgCJztn_NsRyvKGLbOnMUOdJ5Wtgaxi9PYm34D6CpnPXrir5O37VjM00ebAUwS668g | |
User-Agent: PostmanRuntime/7.20.1 | |
Accept: */* | |
Cache-Control: no-cache | |
Postman-Token: 7c2cb1ba-3e19-4dcd-9884-545b6068cc5d,54f902b5-ee1d-4a32-aa9e-a4bd76003b05 | |
Host: backend-dot |
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
POST /gds/rides/atlas:457721:554234:524901:1/book HTTP/1.1 | |
Host: atlas-gds-testing.appspot.com | |
Content-Type: application/json | |
User-Agent: PostmanRuntime/7.20.1 | |
Accept: */* | |
Cache-Control: no-cache | |
Postman-Token: c0ebb4dd-2c41-4e79-9e5b-8bfef8bcb969,6f166e02-9b6b-43f6-8803-b456723b5761 | |
Host: atlas-gds-testing.appspot.com | |
Accept-Encoding: gzip, deflate | |
Content-Length: 485 |
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
GET /api/orders/218047a4-7101-4f2c-88bf-9bdace3a9844 HTTP/1.1 | |
Host: backend-dot-atlas-morda-testing.appspot.com | |
Cookie: session=eyJhbGciOiJSUzI1NiIsImtpZCI6InNrSUJOZyJ9.eyJpc3MiOiJodHRwczovL3Nlc3Npb24uZmlyZWJhc2UuZ29vZ2xlLmNvbS9hdGxhcy1tb3JkYS10ZXN0aW5nIiwiYXVkIjoiYXRsYXMtbW9yZGEtdGVzdGluZyIsImF1dGhfdGltZSI6MTU4MDE0NjAyNiwidXNlcl9pZCI6Ijc5MTExMTExMTE5Iiwic3ViIjoiNzkxMTExMTExMTkiLCJpYXQiOjE1ODAxNDYwMjcsImV4cCI6MTU4MTM1NTYyNywiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6e30sInNpZ25faW5fcHJvdmlkZXIiOiJjdXN0b20ifX0.SxwVFWUwF5JL80zL6MS-hWp8Dpq6dtPKpGF2S5IwmOs2yOVECRhLKImKR0nWXTtpniKSj1mu7oeioLVcJdhl9E-9QHK_9T0AgzZ-k34PIxlAu4spkG8oRRGVtCB23W97kGmXTM-jdnW94TkxM9XtlSJaQo1B-CJ8lVWjmFlnqW9Z0LAkLxDtY_fldvsNtv3odDIYrAiOUMr3q2pYvifdfV3b8CkY95m8aEpWEAV4p9hrJh_JPdnhJ9-eRU35Mh9mvNQdZW5h5xum7iZPO0uGxgCJztn_NsRyvKGLbOnMUOdJ5Wtgaxi9PYm34D6CpnPXrir5O37VjM00ebAUwS668g | |
User-Agent: PostmanRuntime/7.20.1 | |
Accept: */* | |
Cache-Control: no-cache | |
Postman-Token: a315502f-3802-4f72-87f3-807d343ea771,d8d5bb69-4886-4f89-9804-1a744f443612 | |
Host: backend-dot |
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
POST /api/orders HTTP/1.1 | |
Host: backend-dot-atlas-morda-testing.appspot.com | |
Content-Type: application/json | |
Cookie: session=eyJhbGciOiJSUzI1NiIsImtpZCI6InNrSUJOZyJ9.eyJpc3MiOiJodHRwczovL3Nlc3Npb24uZmlyZWJhc2UuZ29vZ2xlLmNvbS9hdGxhcy1tb3JkYS10ZXN0aW5nIiwiYXVkIjoiYXRsYXMtbW9yZGEtdGVzdGluZyIsImF1dGhfdGltZSI6MTU4MDgxODkwOSwidXNlcl9pZCI6Ijc5MTExMTExMTE5Iiwic3ViIjoiNzkxMTExMTExMTkiLCJpYXQiOjE1ODA4MTg5MTAsImV4cCI6MTU4MjAyODUxMCwiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6e30sInNpZ25faW5fcHJvdmlkZXIiOiJjdXN0b20ifX0.oGrii-Xu726mvuRBE8Iflj6j6fT3MjRIsMrl6AK-IgDN-vcR-TpI2BEFuuGOEXqDiIzaQTB05rhilMnh9WnOmdpU3QDayvoKut5llZBMKJWhhLSUlwN-sFYBcARHh7FntXgV-MdJDZR8_RvQVOx2qY_9CoWyngso1y_hmr65w67S4OtY_ok9xmacNi76LUj_VWT-cCtQBjko4q45Sg3RTScgbRsdJFEtaSiag9pW8xjb6PhhDOtDNszrB_z3ZIUx98WLcLT4CwKunjsOkK0z0Ri1eVU2B_yHiK3BpYjqiyPa8vXwPJACAH9BMLu7x19cucvoN0TcTEda76Xw57yNDQ | |
User-Agent: PostmanRuntime/7.20.1 | |
Accept: */* | |
Cache-Control: no-cache | |
Postman-Token: fd698a13-efea-4f3c-8b36-12dc73a9942b,ba68fcff-2cd5-4ea8-83f0-19245661d04c | |
Host: backend-dot-atla |
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
POST /api/orders HTTP/1.1 | |
Host: backend-dot-atlas-morda-testing.appspot.com | |
Content-Type: application/json | |
Cookie: session=eyJhbGciOiJSUzI1NiIsImtpZCI6InNrSUJOZyJ9.eyJpc3MiOiJodHRwczovL3Nlc3Npb24uZmlyZWJhc2UuZ29vZ2xlLmNvbS9hdGxhcy1tb3JkYS10ZXN0aW5nIiwiYXVkIjoiYXRsYXMtbW9yZGEtdGVzdGluZyIsImF1dGhfdGltZSI6MTU4MDgxODkwOSwidXNlcl9pZCI6Ijc5MTExMTExMTE5Iiwic3ViIjoiNzkxMTExMTExMTkiLCJpYXQiOjE1ODA4MTg5MTAsImV4cCI6MTU4MjAyODUxMCwiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6e30sInNpZ25faW5fcHJvdmlkZXIiOiJjdXN0b20ifX0.oGrii-Xu726mvuRBE8Iflj6j6fT3MjRIsMrl6AK-IgDN-vcR-TpI2BEFuuGOEXqDiIzaQTB05rhilMnh9WnOmdpU3QDayvoKut5llZBMKJWhhLSUlwN-sFYBcARHh7FntXgV-MdJDZR8_RvQVOx2qY_9CoWyngso1y_hmr65w67S4OtY_ok9xmacNi76LUj_VWT-cCtQBjko4q45Sg3RTScgbRsdJFEtaSiag9pW8xjb6PhhDOtDNszrB_z3ZIUx98WLcLT4CwKunjsOkK0z0Ri1eVU2B_yHiK3BpYjqiyPa8vXwPJACAH9BMLu7x19cucvoN0TcTEda76Xw57yNDQ | |
User-Agent: PostmanRuntime/7.20.1 | |
Accept: */* | |
Cache-Control: no-cache | |
Postman-Token: fd698a13-efea-4f3c-8b36-12dc73a9942b,ba68fcff-2cd5-4ea8-83f0-19245661d04c | |
Host: backend-dot-atla |
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
POST /loyalty/calc HTTP/1.1 | |
Host: https://backend-dot-atlas-morda-testing.appspot.com/api | |
Cookie: session=eyJhbGciOiJSUzI1NiIsImtpZCI6IjdUWDJldyJ9.eyJpc3MiOiJodHRwczovL3Nlc3Npb24uZmlyZWJhc2UuZ29vZ2xlLmNvbS9hdGxhcy1tb3JkYS10ZXN0aW5nIiwiYXVkIjoiYXRsYXMtbW9yZGEtdGVzdGluZyIsImF1dGhfdGltZSI6MTU4NDM2NjI1OCwidXNlcl9pZCI6Ijc5MTExMTExMTE5Iiwic3ViIjoiNzkxMTExMTExMTkiLCJpYXQiOjE1ODQzNjYyNTksImV4cCI6MTU4NTU3NTg1OSwiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6e30sInNpZ25faW5fcHJvdmlkZXIiOiJjdXN0b20ifX0.M4GsjkCWL1gqQ4vyMv5BuiJzg4x2SNZgCyHSALcbiTjdox5GK5Vl2SWxDDNYxMLGlNrKYfw_K0FYfkh0IJchJMBIO5kSiUTKterHsQf4uda6EQoHDvt8fn2AH8U8QCiQjx6BkNuJ9Jq0tLuGPPifNAZaNZKrOL8LO7ljxM6F-Iptmd-PVeglqr9jupO1MEK_ihlwag8Ot5nmzutbuKYbH3nmIouQv_LUhNhXoHCdDsIQ8XdfRRHeaj1pFcZvSxoAR3nCuq4B8soaaAEhasOEG_1BIcISmC7sPiOpK_olXIJIGB7WqeSL_74qG5A34nE-THVrt0N2vY5mO5ayXbnXPg | |
{ | |
"orderId": "7a4f5d62-aa86-4823-95a2-d880979d5d02", | |
"promocode": "DRVMZZ" | |
} |