- Go to https://console.cloud.google.com/projectcreate.
- Fill in Project Name, like "Sample-Project" or so, leave Location unchanged.
- Change Project ID (optional).
- Click "CREATE".
- Wait a couple of seconds until the project is created and open it (click "VIEW").
- On the APIs pane, click "Go to APIs overview".
- Click "ENABLE APIS AND SERVICES".
- Search for the API you need to enable.
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
vector<string> split(const string& input, const char& ch) { | |
vector<string> tokens; | |
string token; | |
istringstream stream(input); | |
while(getline(stream, token, ch)) { | |
tokens.push_back(token); | |
} | |
return tokens; | |
} |
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
/* | |
Chain reaction bot for Create 202 | |
Author: Siddhant Kushwaha | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <stack> |
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
const net = require('net'); | |
const sendMessage = (port, message) => { | |
return new Promise((resolve, reject) => { | |
const client = net.createConnection(port, () => { | |
try { | |
console.log('Sending message', message) | |
const messageSerialized = JSON.stringify(message) | |
client.write(messageSerialized) | |
} |
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
package com.siddhantkushwaha.falcon.activity | |
import android.os.Bundle | |
import com.google.android.gms.common.api.Scope | |
import com.google.android.material.bottomsheet.BottomSheetBehavior | |
import com.google.api.services.gmail.GmailScopes | |
import com.siddhantkushwaha.falcon.R | |
import kotlinx.android.synthetic.main.activity_home.* | |
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
package com.siddhantkushwaha.falcon.common | |
import android.app.Activity | |
import android.util.Log | |
import com.google.android.gms.auth.api.signin.GoogleSignIn | |
import com.google.android.gms.auth.api.signin.GoogleSignInClient | |
import com.google.android.gms.auth.api.signin.GoogleSignInOptions | |
import com.google.android.gms.common.api.ApiException | |
import com.google.firebase.auth.FirebaseAuth | |
import com.google.firebase.auth.GoogleAuthProvider |
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
import pickle | |
ckpt = '/content/drive/MyDrive/mydumps/ck1.pickle' | |
def load(): | |
with open(ckpt, 'rb') as fp: | |
chk = pickle.load(fp) | |
return chk | |
def exists(key): |
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
package com.siddhantkushwaha.carolyn.ml | |
import com.google.android.gms.tasks.Tasks | |
import com.google.mlkit.nl.languageid.LanguageIdentification | |
import kotlin.Exception | |
class LanguageId { | |
companion object { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import os | |
import json | |
from datetime import datetime | |
os.system('pip install --upgrade pip') | |
os.system('pip install palladium-python') | |
os.system('apt-get update') | |
os.system('apt install chromium-chromedriver') |
NewerOlder