Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Chetan Goyal Chetan-Goyal

🏠
Working from home
  • New Delhi, India
View GitHub Profile
View two_textWidget.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
View OCR_V3.py
import requests
def ocr_space_file(filename, overlay=False, api_key='2704fc2bc388957', language='eng'):
payload = {'isOverlayRequired': overlay,
'apikey': api_key,
'language': language,
'detectOrientation': True,
'scale': True,
'OCREngine': 2,
}
View Working_EF_Dipole.py
from mpmath import mp
# * Initializing accuracy level and value of const_k
mp.dps = 100
const_k = mp.fmul(8.9875518, 10**9)
def dipole(r:float, theta:float, charge:float, a:float):
'''
View EF_dipole.py
from mpmath import mp
from math import cos, radians
# * Initializing accuracy level and value of const_k
mp.dps = 100
const_k = mp.fmul(8.9875518, 10**9)
def dipole_moment(charge, a):
# Editing Value of charge as per the unit
View binary_search.py
def BS(arr, n):
l, u = 0, len(arr)-1
while l <= u:
m = (l+u)//2
if n == arr[m]:
return m