Skip to content

Instantly share code, notes, and snippets.

View laurenzlong's full-sized avatar

Lauren Long laurenzlong

View GitHub Profile
@laurenzlong
laurenzlong / index.js
Last active October 4, 2021 04:55
Firebase Cloud Messaging + Cloud Functions
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
exports.sendLeaderboardMesssage = functions
.database
.ref('/leaderboard/{position}')
.onUpdate((change) => {
const oldPlayer = change.before.val();
@laurenzlong
laurenzlong / game
Created July 10, 2015 02:37
Tic Tac Toe game
<html>
<head>
<title>Tic Tac Toe</title>
<link rel="stylesheet" type="text/css" href="gameStyle.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="gameScript.js"></script>
</head>
<body>
<table id='board'>