Skip to content

Instantly share code, notes, and snippets.

View glennreyes's full-sized avatar
🎵

Glenn Reyes glennreyes

🎵
View GitHub Profile
@glennreyes
glennreyes / razzle.config.js
Created October 21, 2017 17:09
Code Splitting disabled on server
module.exports = {
modify: (config, { target }) => {
if (target === 'node') {
return {
...config,
plugins: [
...config.plugins,
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
@glennreyes
glennreyes / webpack.config.js
Created October 21, 2017 17:12
Disable Code Splitting in webpack
module.exports = {
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
],
};
@glennreyes
glennreyes / kill-port.sh
Created December 18, 2017 13:43
Kill process on port 4000
lsof -t -i tcp:4000 | xargs kill
@glennreyes
glennreyes / config.cfg
Created February 2, 2018 14:35
My very ancient Counter-Strike 1.6 config files
unbindall
bind "TAB" "+showscores"
bind "ESCAPE" "cancelselect"
bind "SPACE" "+jump"
bind "," "buyammo1"
bind "." "buyammo2"
bind "0" "slot10"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
@glennreyes
glennreyes / gql-example.js
Created September 10, 2018 17:54
GraphQL import
import { gql } from 'apollo-tag';
const ArticleQuery = gql`
query ArticleQuery {
articles {
id
title
}
}
`;
const say = (str) => {
let result = str;
const next = (nextStr) => {
if (!nextStr) return result
result += ` ${nextStr}`;
return next
}
@glennreyes
glennreyes / webpack.config.js
Last active January 16, 2019 03:22
How to disable Code Splitting in webpack
module.exports = {
module: {
rules: [
{
test: /\.(js|jsx)$/,
loader: require.resolve('babel-loader'),
include: ['src'],
options: {
presets: [
'dynamic-import-node',
@glennreyes
glennreyes / workshop-graphql.md
Last active May 17, 2019 09:04
GraphQL for JavaScript developers

GraphQL for JavaScript developers

In this workshop we will dive into GraphQL and build a complete GraphQL backend in JavaScript. This workshop is targeted to engineers who want to learn to build a complete GraphQL server.

Topics covered

  • Fundamentals & GraphQL core concepts
  • Setting up the GraphQL Server
  • Exploring the GraphQL API
  • Working with the SDL (Schema Defintion Language)
@glennreyes
glennreyes / workshop-react-graphql.md
Last active July 2, 2019 12:29
React and GraphQL – From zero to production

React and GraphQL – From zero to production

In this workshop we will build a Twitter Lite React app with a GraphQL backend. This workshop is targeted to engineers who want to learn to build a complete and full stack React app with GraphQL.

Topics covered

  • Fundamentals & GraphQL core concepts
  • Setting up the GraphQL Server
  • Exploring the GraphQL API
  • Setting up the GraphQL Client
# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Homebrew packages
brew install git
brew install java
brew install mackup