Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
curl --location --request PUT 'https://tascourier.gr/hermes_api/courier/r18/4025019' \ | |
> --header 'Cookie: PHPSESSID=73faa1c6080c304b2adfee75df0e3520' \ | |
> --form 'p014="AKY"' | |
{"code":201,"data":{"nr01":"4025019","p01":"V-4025019"},"info":{"recperpage":9999999999,"page":0,"totalrec":0}} | |
curl --location --request GET 'https://tascourier.gr/hermes_api/courier/r18/4025023' \ | |
> --header 'Cookie: PHPSESSID=73faa1c6080c304b2adfee75df0e3520' | |
{"code":200,"data":[{"nr01":"4025023","p01":"V-4025023","p015":"2022-07-08","p125":"","p126":"2","p04":"001","p014":"\u0395\u039a\u03a1","p0100":"","p0101":"\u0391\u039b\u0395\u039e\u0391\u039d\u0394\u03a1\u039f\u03a3 \u039a\u0391\u03a0\u03a0\u039f\u03a3","p0102":"\u03a0\u0391\u03a4\u0397\u03a3\u0399\u03a9\u039d 190","p0103":"\u0391\u0398\u0397\u039d\u0391","p0104":"\u0391\u03a4\u03a4\u0399\u039a\u0397","p0105":"001","p0106":"","p0107":"","p0108":"11257","p0109":"+306989679689","p0110":"","p0200":"","p0201":"\u03a0\u039f\u03a5\u03a0\u0391\u039d\u039a\u0391\u03a3 \u03a0\u039f\ |
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
requestedProducts = […..]; # input array of products we have to make | |
For next shift: | |
nextShiftProducts = []; # keeps track of current shift products | |
# as long as the sum of this shift products are less than 8 we can try to add another product | |
while sum(nextShiftProducts hours) < 8: | |
for every requestedProducts: | |
if product.hours + sum(nextShiftProducts hours) < 8: # if we can add this product | |
add product to nextShiftProducts | |
remove product from requestedProducts | |
continue; # try to fill again remaining hours with another product |
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
{ | |
"has_next_page": true, | |
"listings": [ | |
{ | |
"ad_placement": null, | |
"ad_slot": null, | |
"address": [ | |
"Dunkirk, MD 20754", | |
"10420 Southern Maryland Blvd" | |
], |
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
{ | |
"has_next_page": true, | |
"listings": [ | |
{ | |
"ad_placement": "above_search", | |
"ad_slot": "0", | |
"address": "60 Main St", | |
"is_ad": true, | |
"name": "Stonehill Dental", | |
"profile_url": "https://www.yelp.com/biz/stonehill-dental-oswego", |
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
{ | |
"address": "109 S Batavia Ave Batavia, IL 60510", | |
"is_listing_claimed": false, | |
"is_paid_advertiser": false, | |
"reviews_count": 6, | |
"reviews_rating": 4, | |
"task_id": "test", | |
"task_url": "https://www.yelp.com/biz/batavia-family-dental-batavia-5?osq=emergency+dentist", | |
"version": "listing_3", | |
"website": "bataviadentaloffice.com", |
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
{ | |
"token" : "T1==cGFydG5lcl9pZD00NTgyODA2MiZzaWc9MmZhMDgzNDIzNzdjOWIyZmFhN2U4MDVmZDQyZmU4MGEzNTdlMmFkYTpzZXNzaW9uX2lkPTFfTVg0ME5UZ3lPREEyTW41LU1UWXhNVFkxTXpZd05EYzROSDRyVm5WdmNHMHpURTlhY1dkSk5WbDJVVmRDT1ZKQ2JVWi1VSDQmY3JlYXRlX3RpbWU9MTYxMTY1NDI1MiZub25jZT0wLjE2MDY2OTE4NDU2MjMyNzYmcm9sZT1wdWJsaXNoZXImZXhwaXJlX3RpbWU9MTYxMTc0MDY1Mg==", | |
"session_id" : "1_MX40NTgyODA2Mn5-MTYxMTY1MzYwNDc4NH4rVnVvcG0zTE9acWdJNVl2UVdCOVJCbUZ-UH4" | |
} |
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
/// This is inspired by intl_translation extract command https://github.com/dart-lang/intl_translation/blob/8a5e883d7fe07b0244adbaf3489ceb3b08385483/bin/extract_to_arb.dart | |
/// and is a slimed down rough version of it. Most of the code is from this package which is an excellent learning resource for anyone who wants | |
/// to play around with the dart analyzer. | |
/// This is a rough script, to extract localization keys for the easy_localization library. It will analyze the souce | |
/// code and find occurrences of tr and plural ( you could add other method names e.g. gender etc ) and extract the argument at index $argumentIndex | |
/// which should be the translation key. It then merges those keys to your current translated keys and spits the merged version where the | |
/// untranslated keys have a value of "MISSING". | |
/// Known issues | |
/// tr( isSomething ? "true_key" : "false_key", context ) -> will get this as key isSomething ? "true_key" : "false_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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |
NewerOlder