Skip to content

Instantly share code, notes, and snippets.

View waterswv's full-sized avatar
🍂

Bryan Mierke waterswv

🍂
View GitHub Profile

Today I learned about...

  1. NextJS Routing

Detailed descriptions below

Things I'm curious about today:

  1. ...

Today I learned about...

  1. Algorithm Run Time Efficiency
  2. Asymptotic Notation
  3. Big Theta
  4. Big Omega
  5. Big O
  6. Rates of Growth ordering

Detailed descriptions below

Today I learned about...

  1. Node worker-threads experimental api
  2. Dug into web workers as an alternative, more mature option
  3. Additional spoofing of 'threading' in NodeJS

Detailed descriptions below

Things I'm curious about today:

  1. Websockets
  2. Memoization in React
  3. What are some uncommon HTML5 tags
@waterswv
waterswv / today-i-november-18-2019.md
Last active November 19, 2019 05:44
Today I...

Today I learned about...

  1. Did a refresher on Memoization
  2. Did a refresher on Server-Side-Rendering Importance
  3. Setup and installed TailwindCSS with NextJS

Detailed descriptions below

Things I'm curious about today:

  1. useMemo in React
  2. SPA design patterns; specifically Angular & React
  3. Breakpoints for sites

Today I learned about...

  1. Closures and how fundamental they are to mastering Javascript.
  2. Currying
  3. Did a refresh on Programming Paradigms
  4. NodeJS Error Types

Detailed descriptions below

Things I'm curious about today:

  1. Websockets
  2. Memoization in React
@waterswv
waterswv / referential-equality.js
Last active November 5, 2019 23:19
Referential Equality
// Here's a test on referential equality in Javascript.
1. {} === {} // false
const a = {}
2. a === a // true
/* So why does 1 evaluate to false but 2 evaluates to true?
The answer has to do with how Javascript creates and stores items in memory.
@waterswv
waterswv / reactConf2018.md
Last active July 3, 2019 05:17
React Conf 2018 Recap

Major Highlights:

  1. Introduction of Hooks - https://reactjs.org/docs/hooks-intro.html
  • a new feature proposal that lets you use state and other React features without writing a class. They’re currently in React v16.7.0-alpha and being discussed in an open RFC.
  • No Breaking changes & 100% opt-in with no plans to deprecate React Classes
  • Hooks Keynote by Sophie Alpert & Dan Abramov
  • Watch here
  1. Concurrent rendering in React - Code-Splitting with React.lazy & Suspense
  • One of the best talks of the conference
  • An opportunity to remove all of the isLoading ? : logic throughout your codebase.
@waterswv
waterswv / python challenge
Created April 18, 2018 18:48
Python SDK Challenge
#!/usr/bin/env python
from nylas import APIClient
import json
config = json.load(open('config.json'))
def main():
client = APIClient(config['NYLAS_APP_ID'], config['NYLAS_APP_SECRET'], config['NYLAS_ACCESS_TOKEN'])
message_arr = []
# Get 10 threads from lars@metafoo.de
@waterswv
waterswv / displayposthtml.js
Created February 9, 2018 01:59
HTML snippet for post with handlebars.js
<!-- Excerpts -->
<section id='sideposts'>
<ul class="divided">
{{# each sidePosts}}
<li>
<!-- Excerpt -->
<article class="box excerpt">
<header>
<span class="date">{{this.formattedDate}}</span>
<h3><a href="/{{this.slug}}">{{{this.postTitle}}}</a></h3>
@waterswv
waterswv / getby_id.js
Last active February 9, 2018 01:54
API get request by slug
app.get('/:id', function(req, res, next) {
db.Post.findById(req.params.post_id, function(err, mainPost) {
if (err){
console.log('Error', err);
}