Skip to content

Instantly share code, notes, and snippets.

@rtteal
rtteal / gist:c05c27aa0ea3be1183a8
Created May 7, 2015
npm install bcrypt error
View gist:c05c27aa0ea3be1183a8
> npm install --save bcrypt
npm WARN package.json todo-demo@ No repository field.
-
> bcrypt@0.8.3 install C:\Users\rtteal\Documents\GitHub\nodejs-authenticator-demo\node_modules\bcrypt
> node-gyp rebuild
C:\Users\rtteal\Documents\GitHub\nodejs-authenticator-demo\node_modules\bcrypt
> node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
View gist:4a15ad6c9174c0e36758
Error: req.flash() requires sessions
at Error (<anonymous>)
at IncomingMessage._flash [as flash] (/code/node/nodejs-authenticator-starter/node_modules/connect-flash/lib/flash.js:60:41)
at app.use.bodyParser.urlencoded.extended (/code/node/nodejs-authenticator-starter/index.js:34:43)
at Layer.handle [as handle_request] (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/layer.js:82:5)
at next (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/route.js:110:13)
at Route.dispatch (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/route.js:91:3)
at Layer.handle [as handle_request] (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/layer.js:82:5)
at /code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:267:22
at Function.proto.process_params (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:321:12)
@rtteal
rtteal / Fibonacci.java
Created Jul 19, 2015
A better way to recursively solve the Fibonacci sequence
View Fibonacci.java
package recursion;
import java.util.function.*;
import static java.lang.System.*;
class Fibonacci {
static long recursions;
public static void main(String[] args) {
for (int i = 30; i < 50; i++) {
View keybase.md

Keybase proof

I hereby claim:

  • I am rtteal on github.
  • I am rtteal (https://keybase.io/rtteal) on keybase.
  • I have a public key ASAGg2b1b8AHAS1gCQwNRJOcq7ddmd6DbvqO4jGjeMK7GAo

To claim this, I am signing this object: