Skip to content

Instantly share code, notes, and snippets.

View oguzhanozcelik's full-sized avatar
🎯
Focusing

Oguzhan OZCELIK oguzhanozcelik

🎯
Focusing
View GitHub Profile
export async function getServerSideProps(context) {
// @ts-ignore
let postsFinal = []
const locale = context.locale;
const seourl = context.params.seourl;
let url = `${process.env.SITE_URL_API}/detail`;
axios.get(url, {
params: {
version: 1
frontend:
phases:
preBuild:
commands:
- npm ci --cache .npm --prefer-offline
build:
commands:
- npm run build
artifacts:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
#myHeader {
background-color: lightblue;
color: black;
padding: 40px;
text-align: center;
@oguzhanozcelik
oguzhanozcelik / mustafa.py
Last active March 2, 2024 19:37
mustafa ile phyton dersi #1
import numpy as np
# X ve Y değerlerini oluştur
integer = 3
array1 = [2,3,4,9,9,9]
array2 = [1,2,3,4,5,6]
# X array tanımlıyoruz
X = np.random.randn(5, 6)
# X in mutlak değeri
{
event: "purchase",
gtm: {uniqueEventId: 117, start: 1687437603583},
ecommerce: {
transaction_id: 4810423599147,
shipping: 0,
value: 0,
tax: 0,
currency: "GBP",
items: [
<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({ ecommerce: null });
setTimeout(function (){
dataLayer.push({
event: "purchase",
ecommerce: {
transaction_id: {{ order.id }},
shipping: {{ order.shipping_price | money_without_currency }},
//Order Detail
curl -X GET "https://test-tr-nudeglass-com.myshopify.com/admin/api/2023-01/orders/4398381891717.json?fields=line_items" \
-H "X-Shopify-Access-Token: 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"
//Order Fulfilment Detail
curl -X GET "https://test-tr-nudeglass-com.myshopify.com/admin/api/2023-01/orders/4621831372933/fulfillments.json" \
-H "X-Shopify-Access-Token: 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"
//Order fullfilment detail to take fulfillment_order_id
curl -X GET "https://test-tr-nudeglass-com.myshopify.com/admin/api/2023-01/orders/4398381891717/fulfillment_orders.json" \
{"point_campaign_prefix":"CMP-23187-Y5T8R7","urls":{"offers_url":"http://apipreprod.qclub.com/api/Retailer/GetCustomerByCode","cancel_url":"http://apipreprod.qclub.com/api/Retailer/CancelByProduct","pay_url":"https://api.zubizu.com/api/Retailer/RegisterPaidCheck"},"auth":{"merchant_id":"kikomilanoweb","api_key":"DMSEntegrasyon","station_id":"1"},"klass":"omnishop.promotions.backend.zubizu.service.ZubizuProvider","use_misc_product":true,"misc_product_sku":"ZBZ01"
}
@oguzhanozcelik
oguzhanozcelik / Colorful Console & Table
Created March 31, 2023 17:11
Send data and type to see console colorful.
function colorFull (data, type = '') {
if (type === 'table') {
console.table(data);
} else {
console.log("\x1b[33m data", data + " \x1b[0m");
}
}
{% capture email_title %}Thank you for your purchase! {% endcapture %}
{% capture email_body %}
{% if requires_shipping %}
{% case delivery_method %}
{% when 'pick-up' %}
You’ll receive an email when your order is ready for pickup.
{% when 'local' %}
Hi {{ customer.first_name }}, we're getting your order ready for delivery.
{% else %}
Hi {{ customer.first_name }}, we're getting your order ready to be shipped. We will notify you when it has been sent.