Skip to content

Instantly share code, notes, and snippets.

View soopyc's full-sized avatar
:electron:
remember atom

soopyc

:electron:
remember atom
  • Hong Kong
  • 20:06 (UTC +08:00)
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Hangman</title>
<style id="jsbin-css">
* {
font-family: "Courier New";
@soopyc
soopyc / gist:21a0e27462ee1d0dbc57c3e9ceebdadb
Created May 25, 2019 13:32 — forked from solenoid/gist:1372386
javascript ObjectId generator
var mongoObjectId = function () {
var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
return (Math.random() * 16 | 0).toString(16);
}).toLowerCase();
};