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
<!DOCTYPE html> | |
<head> | |
<title>I am a page</title> | |
<style> | |
.closed { | |
display: none; | |
} | |
.hide_content>ul { |
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
|
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 fetch from 'isomorphic-unfetch'; | |
import { pipe } from 'fp-ts/lib/function'; | |
import * as TE from 'fp-ts/lib/TaskEither'; | |
import * as E from 'fp-ts/lib/Either'; | |
import * as O from 'fp-ts/lib/Option'; | |
export const url = 'https://swapi.dev/api/planets/1/'; | |
export const log = <A>(x: A) => { | |
console.info(x); |
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
/* eslint-disable functional/functional-parameters */ | |
/** | |
* This code was written to be followed along with from top to bottom. It is meant to show the value | |
* of having a functional interface, with object arity of one and controlling what goes into functions interface | |
* very strict fashion | |
* | |
* TODO: how do we make this chain easily? Commonality in needs and dependence inversion | |
* TODO: What if we need to add an over arching dependency? | |
* | |
* Why do i like function declaraitons more than class in stantiations? |
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
version: '3.1' | |
services: | |
redis: | |
image: "redis:alpine" | |
ports: | |
- '6379:6379' | |
networks: | |
- backend | |
mongo: | |
image: mongo |
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
const fsx = require("fs-extra"); | |
const glob = require("glob"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const mm = require("minimatch"); | |
const getIgnoredFiles = (path) => { | |
const str = fsx.readFileSync(path).toString(); | |
const lines = str | |
.split(/\r?\n/) |
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
const { readFileSync, readdirSync } = require('fs'); | |
const fsx = require('fs-extra'); | |
const { promisify } = require('util'); | |
const lernaConfig = require('./lerna.json'); | |
/** | |
* grabs the lerna config, and then does a deep search of all packages and hard copies | |
* the node_modules that need to be | |
*/ | |
const main = async () => { |
- TypeORM seems to have some opinionations that are pretty unfamiliar. While it may seem advantageous to use them, it's not advantageous to from a 3 year view. When you build a DB it should always be prepared for inevitable change. It's not unforeseeable that we at some point get integrated into a bigger company.
- PostgreSQL has some awesome new features(plugins, jsonb aggregators); however, it's always my best practice to right as I possibly can to ther SQL-92 spec(SQL - ANSI (American National Standards Institute) SQL (Standard|Reference|Specification) - SQL (92|99|2003|2011))
- SQL-92 is primarily what most base database connectors connect to. There are subtle differences to each kind of architecture for example:
- mssql TOP:
SELECT TOP 10 * FROM users;
- mssql TOP:
- Postgres LIMIT
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
const v = require('debug')('verbose'); | |
const e = require('debug')('error'); | |
const w = require('debug')('warning'); | |
const buildStack = () => { | |
const depth = 3; | |
if (!this.stackIs) { | |
Object.defineProperty(this, 'stackIs', { | |
get: function() { | |
const orig = Error.prepareStackTrace; |
NewerOlder