Skip to content

Instantly share code, notes, and snippets.

View geoffmomin's full-sized avatar

Geoffrey Momin geoffmomin

  • Toronto, Canada
View GitHub Profile
@geoffmomin
geoffmomin / lf30_editor_FAU2vR.json
Created August 30, 2020 02:48
HelloMe Lottie Eyes
{"v":"5.6.10","fr":25,"ip":17,"op":56,"w":1920,"h":1080,"nm":"Oscar Icon mit Auge rechts","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"Einstellungsebene 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":11,"s":[70]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":15,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":57,"s":[100]},{"t":61,"s":[70]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[960,540,0],"ix":2},"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.869,0.869,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0]},"t":11,"s":[0,0,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,1]},"o":{"x":[0.167,0.167,0.167],"y":[-1.633,-1.633,0]},"t":15,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":16,"s":[98,98,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x"
@geoffmomin
geoffmomin / index.js
Created October 30, 2019 02:54 — forked from vishal-android-freak/index.js
Firebase cloud function
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
const DialogflowApp = require('actions-on-google').DialogflowApp;
exports.receiveAssistantRequests = functions.https.onRequest((request, response) => {
const app = new DialogflowApp({request: request, response: response});
#include <FirebaseArduino.h>
#include <ESP8266WiFi.h>
// Set these to run example.
#define WIFI_SSID "YOUR_WIFI_SSID"
#define WIFI_PASSWORD "YOUR_WIFI_PASSWORD"
#define FIREBASE_DB_URL "your_firebase_url"
#define FIREBASE_DB_SECRET_KEY "your_database_secret_key"
void setup() {
Serial.begin(115200);
@geoffmomin
geoffmomin / index.js
Created October 9, 2019 06:36 — forked from pawelgagorowski/index.js
error 401 - no authorization
'use strict';
const AWS = require('aws-sdk');
AWS.config.update({ region: 'us-east-1' })
const { dialogflow, SignIn } = require('actions-on-google');
const app = dialogflow();
const request = require('request-promise')
const rp = require('request-promise');
@geoffmomin
geoffmomin / hr-attrition-with-ml.ipynb
Created December 9, 2018 23:39
HR-Attrition-with-ML.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@geoffmomin
geoffmomin / LBF vs CANDU.m
Created April 25, 2016 02:15
This simple MATLAB script evaluates the macroscopic cross section of fission for fuels containing uranium, oxygen, and zirconium. Enrichment percent can be defined as needed.
% CANDU UO2 VERSUS LIGHTBRIDGE U-50Zr
% This script evaluates the macroscopic cross section of fission for fuels
% containing uranium, oxygen, and zirconium. Enrichment percent can be
% defined as needed.
% Developed by Geoffrey Momin
% This version does not require Data Table.csv
% ********Updates********
% March 1, 2016 - 0.1 - Release
% - 0.2 - Prompts added to allow user fuel modification
% - 0.3 - Automatically solves for UO2, U-50Zr or Custom mix
@geoffmomin
geoffmomin / Character Prompt
Created February 21, 2015 21:02
Prompt generator for Character Name and Personality Traits
numPrompts=20;
promptArrayFirst = new Array(numPrompts);
promptArrayFirst[0]="\"Define VAG.\""
promptArrayFirst[1]="\"Honeysuckle\""
promptArrayFirst[2]="\"Pablo\""
promptArrayFirst[3]="\"Giovanni\""
promptArrayFirst[4]="\"Lola\""
promptArrayFirst[5]="\"Moonbeam\""
promptArrayFirst[6]="\"Jeremiah\""
promptArrayFirst[7]="\"Tootsie\""
@geoffmomin
geoffmomin / flex muscle emoticon.txt
Created May 11, 2014 01:34
Flex Muscle Emoticon in Facebook
Just copy and paste this square: 💪 to make a flexing emoticon in facebook.
@geoffmomin
geoffmomin / cornify.html
Created December 6, 2013 19:25
Add Unicorns to your Website. Just copy the code and paste it to your website's HTML.
<a href="http://www.cornify.com" onclick="cornify_add();return false;"><img src="http://www.cornify.com/assets/cornify.gif" width="61" height="16" border="0" alt="Cornify" /></a><script type="text/javascript" src="http://www.cornify.com/js/cornify.js"></script>
@geoffmomin
geoffmomin / notepadapp.html
Created May 8, 2013 19:08
SPAN: Simple Persistent Application for Note-taking. Download it and use it for whatever you want.
<!DOCTYPE html> <!--Sets the document type to HTML-->
<html> <!--Now we begin describing the web page-->
<script> <!-- We are using inline javascript. That is Javascript inside HTML //-->
var note, html, timeout; <!-- Set the variables //-->
window.addEventListener('load', function() {
note = document.getElementById('note');
html = document.getElementsByTagName('html')[0];
html.addEventListener('keyup', function(ev) {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(saveNote, 100);