Skip to content

Instantly share code, notes, and snippets.

View m4har's full-sized avatar
💭
i like food

Mahardika m4har

💭
i like food
View GitHub Profile
@m4har
m4har / keybase.md
Created March 9, 2020 01:59
keybase.md

Keybase proof

I hereby claim:

  • I am m4har on github.
  • I am m4har (https://keybase.io/m4har) on keybase.
  • I have a public key ASBpHN18TN-QB7ae8xvIQzEW8KFz0YlQWdWmapPUtmosqAo

To claim this, I am signing this object:

@m4har
m4har / get.json
Created April 20, 2020 01:35
test json
{
"status":"ok"
}
@m4har
m4har / index.js
Created May 3, 2020 13:47
express passportjs facebook google
const express = require("express");
const bodyParser = require("body-parser");
const session = require("express-session");
const facebookStrategy = require("passport-facebook").Strategy;
const googleStrategy = require("passport-google-oauth20").Strategy;
const passport = require("passport");
const cors = require("cors");
const port = process.env.PORT || "3000";
//Initiate our app
@m4har
m4har / App.js
Created May 4, 2020 13:03
react native auth passportjs facebook google
import React, {useEffect, useState} from 'react';
import {
View,
Button,
Linking,
Alert,
Platform,
Image,
Text,
} from 'react-native';
@m4har
m4har / coverage
Last active July 22, 2021 07:28
coverage starter minimal nextjs
{"schemaVersion":1,"label":"Test Coverage","message":"100","color":"green","namedLogo":"jest"}