Skip to content

Instantly share code, notes, and snippets.

View Chetan-Goyal's full-sized avatar
🎯
Focusing

Chetan Goyal Chetan-Goyal

🎯
Focusing
  • Brainwave Science Pvt Ltd
  • New Delhi, India
View GitHub Profile
@Chetan-Goyal
Chetan-Goyal / test_screen.dart
Created August 19, 2022 06:27
Test Screen for controller value reset
import 'package:flutter/material.dart';
class TestScreen extends StatefulWidget {
TestScreen({Key? key}) : super(key: key);
final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
final testController = TextEditingController();
@override
State<StatefulWidget> createState() => _TestScreenState();
# Privacy Policy
Listomania takes your privacy seriously. To better protect your privacy We provide this privacy policy notice explaining the way your personal information is collected and used.
## Collection of Routine Information
This app track basic information about their users. This information includes, but is not limited to, IP addresses, app details, timestamps and referring pages. None of this information can personally identify specific user to this app. The information is tracked for routine administration and maintenance purposes.
#include <iostream>
#include <string.h>
#include <regex>
#include <time.h>
using namespace std;
string xor1(string a, string b)
{
string result = "";
int n = b.length();
# Privacy Policy
Quizoy takes your privacy seriously. To better protect your privacy We provide this privacy policy notice explaining the way your personal information is collected and used.
## Collection of Routine Information
This app track basic information about their users. This information includes, but is not limited to, IP addresses, app details, timestamps and referring pages. None of this information can personally identify specific user to this app. The information is tracked for routine administration and maintenance purposes.
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
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,
}
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):
'''
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
@Chetan-Goyal
Chetan-Goyal / binary_search.py
Created December 12, 2019 19:54
binary_search
def BS(arr, n):
l, u = 0, len(arr)-1
while l <= u:
m = (l+u)//2
if n == arr[m]:
return m