Skip to content

Instantly share code, notes, and snippets.

View tensor-programming's full-sized avatar
🏠
Working from home

Tensor-Programming tensor-programming

🏠
Working from home
View GitHub Profile
Windows Keytool CMD:
keytool -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
Mac Linux Keytool CMD:
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
Firestore Rules:
@tensor-programming
tensor-programming / a,dart
Created May 17, 2018 10:29
#33149 of dartSDK
// in lib folder
import 'b.dart';
class A {
final B b;
A(this.b);
}
(function(){
var authToken = '________________________________________'
!function(t,e){function n(t){return t&&e.XDomainRequest&&!/MSIE 1/.test(navigator.userAgent)?new XDomainRequest:e.XMLHttpRequest?new XMLHttpRequest:void 0}function o(t,e,n){t[e]=t[e]||n}var r=["responseType","withCredentials","timeout","onprogress"];t.ajax=function(t,a){function s(t,e){return function(){c||(a(void 0===f.status?t:f.status,0===f.status?"Error":f.response||f.responseText||e,f),c=!0)}}var u=t.headers||{},i=t.body,d=t.method||(i?"POST":"GET"),c=!1,f=n(t.cors);f.open(d,t.url,!0);var l=f.onload=s(200);f.onreadystatechange=function(){4===f.readyState&&l()},f.onerror=s(null,"Error"),f.ontimeout=s(null,"Timeout"),f.onabort=s(null,"Abort"),i&&(o(u,"X-Requested-With","XMLHttpRequest"),e.FormData&&i instanceof e.FormData||o(u,"Content-Type","application/x-www-form-urlencoded"));for(var p,m=0,v=r.length;v>m;m++)p=r[m],void 0!==t[p]&&(f[p]=t[p]);for(var p in u)f.setRequestHeader(p,u[p]);return f.send(i),f},e.nanoajax=t}({},functio
@tensor-programming
tensor-programming / example.dart
Last active January 31, 2023 19:35
Flutter Column Animated expanded widgets
class ExpandableText extends StatefulWidget {
ExpandableText(this.text);
final String text;
@override
_ExpandableTextState createState() => _ExpandableTextState();
}
@tensor-programming
tensor-programming / main.dart
Last active January 5, 2022 22:10
flutter timer with increment button
import 'package:flutter/material.dart';
import 'dart:math' as math;
void main() => runApp(MaterialApp(
home: const MyApp(),
theme: ThemeData.dark(),
));
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);