Skip to content

Instantly share code, notes, and snippets.

View Namyalg's full-sized avatar
🏃
Finding my way

Namya LG Namyalg

🏃
Finding my way
View GitHub Profile

Steps to reproduce the error

  1. Navigate to the local/rest_api_gcbm, run the following : -

    1. docker build --build-arg BUILD_TYPE=RELEASE --build-arg NUM_CPU=4 -t gcbm-api .
    2. docker run --rm -p 8080:8080 gcbm-api
  2. Unzip the GCBM_Demo_Run.zip

  3. Enter into the unzipped folder and run the following curl commands

curl -d "title=run4" -X POST http://localhost:8080/gcbm/new

To upgrade pip

pip3 install --upgrade pip

Upgrade setuptools

python3 -m pip install --upgrade setuptools

Install grpcio

import firebase_admin
from firebase_admin import credentials
from firebase_admin import db
# Fetch the service account key JSON file contents
cred = credentials.Certificate('secret key.json')
# Initialize the app with a service account, granting admin privileges
firebase_admin.initialize_app(cred, {
'databaseURL': "URL to database"
})
@Namyalg
Namyalg / index.html
Created July 14, 2020 07:44 — forked from gaearon/index.html
Add React in One Minute
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@Namyalg
Namyalg / index.html
Created July 10, 2020 05:31
Pure CSS Star Rating Input
<form class="rating">
<label>
<input type="radio" name="stars" value="1" />
<span class="icon">★</span>
</label>
<label>
<input type="radio" name="stars" value="2" />
<span class="icon">★</span>
<span class="icon">★</span>
</label>
@Namyalg
Namyalg / index.html
Created June 25, 2020 02:39
thelatest
<head>
<title>
Project Tachyon: Home Page
</title>
</head>
<body style="background-color:black;">
<table cellspacing="500" padding="60" border-radius="70">
<tr>
<th width = "375">HOME</th>