Skip to content

Instantly share code, notes, and snippets.

View Imperial-lord's full-sized avatar
🎯
Focusing

AB Satyaprakash Imperial-lord

🎯
Focusing
View GitHub Profile
import 'dart:convert' show utf8;
import 'dart:convert' show json;
import 'dart:io';
class SlackMessage {
final String? inChannel;
final String? message;
const SlackMessage({
@Imperial-lord
Imperial-lord / happy-hacking.js
Created February 20, 2022 15:04
Javascript as esolang
[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(!
import 'package:carousel_slider/carousel_slider.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:mapbox_gl/mapbox_gl.dart';
import 'package:mapbox_navigation/constants/restaurants.dart';
import 'package:mapbox_navigation/helpers/commons.dart';
import 'package:mapbox_navigation/helpers/shared_prefs.dart';
import 'package:mapbox_navigation/widgets/carousel_card.dart';
class RestaurantsMap extends StatefulWidget {
@Imperial-lord
Imperial-lord / splash.dart
Last active February 11, 2022 23:13
We will capture the user location after ensuring required permissions are granted and store this location info in Shared Preferences
// Ensure all permissions are collected for Locations
Location _location = Location();
bool? _serviceEnabled;
PermissionStatus? _permissionGranted;
_serviceEnabled = await _location.serviceEnabled();
if (!_serviceEnabled) {
_serviceEnabled = await _location.requestService();
}
@Imperial-lord
Imperial-lord / german-credit-risk-dataset-analysis.ipynb
Created November 18, 2021 12:54
German Credit Risk Dataset Analysis.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Imperial-lord
Imperial-lord / titanic-survival-predictions.ipynb
Created November 8, 2021 09:17
Titanic Survival Predictions.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_barcode_scanner/flutter_barcode_scanner.dart';
import 'package:iitg_idcard_scanner/functions/checkRoll.dart';
import 'package:iitg_idcard_scanner/globals/myColors.dart';
import 'package:iitg_idcard_scanner/globals/myFonts.dart';
import 'package:iitg_idcard_scanner/globals/mySpaces.dart';
import 'package:iitg_idcard_scanner/pages/showScanDetails.dart';
class ScanNow extends StatefulWidget {
@Imperial-lord
Imperial-lord / mySpaces.dart
Created March 27, 2021 00:11
Make a list of all spaces that you might need. This will often eliminate the repeated use of Padding()
import 'package:flutter/material.dart';
class MySpaces {
//vertical gaps
static const Widget vSmallestGapInBetween = SizedBox(height: 6);
static const Widget vGapInBetween = SizedBox(height: 12);
static const Widget vSmallGapInBetween = SizedBox(height: 20);
static const Widget vMediumGapInBetween = SizedBox(height: 30);
static const Widget vLargeGapInBetween = SizedBox(height: 40);
@Imperial-lord
Imperial-lord / myFonts.dart
Created March 27, 2021 00:08
A list of all Text widgets that one will need through out the application.
import 'package:flutter/material.dart';
class MyFonts{
Text largeTitle(text, color){
return Text(text,style: TextStyle(fontFamily: 'poppins-bold', fontSize: 34, color: color),);
}
Text title1(text, color){
return Text(text,style: TextStyle(fontFamily: 'poppins-semi', fontSize: 22, color: color),);
}