Skip to content

Instantly share code, notes, and snippets.

View maheshmnj's full-sized avatar
💭
Bring it on 🔥

Mahesh Jamdade maheshmnj

💭
Bring it on 🔥
View GitHub Profile
@maheshmnj
maheshmnj / .gitignore
Created October 13, 2020 07:19
flutter gitignore
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
@maheshmnj
maheshmnj / copyObject.dart
Last active October 15, 2020 13:00
copying dart objects doesnt actually copy the contents of the object but gets a reference to it.
void main() {
Foo t = Foo();
t.a = ['a', 'b', 'c']; // some value
t.x = 30;
Foo t1 = t;
t1.a = ['x', 'y', 'z'];
t1.x = 20;
print(t1.a); // [x, y, z]
print(t.a); // [x, y, z]
print(t.x);
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@maheshmnj
maheshmnj / temp.txt
Last active November 27, 2020 12:50
[reset link](https://www.stage3.co/change-password/e8d97829-6bd9-4c72-a000-78b99e0c9b0e)
7. [reset your branch to an old commit](https://stackoverflow.com/a/4940084/8253662)

Facebook Sign In hash

Release hash

C:\Users\Mahesh Jamdade>keytool -exportcert -alias <aliasName> -keystore <PATH> | openssl sha1 -binary | openssl base64
XOQ*****************vReGc=

source: https://stackoverflow.com/a/18101444/8253662

@maheshmnj
maheshmnj / contacts.vcf
Last active March 31, 2021 10:10
Sample contacts to import and use for testing (Successfully imported on pixel3a)
BEGIN:VCARD
VERSION:3.0
N:Muller;Isabella;;;
FN:Isabella Muller
ORG:Bubba Gump Shrimp Co.
TITLE:Shrimp Man
PHOTO;MEDIATYPE=image/gif:http://www.example.com/dir_photos/my_photo.gif
TEL;TYPE=work,voice;VALUE=uri:tel:+16829185770
REV:20080424T195243Z
END:VCARD
@maheshmnj
maheshmnj / life_cycle.dart
Created April 18, 2021 18:31
Resuming futter lifecycle
import 'package:flutter/material.dart';
class CountdownTimer extends StatefulWidget {
@override
_CountdownTimerState createState() => _CountdownTimerState();
}
class _CountdownTimerState extends State<CountdownTimer>
with WidgetsBindingObserver, SingleTickerProviderStateMixin {
double countdownTime;
@maheshmnj
maheshmnj / otp.md
Last active April 19, 2021 13:24
Auto Fill otp using sms_auto_fill flutter package
  1. Add the dependency https://pub.dev/packages/sms_autofill
  2. your class must implement the mixi CodeAutoFill mixin
  3. in initstate you should generate the app Signature and listen for the code
@override
  void initState() {
    listenForCode();
      SmsAutoFill().getAppSignature.then((signature) {
 setState(() {
@maheshmnj
maheshmnj / rotate.dart
Created April 20, 2021 07:54
rotate a box by x deg every 2 secs
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'dart:math' as math;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@maheshmnj
maheshmnj / Activate Office 2019 for macOS VoL.md
Created June 2, 2021 14:05 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref