- Catalina
- Big Sur
- Monterey
- Ventura
- Sonoma
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
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |
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
#https://gist.github.com/Chandler/fb7a070f52883849de35 SEE HERE | |
# MIT License | |
# Copyright (c) 2016 Chandler Abraham | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
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 fs from 'fs' | |
import { makeExecutableSchema } from 'graphql-tools' | |
import { graphql } from 'graphql' | |
// the actual resolvers | |
import resolvers from '../src/resolvers' | |
// the mock service | |
import mockMovieService from './mocks/mockMovieService' | |
// a nice structure for test cases | |
// found at https://hackernoon.com/extensive-graphql-testing-57e8760f1c25 |
I'm writing this quick post to respond to a recent twitter conversation where claims were made about the merits (or lack thereof) of transducers, as they relate to composing list comprehensions (map, filter).
For comparison sake throughout the rest of my post, below you'll find three (actually four!) implementations of a simple list operation demo:
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
Variables: | |
Avoid global variables: | |
Variables can be accessed in local scope or global scope. | |
Local and global variable with the same name => javascript will prioritize the local variable. | |
Local variables are deleted once the local execution context is complete. Global variables | |
References | |
Use const or let for references | |
Avoid using var (https://developer.mozilla.org/en-US/docs/Glossary/Hoisting) | |