Skip to content

Instantly share code, notes, and snippets.

View StaticSpark's full-sized avatar
🎯
Focusing

Cullen Bond StaticSpark

🎯
Focusing
View GitHub Profile
@StaticSpark
StaticSpark / InterviewList.md
Last active February 28, 2023 05:28 — forked from PurpleBooth/README-Template.md
A guide for React and Redux interviews.

Interviews

Tuesday 1/21/20

Wednesday 1/22/20

  • Paul from GAP (SF)
  • Laurend from StormWind (Remote)
@StaticSpark
StaticSpark / mongoose-connection-options.js
Created June 28, 2017 02:00
mLab recommended mongoose connection options. More supported connections for the underlying Node Native driver can be found here: http://mongodb.github.io/node-mongodb-native/
// mongoose 4.3.x
var mongoose = require('mongoose');
/*
* Mongoose by default sets the auto_reconnect option to true.
* We recommend setting socket options at both the server and replica set level.
* We recommend a 30 second connection timeout because it allows for
* plenty of time in most operating environments.
*/
var options = { server: { socketOptions: { keepAlive: 300000, connectTimeoutMS: 30000 } },
@StaticSpark
StaticSpark / api-json.playground
Created October 11, 2015 09:43 — forked from jeffdonthemic/api-json.playground
Swift API call & parsing JSON
import Foundation
import XCPlayground
XCPSetExecutionShouldContinueIndefinitely()
/**
* Paste all the code from the following file
- https://github.com/lingoer/SwiftyJSON/blob/master/SwiftyJSON/SwiftyJSON.swift
**/