Skip to content

Instantly share code, notes, and snippets.

Avatar
💻

Ndibe Raymond Olisaemeka NdibeRaymond

💻
View GitHub Profile
@NdibeRaymond
NdibeRaymond / fuse_js_based_text_search_code_sample.js
Created Dec 10, 2019
This code illustrates how to use fuse.js in cloud functions
View fuse_js_based_text_search_code_sample.js
const Fuse = require("fuse.js");
// The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers.
const functions = require('firebase-functions');
// The Firebase Admin SDK to access the Firebase Realtime Database.
const admin = require('firebase-admin');
admin.initializeApp();
@NdibeRaymond
NdibeRaymond / DSF_slcsp_assignment_sourcecode.py
Last active Jul 2, 2019
# NOTE: TO RUN THIS SCRIPT, ENSURE THAT ALL THE REQUIRED FILES ARE IN THE SAME DIRECTORY AS THIS SCRIPT, # TO RUN OPEN YOUR COMMAND LINE AND CD TO THE DIRECTORY THAT CONTAINS THE FILES, THEN TYPE "python slcsp_assignment_sourcecode.py"NOTE: YOU NEED A WORKING VERSION OF PYTHON INSTALLED ON YOUR MACHING TO RUN THIS SCRIPT
View DSF_slcsp_assignment_sourcecode.py
# NOTE: TO RUN THIS SCRIPT, ENSURE THAT ALL THE REQUIRED FILES ARE IN THE SAME DIRECTORY AS THIS SCRIPT,
# TO RUN OPEN YOUR COMMAND LINE AND CD TO THE DIRECTORY THAT CONTAINS THE FILES, THEN TYPE "python slcsp_assignment_sourcecode.py"
# NOTE: YOU NEED A WORKING VERSION OF PYTHON INSTALLED ON YOUR MACHING TO RUN THIS SCRIPT
import csv
def get_all_slcsp():
# /******load the csv files into lists***************/