Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| // interface for Window | |
| interface Window { | |
| // add some stuff here | |
| } | |
| let someMockWindowObject = { | |
| // add some mock functionality here | |
| }; |
| package com.javacodegeeks.enterprise.rest.jersey; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import javax.ws.rs.Consumes; | |
| import javax.ws.rs.POST; | |
| import javax.ws.rs.Path; |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| var express = require('express') | |
| , mongoskin = require('mongoskin') | |
| var app = express() | |
| app.use(express.bodyParser()) | |
| var db = mongoskin.db('localhost:27017/test', {safe:true}); | |
| app.param('collectionName', function(req, res, next, collectionName){ | |
| req.collection = db.collection(collectionName) |
| // Q sample by Jeff Cogswell | |
| /*=========== | |
| We want to call these three functions in sequence, one after the other: | |
| First we want to call one, which initiates an ajax call. Once that | |
| ajax call is complete, we want to call two. Once two's ajax call is | |
| complete, we want to call three. | |
| BUT, we don't want to just call our three functions in sequence, as this quick |