Skip to content

Instantly share code, notes, and snippets.

Martin Lehmann theneva

Block or report user

Report or block theneva

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mistborn-mongoose.js
const mongoose = require('mongoose')
mongoose.connect(
'mongodb://localhost/test',
{ useMongoClient: true },
err => {
const bookSchema = new mongoose.Schema({
title: { type: String, required: true },
});
View Abbreviations
JPE Java Professional Edition
J2EE Java 2 Platform Enterprise Edition
JEE Java Enterprise Edition
J2SE Java 2 Platform, Standard Edition
EJB Enterprise JavaBean
MDB Message-Driven Bean
JAR Java ARchive
WAR Web ARchive
EAR Enterprise ARchive
WS Web Service
@theneva
theneva / gradecalc.html
Created Nov 20, 2013
Average grade calculator (without support for ECTS).
View gradecalc.html
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="bootstrap.min.css" type="text/css" />
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.grade').focus();
$('input').keypress(function(event) {
if (event.which == 13) {
You can’t perform that action at this time.