import NextAuth from 'next-auth'
import Providers from 'next-auth/providers'
export default NextAuth({
providers: [
Providers.Strava({
clientId: process.env.STRAVA_CLIENT_ID,
clientSecret: process.env.STRAVA_CLIENT_SECRET,
authorize: async (credentials) => {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<style> | |
:root { | |
--textColor: black; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vercel Production Deployment | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
Deploy-Production: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rejection_submissions_count: "8755" | |
rejection_submissions_waiting_time: "12339530" | |
submissions_count: 19689 | |
submissions_waiting_time: "28154025" | |
total_less_than_24_submission: "2390" | |
total_more_than_72_submission: "15253" | |
weekend_submission_count: "5022" | |
weekend_submission_waiting_time: "8242654" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "<strong>Alfian</strong>", | |
"alamat": "bandung", | |
"umur" : "25" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Alfian", | |
"alamat": "bandung", | |
"umur" : "25" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# https://medium.com/@nocnoc/combined-code-coverage-for-flutter-and-dart-237b9563ecf8 | |
# remember some failed commands and report on exit | |
error=false | |
show_help() { | |
printf "usage: $0 [--help] | |
Tool for running all unit and widget tests with code coverage and automatically generated if lcov is installed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RestaurantFavoritePageProvider({String id, bool isDetailPage}) { | |
_databaseHelper = DatabaseHelper(); | |
loadFavoriteRestaurant(); | |
if (isDetailPage) { | |
checkIfRestaurantIsFavorite(id); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Database { | |
fun read(): String | |
fun create(): String | |
} | |
class MySQL: Database { | |
override fun read() = "MYSQL read database" | |
override fun create() = "MYSQL create database" | |
} |
NewerOlder