Skip to content

Instantly share code, notes, and snippets.

@terary
terary / nodes-circular-reference.json
Created December 11, 2023 03:36
Node Tree With Circular Reference
[
{
"nodeId": "148456734",
"parentId": "",
"nodeContent": {
"nodeId": "148456734",
"nodeType": "FsVirtualRootNode",
"fieldId": "148456734",
"label": ["vRoot", "(A) A->B->C-D->E->A (logi...", " if all"]
}
Social authentication strategies
A) Firebase
Firstly – Firebase requires third-party cookies if self hosting. Perhaps this issue is mitigated by hosting with Firebase. The error messages do not necessarily reveal the issues are related to third party cookies. Be prepared to do some bug hunting.
I recommend anybody considering Firebase solutions review their requirements in regard to third-party cookies. Also review when exactly Firebase requires third-party cookies (self hosting, other service providers – sms, Facebook, GitHub, etc).
Secondly – There seems to be a lack of simple examples. Most examples I reviewed seem to utilize a few Firebase services coupled together. Facebook Authentication, Firebase Database, Twitter Auth, etc. The examples are nicely done but not concerned with simplicity.
{
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc"]
},
"source": {
"include": ["src"],
"includePattern": ".js$",
"excludePattern": "(node_modules/|docs)"
},
@terary
terary / readme
Last active January 1, 2019 12:22
New Node Project
#inspired by:
#https://www.wolfe.id.au/2014/02/01/getting-a-new-node-project-started-with-npm/
# Thank you Mark Wolfe
>>>make foreign repository '[project name].git'
$ mkdir [project name]
$ cd [project name]
$ git init
$ git remote add origin ssh://user@server:port/dir/to/[project name].git # (from 'make foreign repo')
$ wget https://gist.githubusercontent.com/terary/6f54a250f08d68c59bd33e781a8e7614/raw/4554fa9364705139be4b0603104da4b53301f2bb/Make
@terary
terary / .gitignore
Created January 1, 2019 11:38
New Node project git ignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
@terary
terary / Makefile
Last active January 1, 2019 12:31
New node project helper Make File
REPORTER = spec
all: jshint test
test:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter $(REPORTER) --timeout 3000
jshint:
jshint lib examples test index.js
{
paths:{
orgID: {
name: "orgID",
isSearchable:true,
isProjectable: false,
isUpdatable: false,
isInsertable: true,
isRequired: true ,
required:true,
@terary
terary / organizations.test.schema.json
Last active October 26, 2018 08:18
Test Schema Organizations (JSON) (V 0.1)
{
"paths": {
"orgID": {
"type": "String",
"isSearchable": true,
"isRequired": true,
"isInsertable": true,
"isUpdatable": false,
"required": true,
"maxlength": 50,
@terary
terary / something.txt
Created July 22, 2017 12:58
Some Gist
Here is something