Skip to content

Instantly share code, notes, and snippets.

View gamemaker1's full-sized avatar

Vedant Kulkarni gamemaker1

View GitHub Profile
@gamemaker1
gamemaker1 / negative-marking-form-extension.gs
Created November 19, 2022 15:44
Negative Marking Form Extension
/**
* Negative Marking Forms Extension
* Created by Vedant K <github.com/gamemaker1>
* ISC License • Copyright Vedant K 2022
*
* This extension allows you to add negative marking to a quiz in Google Forms.
*
* The settings are as follows:
* - Single Correct Questions (SCQs) = -1 [upon wrong answer]
* - Multiple Correct Questions (MCQs) = -2 [upon wrong answer, no partial marking]
<h1>My name is {{name}}.</h1>
@gamemaker1
gamemaker1 / vlib-cli-usage-suggestions.v
Last active August 9, 2021 07:39
Suggestion for V CLI module usage
// Example of creating a CLI app
// Imports
import os
import cli
// Types
type FlagType = string | int | bool | string[] | int[]
@gamemaker1
gamemaker1 / google-oauth-client-tutorial.md
Last active June 12, 2021 04:35
How to create an OAuth 2.0 client for using Dabbu CLI

Hi there, and thank you for using Dabbu CLI!

Why this is required

To access your Google Drive/Gmail, Google requires developers to request user consent using the OAuth 2.0 procedure. This involves obtaining a client ID and client secret from Google, which are not supposed to be revealed to anyone. However, Dabbu CLI is open source, and we cannot embed the client ID and client secret in the code. This means that users need to create their own client ID and secret and enter it in the CLI.

In case you are adding another account (you have already followed this procedure once before)

In case you want to use Dabbu CLI with another Google account, do NOT follow the below procedure: instead, simply leave the client ID and client secret fields blank. When the CLI asks you to authorise the app, simply choose with the new account that you want to add to Dabbu CLI.