type Customer {
id: ID!
email: String!
}
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 sys | |
from itertools import chain | |
telepad = [ | |
["1"], | |
["2", "a", "b", "c"], | |
["3", "d", "e", "f"], | |
["4", "g", "h", "i" ], | |
["5", "j", "k", "l"], | |
["6", "m", "n", "o"], | |
["7", "p", "q", "r", "s"], |
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
"scripts": { | |
"start": "yarn start:css && react-scripts start", | |
"build": "yarn build:css && react-scripts build", | |
"test": "react-scripts test", | |
"eject": "react-scripts eject", | |
"start:css": "tailwindcss build src/css/tailwind.css -o src/css/main.css", | |
"build:css": "env NODE_ENV=production tailwindcss build src/css/tailwind.css -o src/css/main.css", | |
"watch:css": "tailwindcss build src/css/tailwind.css -o src/css/main.css --watch" | |
}, |
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
{:profiles | |
{:Default {:default true | |
:sim 50 | |
:delay 80 | |
:alone 120 | |
:held 70}} | |
:templates {:alfred "osascript -e 'tell application \"Alfred 4\" to run trigger \"%s\" in workflow \"%s\" with argument \"%s\"'" | |
:km "osascript -e 'tell application \"Keyboard Maestro Engine\" to do script \"%s\"'" | |
:open "open -a \"%s\"" | |
} |
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
#!/usr/bin/env python3 | |
"Generate all strings containing just ( and ) with parens balenced." | |
from itertools import count | |
def parens(): | |
def nested(x): | |
return ("(" * x) + (")" * x) if x > 0 else "" |
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
(function (history, trackingId, options) { | |
const generateId = () => { | |
return '_' + Math.random().toString(36).substr(2, 9); | |
}; | |
const getId = () => { | |
if (!localStorage.cid) { | |
localStorage.cid = generateId() | |
} | |
return localStorage.cid; | |
}; |
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
INTERSECTIONS = ["A 2", "A 3", "A 6", "B 4", "B 5", "C 1", "C 3", "D 1", "D 2", "D 4"] | |
def Letter(intersection): | |
return intersection.split()[0] | |
def Number(intersection): | |
return intersection.split()[1] |
This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.
It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.
permalink https://github.com/gatsbyjs/gatsby/blob/ffd8b2d691c995c760fe380769852bcdb26a2278/packages/gatsby/src/bootstrap/index.js
- open and validate gatsby-config (get-config-file.js)
- load plugins (load-plugins/index.js) from the list given in
gatsby-config.js
- onPreBootstrap: runs
onPreBootstrap
if it is implemented in any plugins, for example gatsby-plugin-typography. Receives handy [apiCallArgs](https://github.com/gatsbyjs/gatsby/blob/ffd8b2d691c995c760fe380769852bcdb26a2278/packages/gatsby/src/util
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
//const webpack = require("webpack"); | |
const _ = require("lodash"); | |
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin; | |
const path = require("path"); | |
const Promise = require("bluebird"); | |
const createPaginatedPostsPages = require("./gatsby-actions/createPaginatedPostsPages.js"); | |
const { createFilePath } = require(`gatsby-source-filesystem`); | |
exports.onCreateNode = ({ node, getNode, boundActionCreators }) => { |
NewerOlder