Skip to content

Instantly share code, notes, and snippets.

@zoechi
zoechi / index.html
Last active March 10, 2023 18:03
appendHtml doesn't validate HTML
<div id="div1"></div>
<br/>
<div id="div2"></div>
<br/>
<div id="div3"></div>
<br/>
<div id="div4"></div>
+1637 ms] I/zygote (16166): Do partial code cache collection, code=29KB, data=24KB
[ ] I/zygote (16166): After code cache collection, code=28KB, data=24KB
[ ] I/zygote (16166): Increasing code cache capacity to 128KB
[ +6 ms] W/zygote (16166): Unsupported class loader
[ +2 ms] W/zygote (16166): Skipping duplicate class check due to unsupported classloader
[ +9 ms] W/DynamiteModule(16166): Local module descriptor class for com.google.firebase.auth not found.
[ +1 ms] W/BiChannelGoogleApi(16166): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@31dfa88
[ +4 ms] W/DynamiteModule(16166): Local module descriptor class for com.google.firebase.auth not found.
[ +8 ms] I/FirebaseAuth(16166): [FirebaseAuth:] Loading module via FirebaseOptions.
[ ] I/FirebaseAuth(16166): [FirebaseAuth:] Preparing to create service connection to gms implementation
google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default version: 9.0.0 will be used.
please apply google-services plugin at the bottom of the build file.
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
WARNING: The specified Android SDK Build Tools version (25.0.3) is ignored, as it is below the minimum supported version (26.0.2) for Android Gradle Plugin 3.0.1.
Android SDK Build Tools 26.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '25.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The specified Android SDK Build Tools version (25.0.0) is ignored, as i
(dart2) $ ./gradlew :app:dependencies | grep -i -e firebase -e services | sort | uniq
+--- com.google.android.gms:play-services-base:9.0.0
+--- com.google.android.gms:play-services-basement:9.0.0 (*)
+--- com.google.firebase:firebase-iid:9.0.0
\--- com.google.firebase:firebase-common:9.0.0 (*)
| +--- com.google.android.gms:play-services-basement:9.0.0 (*)
| +--- com.google.firebase:firebase-common:9.0.0 (*)
| \--- com.google.android.gms:play-services-tasks:9.0.0 (*)
| \--- com.google.firebase:firebase-common:9.0.0 (*)
+--- com.google.android.gms:play-services-basement:9.0.0
import 'dart:convert';
void main() {
try {
var resBody = {};
resBody["email"] = "employerA@gmail.com";
resBody["password"] = "admin123";
var user = {};
user["user"] = resBody;
String str = JSON.encode(user);
@zoechi
zoechi / main.dart
Created March 22, 2018 16:31
Uri.dataFromString() with smiley
final content1 = 'hello world';
final content2 = '❤';
void main() {
final dataUri1 = createDataUri(content1);
print(dataUri1);
final dataUri2 = createDataUri(content2);
print(dataUri2);
}
analyzer:
language:
enableStrictCallChecks: true
enableSuperMixins: true
strong-mode:
declaration-casts: false
implicit-casts: false
implicit-dynamic: false
@zoechi
zoechi / open ports
Created May 31, 2013 15:51
open ports
netstat -lptan
netstat -lptu
netstat -lptun
# -l listen
# -p process name
# -t tcp
# -a established connections
# -n numeric addresses
# -u udp
@zoechi
zoechi / list files or directories
Created June 11, 2013 10:08
List files, list directories
ls -l | egrep -v '^d' # files
ls -l | egrep '^d' # directories