Skip to content

Instantly share code, notes, and snippets.

Avatar

Ali Hassan malihassan20

View GitHub Profile
@malihassan20
malihassan20 / user_subscription.json
Created Mar 5, 2020
/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
View user_subscription.json
{
"data": {
"id": "117",
"type": "subscription",
"attributes": {
"delivery_weekday": 4,
"delivery_interval": 604800,
"delivery_timeframe_id": 1,
"display_volume": "€5,61",
"state": "active",
View htaccess for browser caching
# 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
View Install and Configure LAMP Stack on Ubuntu
Updating the Package List
---> sudo apt-get update
Installing Apache
---> sudo apt-get install apache2
@malihassan20
malihassan20 / Demo.js
Last active Jan 15, 2018
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.
View Demo.js
import React, { Component } from "react";
import Modal from "./Modal";
class Demo extends Component {
constructor(props) {
super(props);
this.state = { isOpen: false };
}
You can’t perform that action at this time.