Skip to content

Instantly share code, notes, and snippets.

@adventuretocode
adventuretocode / cors.nginxconf
Created December 11, 2023 10:48 — forked from pauloricardomg/cors.nginxconf
Nginx configuration for CORS-enabled HTTPS proxy with origin white-list defined by a simple regex
#
# Acts as a nginx HTTPS proxy server
# enabling CORS only to domains matched by regex
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/
#
# Based on:
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html
# * http://enable-cors.org/server_nginx.html
#
server {
@adventuretocode
adventuretocode / gist:f01275c0b1df98a4346e4d60ff58035a
Created September 8, 2023 12:27
Shopify polaris - app - index filter with index table demo
import {
TextField,
IndexTable,
LegacyCard,
IndexFilters,
useSetIndexFiltersMode,
useIndexResourceState,
Text,
ChoiceList,
RangeSlider,