Skip to content

Instantly share code, notes, and snippets.

🎯
100% Focusing

Glenn Reyes glennreyes

🎯
100% Focusing
Block or report user

Report or block glennreyes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@glennreyes
glennreyes / workshop-graphql.md
Last active May 17, 2019
GraphQL for JavaScript developers
View workshop-graphql.md

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 Jul 2, 2019
React and GraphQL – From zero to production
View workshop-react-graphql.md

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
View fn-termination.js
const say = (str) => {
let result = str;
const next = (nextStr) => {
if (!nextStr) return result
result += ` ${nextStr}`;
return next
}
View gql-example.js
import { gql } from 'apollo-tag';
const ArticleQuery = gql`
query ArticleQuery {
articles {
id
title
}
}
`;
@glennreyes
glennreyes / config.cfg
Created Feb 2, 2018
My very ancient Counter-Strike 1.6 config files
View config.cfg
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 / kill-port.sh
Created Dec 18, 2017
Kill process on port 4000
View kill-port.sh
lsof -t -i tcp:4000 | xargs kill
@glennreyes
glennreyes / webpack.config.js
Created Oct 21, 2017
Disable Code Splitting in webpack
View webpack.config.js
module.exports = {
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
],
};
@glennreyes
glennreyes / razzle.config.js
Created Oct 21, 2017
Code Splitting disabled on server
View razzle.config.js
module.exports = {
modify: (config, { target }) => {
if (target === 'node') {
return {
...config,
plugins: [
...config.plugins,
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
@glennreyes
glennreyes / webpack.config.js
Last active Jan 16, 2019
How to disable Code Splitting in webpack
View webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.(js|jsx)$/,
loader: require.resolve('babel-loader'),
include: ['src'],
options: {
presets: [
'dynamic-import-node',
@glennreyes
glennreyes / create-favicon.sh
Created Aug 17, 2017
Creates a favicon.ico with ImageMagick
View create-favicon.sh
# Creates a favicon.ico with ImageMagick
convert favicon.png -define icon:auto-resize=256,192,128,64,48,32,16 favicon.ico
You can’t perform that action at this time.