Skip to content

Instantly share code, notes, and snippets.

🏫
School time

Kenny kcomain

🏫
School time
Block or report user

Report or block kcomain

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
@kcomain
kcomain / gist:21a0e27462ee1d0dbc57c3e9ceebdadb
Created May 25, 2019 — forked from solenoid/gist:1372386
javascript ObjectId generator
View gist:21a0e27462ee1d0dbc57c3e9ceebdadb
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();
};
@kcomain
kcomain / index.html
Last active Mar 7, 2019
Hangman// source https://jsbin.com/mavito // original author Kenny Cheung, Steve Munro, PLKSHS ICT team
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Hangman</title>
View index.html
<!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";
View index.html
<!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";
You can’t perform that action at this time.