Skip to content

Instantly share code, notes, and snippets.

View MohitGupta121's full-sized avatar
🎯
Focusing

MOHIT GUPTA MohitGupta121

🎯
Focusing
View GitHub Profile
<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M70 7H14C10.1395 7 7 10.129 7 13.972V56.028C7 59.871 10.1395 63 14 63H24.5V77L46.7285 63H70C73.8605 63 77 59.871 77 56.028V13.972C76.9944 12.1198 76.2543 10.3454 74.9419 9.0383C73.6296 7.7312 71.8522 6.99814 70 7Z" fill="#FF003D"/>
<mask id="path-2-outside-1_651_282" maskUnits="userSpaceOnUse" x="14" y="29" width="57" height="13" fill="black">
<rect fill="white" x="14" y="29" width="57" height="13"/>
<path d="M18.456 39.48L15.736 31.848V41H14.44V29.48H16.216L19.096 37.736L21.752 29.48H23.512V41H22.168V31.848L19.656 39.48H18.456ZM25.2731 36.408V35.256H30.1531V36.408H25.2731ZM32.63 41V39.896H34.758V31.016L32.566 32.36L31.974 31.448L34.662 29.8H36.022V39.896H37.766V41H32.63ZM42.0066 41H40.5986L44.7906 30.92H40.0226V29.8H46.0066V31.08L42.0066 41ZM53.6712 30.392C53.2126 30.5307 52.7486 30.7173 52.2792 30.952C51.8099 31.1867 51.3672 31.48 50.9512 31.832C50.5459 32.184 50.1886 32.6107 49.8792 33.112C49.5699 33.60
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:8191)
at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:1420)
at android.view.View.requestLayout(View.java:24454)
at android.view.View.requestLayout(View.java:24454)
at android.view.View.requestLayout(View.java:24454)
at android.view.View.requestLayout(View.java:24454)
at android.view.View.requestLayout(View.java:24454)
at android.view.View.requestLayout(View.java:24454)
at androidx.constraintlayout.widget.ConstraintLayout.requestLayout(ConstraintLayout.java:3146)
This file has been truncated, but you can view the full file.
2023-08-22T15:57:06.7619157Z Requested labels: ubuntu-20.04
2023-08-22T15:57:06.7619476Z Job defined at: oppia/oppia-android/.github/workflows/unit_tests.yml@refs/pull/5131/merge
2023-08-22T15:57:06.7619590Z Waiting for a runner to pick up this job...
2023-08-22T15:57:06.9979887Z Job is waiting for a hosted runner to come online.
2023-08-22T15:57:10.2990231Z Job is about to start running on the hosted runner: GitHub Actions 2 (hosted)
2023-08-22T15:57:12.9356936Z Current runner version: '2.308.0'
2023-08-22T15:57:12.9388451Z ##[group]Operating System
2023-08-22T15:57:12.9389164Z Ubuntu
2023-08-22T15:57:12.9389567Z 20.04.6
2023-08-22T15:57:12.9389880Z LTS
import re
def validate_toc(file_path):
with open(file_path, 'r') as file:
content = file.read()
# Extract the TOC section from the file content
match = re.search(r'## Table of contents(.+?)\n\n', content, re.DOTALL)
if not match:
print("Error: Table of contents section not found.")
@MohitGupta121
MohitGupta121 / commands.md
Created April 28, 2023 10:23 — forked from codinginflow/commands.md
Deploy & Secure Your MERN App
{"v":"5.5.7","meta":{"g":"LottieFiles AE 0.1.20","a":"","k":"","d":"","tc":""},"fr":24,"ip":0,"op":48,"w":1440,"h":1024,"nm":"Comp 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Frontground","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[638.904,943.984,0],"ix":2},"a":{"a":0,"k":[-81.096,431.984,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-68.574,-1.085],[34.042,0],[52.954,0],[128.751,5.51],[39.715,0],[48.62,-2.288],[19.543,-4.113],[53.584,0],[14.709,-27.968],[-63.04,0],[-71.1,2.059],[-92.132,0],[-85.024,1.627]],"o":[[-9.552,-15.19],[-51.063,0],[-52.954,0],[-128.751,-5.51],[-39.715,0],[-48.62,2.288],[-19.542,4.113],[-35.723,0],[-20.494,15.19],[23.209,0],[40.125,-1.162],[43.498,0],[56.682,-1.085]],"v":[[207.197,420.467],[141.807,397.683],[46.901,370.126],[-102.986,260.472],[-242.305,321.091],[-351.995,290.976],[-439.77,370.126],[-498.398,355.73],[-574.046,397.683],[-510.22
@Composable
fun CountryPickerSheet() {
Box {
var expanded by remember { mutableStateOf(false) }
var selectedCountry by remember { mutableStateOf<Country?>(null) }
val focusManager = LocalFocusManager.current
CountryPickerBottomSheet(
title = {
Text(
@Composable
fun ChipGroupCompose() {
data class GenderList( val title: String, val icon: Int )
val genders = listOf(
GenderList("Male", R.drawable.ic_gender_male),
GenderList("Female", R.drawable.ic_gender_female),
GenderList("Other", R.drawable.ic_gender_other)
)
const storage = multer.diskStorage({
destination: (req, file, cb) => {
cb(null, 'Images')
},
filename: (req, file, cb) => {
cb(null, Date.now() + path.extname(file.originalname))
}
})
const upload = multer({