Skip to content

Instantly share code, notes, and snippets.

View wlalele's full-sized avatar

Amine Daï wlalele

View GitHub Profile
@wlalele
wlalele / en.json
Last active March 25, 2020 09:30
en.json
{
"checkout": {
"summary": {
"information": "Subscription details",
"payment-method": "Payment method",
"payment-methods": {
"online": "Online payment"
},
"cart": {
"title": "Attendee(s) and price",
@wlalele
wlalele / script-painless.java
Last active November 18, 2020 13:38
working use-case activities
// find timeslot by sku in a collection
def findById(def timeslots, def timeslotId) {
for (def timeslot: timeslots) {
if (timeslot.timeslotId == timeslotId) {
return timeslot;
}
}
return null;
}
@wlalele
wlalele / sport-categories.json
Last active October 20, 2020 15:32
example of response
{
"data": [
{ "id": 1, "label": "dances", "sports": [120, 121] },
{ "id": 2, "label": "courses", "sports": [155, 156] },
{ "id": 3, "label": "fitness", "sports": [155, 156, 120, 121] }
]
}
@wlalele
wlalele / request.bash
Created January 27, 2021 13:46
example generation balisage
curl --location --request POST 'http://localhost:8001/api/printable.pdf' \
--header 'Content-Type: application/json' \
--header 'Cookie: XDEBUG_SESSION=PHPSTORM' \
--data-raw '{
"products": [
{
"sku": "L40676700-8",
"brand": "Brooks",
"brandLogo": "https://cdn.leoburnett.media/image/2/885/0/5/uploads/brooks1920.png",
"image": "https://www.wigglestatic.com/product-media/102729584/L40790800_0_Jr_speedcross_cs_wp_j_lyons_blue.jpg.originale.jpg?w=100&h=100&a=7",