Skip to content

Instantly share code, notes, and snippets.

View chaudharydeepanshu's full-sized avatar
🧸
wat

Deepanshu Chaudhary chaudharydeepanshu

🧸
wat
View GitHub Profile
@chaudharydeepanshu
chaudharydeepanshu / main.dart
Last active August 6, 2022 19:33
Example-custom-calendar
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
List months = [
'jan',
'feb',
@chaudharydeepanshu
chaudharydeepanshu / main.dart
Created August 7, 2022 12:45
Task to bring down rebuilds of customContainer from 42 to 1
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
@chaudharydeepanshu
chaudharydeepanshu / main.dart
Created August 7, 2022 15:22
pskink gist for calendar
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
import 'dart:io';
import 'dart:math';
void main() {
print("Enter no of planes to randomly generate:");
// Reading no of planes to randomly generate
int noOfPlanes = int.parse(stdin.readLineSync() ?? "0");
print("\n\nEnter total no of gates on airport:");
// Reading no of gates in airport
@chaudharydeepanshu
chaudharydeepanshu / readme.md
Created October 9, 2023 13:44 — forked from mrladeia/readme.md
Iptables to Oracle Cloud port 80 and 443 open

IPTABLES to Oracle Cloud port 80 and 443 open

If you need to open up ports 80 and 443, on file /etc/iptables/rules.v4 just add

-A INPUT -p tcp -m state --state NEW -m multiport --dports 80,443 -j ACCEPT

directly below