Skip to content

Instantly share code, notes, and snippets.

View DecisionNerd's full-sized avatar

David Spencer DecisionNerd

View GitHub Profile
@DecisionNerd
DecisionNerd / nb_datatables_mode.py
Created March 29, 2020 15:21
jupyter-datatables mode enable
# https://pypi.org/project/jupyter-datatables/
!pip install jupyter-datatables
from jupyter_datatables import init_datatables_mode
init_datatables_mode()
@DecisionNerd
DecisionNerd / neo4j.py
Created March 14, 2022 06:16 — forked from korakot/neo4j.py
Using Neo4j in Colab
# download 3.5.8 or neo4j-enterprise-4.0.0-alpha09mr02-unix
!curl https://neo4j.com/artifact.php?name=neo4j-community-3.5.8-unix.tar.gz -o neo4j.tar.gz
# decompress and rename
!tar -xf neo4j.tar.gz # or --strip-components=1
!mv neo4j-community-3.5.8 nj
# disable password, and start server
!sed -i '/#dbms.security.auth_enabled/s/^#//g' nj/conf/neo4j.conf
!nj/bin/neo4j start
@DecisionNerd
DecisionNerd / ChatGPTphoneAuth.vue
Last active January 20, 2023 02:17
generate a template and script in vue 3 using firebase/auth SDK version 9 signInWithPhoneNumber verifyRecaptcha. use tailwindcss. template has input for phone and input for otp code appears after submitting phone number.
<!-- Here is a template and script for a Vue 3 component that uses Firebase/Auth SDK version 9 to implement
phone number authentication with reCAPTCHA verification: -->
<template>
<div class="container mx-auto">
<form @submit.prevent="submitPhoneNumber" class="bg-white p-6 rounded-lg shadow-md">
<label class="block font-medium text-gray-700 mb-2">
Phone Number
</label>
<input
v-model="phoneNumber"