Build an image:
docker build -t myimage .
Build an image, deleting the old one:
[ | |
{"eventDate": "03-12-2020", "description": "Solana Labs, the team behind Solana, announced a $1.76 million fund to support Solana-based projects."}, | |
{"eventDate": "21-04-2021", "description": "Solana announced the launch of 'Wormhole,' a decentralized bridge connecting Solana to other blockchains, including Ethereum."}, | |
{"eventDate": "09-09-2021", "description": "Solana reached an all-time high price of $215.96, following a period of rapid price increases."}, | |
{"eventDate": "26-09-2021", "description": "Solana experienced a sudden and brief outage, which caused the price to drop significantly and led to concerns about the stability of the network."}, | |
{"eventDate": "01-10-2021", "description": "FTX, a major cryptocurrency exchange, announced a $150 million fund to support the development of the Solana ecosystem."} | |
] |
[ | |
{ | |
"eventDate": "03/31/2021", | |
"description": "Solana's mainnet beta launch." | |
}, | |
{ | |
"eventDate": "06/08/2021", | |
"description": "Solana raised $314 million in a token sale led by Andreessen Horowitz and Polychain Capital." | |
}, | |
{ |
" quote | |
' single quote | |
^ carrot | |
& ampersand | |
/ slash | |
\ backslash | |
- dash/hyphen | |
_ underscore | |
` backtick | |
~ tilde |
FROM amancevice/pandas:1.4.4 | |
WORKDIR /app | |
# Copy the Python application. | |
COPY requirements.txt . | |
COPY app.py . | |
# Install all dependencies for the Python application. | |
RUN pip install -r requirements.txt |
GITHUB_USERNAME=username | |
REPO_NAME=repo | |
# Get a token from here: https://github.com/settings/tokens | |
GITHUB_TOKEN=token | |
mkdir $REPO_NAME | |
cd $REPO_NAME | |
git init |
pragma solidity ^0.8.0; | |
contract MyToken { | |
mapping(address => uint) public balanceOf; | |
constructor(uint _initialSupply) { | |
balanceOf[msg.sender] = _initialSupply; | |
} | |
function transfer(address _to, uint _value) public { |
function detectPopularLanguages(codeSnippet: string): string[] { | |
const languageKeywords: { [key: string]: RegExp } = { | |
JavaScript: /\b(?:var|let|const|function|if|else|for|while|switch|case|break|return)\b/g, | |
Python: /\b(?:def|if|elif|else|for|while|break|continue|return)\b/g, | |
Java: /\b(?:public|private|protected|class|void|static|if|else|for|while|switch|case|break|return)\b/g, | |
CSharp: /\b(?:public|private|protected|class|void|static|if|else|for|while|switch|case|break|return)\b/g, | |
C: /\b(?:int|float|char|void|if|else|for|while|switch|case|break|return)\b/g, | |
Ruby: /\b(?:def|if|else|elsif|unless|end|for|while|case|when)\b/g, | |
PHP: /\b(?:public|private|protected|function|if|else|for|while|switch|case|break|return)\b/g, | |
Swift: /\b(?:class|func|var|let|if|else|for|while|switch|case|break|return)\b/g, |
import { initializeApp } from "firebase/app"; | |
import { getFirestore, collection, getDocs } from 'firebase/firestore/lite'; | |
import { getAuth, signInWithCustomToken } from "firebase/auth"; | |
import { firebaseConfig } from "../config/firebase" | |
import { useAuth } from "@clerk/clerk-react"; | |
import { useEffect, useState } from "react"; | |
// Initialize Firebase app with the provided configuration |