Skip to content

Instantly share code, notes, and snippets.

View Jonathancollinet's full-sized avatar

Jonathan Collinet Jonathancollinet

View GitHub Profile
const msgpack = require('msgpack'),
os = require('os');
for(let r = 1; r < 4; r++) {
console.log("\nRun #" + r + ":");
const obj = {'abcdef' : 1, 'qqq' : 13, '19' : [1, 2, 3, 4]};
let start = Date.now();
for(let i = 0; i < 500000; i++) {
JSON.parse(JSON.stringify(obj));
/*
http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small,
strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label,
legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure,
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script src="index.js"></script>
</body>
const express = require('express'),
app = express(),
mongoose = require('mongoose')
mongoose.connect("mongodb://localhost/test")
const userSchema = new mongoose.Schema({
username: { type: String, required: true, unique: true },
password: { type: String, required: true },
email: { type: String, required: true },
const express = require("express"),
app = express(),
bodyParser = require('body-parser'),
users = require('../mocks/users.json').users,
notes = require('../mocks/notes.json').notes
app.use(function (req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
<!DOCTYPE html>
<html lang="en" ng-app="myApp">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
toto test
toto test
toto test
toto test