Skip to content

Instantly share code, notes, and snippets.

View malihassan20's full-sized avatar

Ali Hassan malihassan20

View GitHub Profile
@malihassan20
malihassan20 / user_subscription.json
Created March 5, 2020 09:16
/api/v2/storefront/account/subscription?include=subscription_line_items,next_delivery_order,subscription_line_items.variant.product.images,subscription_line_items.variant.product.taxons,next_delivery_order.line_items.variant,next_delivery_order.line_items.variant.product.images,next_delivery_order.line_items.variant.product.taxons
{
"data": {
"id": "117",
"type": "subscription",
"attributes": {
"delivery_weekday": 4,
"delivery_interval": 604800,
"delivery_timeframe_id": 1,
"display_volume": "€5,61",
"state": "active",
# Enable Compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
Updating the Package List
---> sudo apt-get update
Installing Apache
---> sudo apt-get install apache2
@malihassan20
malihassan20 / Demo.js
Last active January 15, 2018 22:26
Responsive React Modal Component which renders the content passed to it. It have the ability to accept class name and inline styles for both modal and its overlay.
import React, { Component } from "react";
import Modal from "./Modal";
class Demo extends Component {
constructor(props) {
super(props);
this.state = { isOpen: false };
}