Skip to content

Instantly share code, notes, and snippets.

View theneva's full-sized avatar

Martin Lehmann theneva

View GitHub Profile
const mongoose = require('mongoose')
mongoose.connect(
'mongodb://localhost/test',
{ useMongoClient: true },
err => {
const bookSchema = new mongoose.Schema({
title: { type: String, required: true },
});
@theneva
theneva / gradecalc.html
Created November 20, 2013 15:48
Average grade calculator (without support for ECTS).
<!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) {
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