This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import Head from 'next/head' | |
import { ApolloProvider } from '@apollo/react-hooks' | |
import { ApolloClient } from 'apollo-client' | |
import { InMemoryCache, IntrospectionFragmentMatcher } from 'apollo-cache-inmemory' | |
import { createHttpLink } from 'apollo-link-http'; | |
import { setContext } from 'apollo-link-context'; | |
import fetch from 'isomorphic-unfetch' | |
import introspectionQueryResultData from '../fragmentTypes.json' | |
import querystring from 'querystring' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include ShopifyAPI; ShopifyAPI::Base.api_version = '2020-01' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the docker docs missing this copy command for the cli completition | |
curl -L https://raw.githubusercontent.com/docker/cli/c6a7046674293c3004209072cc6b2e08ba2805cb/contrib/completion/zsh/_docker > ~/.zsh/completion/_docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.logger = Logger.new(STDOUT) | |
Rails.logger.level = Logger::DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: WP Selectagram | |
Plugin URI: | |
Description: Selectagram on wp | |
Version: 1.0 | |
Author: Kai Rautenberg | |
Author URI: http://www.selectagram.com | |
License: GPL2 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# part of config/enviroment.rb | |
... | |
Rails::Initializer.run do |config| | |
# Load model files from sub folders | |
config.load_paths += Dir["#{RAILS_ROOT}/app/models/*"].find_all { |f| File.stat(f).directory? } | |
# Load middleware - initially used by flash-session-hack | |
config.load_paths << "#{RAILS_ROOT}/app/middleware" |