Skip to content

Instantly share code, notes, and snippets.

View alfianyusufabdullah's full-sized avatar
📚
Sometimes playing with Code & Fish

Alfian Yusuf Abdullah alfianyusufabdullah

📚
Sometimes playing with Code & Fish
View GitHub Profile
function refreshAccessToken() {
const prop = PropertiesService.getScriptProperties()
const refreshToken = prop.getProperty("REFRESH_TOKEN");
const clientId = prop.getProperty("CLIENT_ID");
const clientSecret = prop.getProperty("CLIENT_SECRET");
const url = 'https://launchpad.37signals.com/authorization/token?type=refresh&refresh_token=' + encodeURIComponent(refreshToken) + '&client_id=' + encodeURIComponent(clientId) + '&client_secret=' + encodeURIComponent(clientSecret);
const options = {
method: 'post',
@alfianyusufabdullah
alfianyusufabdullah / index.html
Created September 11, 2024 01:46
Quote Generator
<!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 {
--background-color: #fff;
--text-color: black;
<!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;
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:
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) => {
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"
{
"name": "<strong>Alfian</strong>",
"alamat": "bandung",
"umur" : "25"
}
{
"name": "Alfian",
"alamat": "bandung",
"umur" : "25"
}
#!/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.