Skip to content

Instantly share code, notes, and snippets.

View KcPele's full-sized avatar
🏠
Working from home

Kc pele KcPele

🏠
Working from home
View GitHub Profile
@KcPele
KcPele / eslintrc.js
Created May 25, 2022 05:36 — forked from adrianhajdin/eslintrc.js
ESLint Configuration
// eslintrc.js
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
@KcPele
KcPele / graphql-cheat-sheet.md
Created June 11, 2022 13:11 — forked from jbritton/graphql-cheat-sheet.md
GraphQL Cheat Sheet

GraphQL Cheat Sheet

Overview

  • An alternative approach to RESTful APIs
  • Clients issue queries/mutations to read and update data
  • Clients can fetch only the entity fields that are required
  • GraphQL query syntax can express complex entity relations => nested objects
  • Mitigates the explosion of RESTful endpoints in scenarios where many different representations of an entity are needed
  • Graphiql is a query execution UI, also provides good documentation
#!/bin/bash
set -euo pipefail
# Directory setup
APP_DIR="${HOME}/Applications"
ICON_DIR="${HOME}/.local/share/icons"
DESKTOP_DIR="${HOME}/.local/share/applications"
BIN_DIR="${HOME}/.local/bin"