Skip to content

Instantly share code, notes, and snippets.

View mfrazie2's full-sized avatar
⚰️

Mike Frazier mfrazie2

⚰️
View GitHub Profile
@joepie91
joepie91 / promises-faq.md
Last active June 25, 2023 09:02
The Promises FAQ - addressing the most common questions and misconceptions about Promises.

23 Free Javascript books

This is a gist based on the list originally posted [here][A]. All credit to the original author(s).

  • [Eloquent JavaScript by Marijn Haverbeke][1]
  • [Exploring ES6 by Dr. Axel Rauschmayer][2]
  • [Google JavaScript Style Guide][3]
  • [Human JavaScript by Henrik Joreteg][4]
  • [JavaScript Allongé by Reginald Braithwaite][5]
  • [JavaScript Enlightenment by Cody Lindley][6]
@vasanthk
vasanthk / System Design.md
Last active September 19, 2024 19:42
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@raorao
raorao / hackery.md
Last active July 5, 2018 18:51
valueOf hackery.
obj = (function() {
  currentValue = 7
  return {
    valueOf: function() { return currentValue = currentValue+2 }
  }
})()

(obj < 10) && (obj > 10) //true
@staltz
staltz / introrx.md
Last active September 20, 2024 10:10
The introduction to Reactive Programming you've been missing
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@PaulMougel
PaulMougel / client.js
Last active May 1, 2024 12:38
File upload in Node.js to an Express server, using streams
// node: v0.10.21
// request: 2.27.0
var request = require('request');
var fs = require('fs');
var r = request.post("http://server.com:3000/");
// See http://nodejs.org/api/stream.html#stream_new_stream_readable_options
// for more information about the highWaterMark
// Basically, this will make the stream emit smaller chunks of data (ie. more precise upload state)
var upload = fs.createReadStream('f.jpg', { highWaterMark: 500 });
@geksilla
geksilla / bootsrap_class_list
Last active April 29, 2023 03:59
Bootstrap css class list
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead