Skip to content

Instantly share code, notes, and snippets.

View bitwhys's full-sized avatar
⌨️
Building

George Bockari bitwhys

⌨️
Building
View GitHub Profile
wesbos() {
npx install-peerdeps --dev eslint-config-wesbos
echo "{\"extends\": [\"wesbos\"],\"rules\": {\"no-console\": 2,\"prettier/prettier\":[\"error\",{\"trailingComma\": \"all\",\"semi\": false,\"singleQuote\": true,\"printWidth\": 80,\"tabWidth\": 2}]}}" >> .eslintrc
}
@timsuchanek
timsuchanek / TestClient.ts
Created April 13, 2018 16:39
Yoga Testing
import * as http from 'http'
import * as https from 'https'
import { GraphQLClient } from 'graphql-request'
const debug = require('debug')('TestClient')
import { GraphQLServer } from 'graphql-yoga'
import { server } from '../server'
export default class TestClient {
app: GraphQLServer
server: http.Server

About

I came up with these exercises for someone learning to code. But I thought more people might want to do them.

I like functional programming, so the exercises asks you to make functions that are common in functional programming. If you have learned a language, but want to learn more about functional programming, these exercises are for you.

The exercises were originally meant for Python, but doing them in JavaScript, Ruby or any Lisp (Scheme, Clojure, …) should work just as well. It should also be possible to do them in Java and C#, but it will probably not be as easy.

Most of the functions you are asked to create already exist in functional languages, or libraries for most languages. But it can be educational to implement them yourself.

@joyrexus
joyrexus / README.md
Last active June 27, 2024 15:39
Node.js streams demystified

A quick overview of the node.js streams interface with basic examples.

This is based on @brycebaril's presentation, Node.js Streams2 Demystified

Overview

Streams are a first-class construct in Node.js for handling data.

Think of them as as lazy evaluation applied to data.