or at least the ones i am not too tired to note down. i'm lazy and forgetful. this is not the full list.
-
- password
- ssh keys
- generate:
ssh-keygen -t ed25519 -C [meaningful comment]
- connect:
ssh -i [path/to/key] user@host
- generate:
prepend_to_path(){ | |
for dir in "${@}"; do | |
if [ -d "${dir}" ]; then | |
PATH="${dir}:${PATH}" | |
fi | |
done | |
} | |
append_to_path(){ | |
for dir in "${@}"; do |
The software is implemented using JavaScript frameworks and Firebase. The Javscript frameworks, React and Express, are used for the frontend and backend respectively. Firebase is used for the authorization of users, sending and accepting friend requests, creating rooms to chat with other individuals and most importantly playing virtually with other users using Firebase Authentication, Firestore and Cloud Functions. With regards to the working of the gyration board, the fronted and backend are constantly in communication with each other from the time the device is turned ON. Express reads the signals from the Raspberry Pi, performs calculations as required and sends the data to the React frontend. Arrows indicating the position where the user should place their feet, and the scores of the user are displayed on a display device throughout the game.
noun hy·dra re·po
private fun getResCards() { | |
val urlAllResCards = "http://13.235.250.119/v2/restaurants/fetch_result/" | |
val queue = Volley.newRequestQueue(activity as Context) | |
val allResCardsReq = object : JsonObjectRequest(Method.GET, urlAllResCards, null, | |
Response.Listener { | |
val response = it.getJSONObject("data") | |
if (response.getString("success") == "true") { | |
val data = response.getJSONArray("data") | |
for (i in 0 until data.length()) { |
import React from 'react';
const FirebaseContext = React.createContext(null);
export const withFirebase = Component => props => (
<FirebaseContext.Consumer>
{firebase => <Component {...props} firebase={firebase} />}