This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.compose.ui.tooling.preview.Preview | |
import androidx.compose.ui.graphics.drawscope.* | |
import androidx.compose.animation.core.* | |
import androidx.compose.foundation.* | |
import androidx.compose.foundation.gestures.* | |
import androidx.compose.foundation.interaction.* | |
import androidx.compose.foundation.layout.* | |
import androidx.compose.foundation.lazy.* | |
import androidx.compose.foundation.lazy.grid.* | |
import androidx.compose.foundation.shape.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.compose.foundation.background | |
import androidx.compose.foundation.layout.* | |
import androidx.compose.foundation.shape.CircleShape | |
import androidx.compose.foundation.shape.GenericShape | |
import androidx.compose.foundation.shape.RoundedCornerShape | |
import androidx.compose.material.* | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.MutableState |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod utils_log; | |
fn main() { | |
utils_log::log("hello world"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
参考博客:https://www.cnblogs.com/echohye/p/17580078.html | |
1. 下载源码 | |
version=3.8.3 | |
wget http://download.osgeo.org/gdal/$version/gdal-$version.tar.xz | |
2. 编译。解压,执行: | |
cmake -S . -B build \ | |
-DCMAKE_INSTALL_RPATH=/opt/gdal \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.Handler; | |
import android.view.Choreographer; | |
import java.util.ArrayDeque; | |
import java.util.concurrent.Callable; | |
public class UIJobScheduler { | |
private final static float MAX_JOB_TIMES_MS = 4f; | |
private static long elapsed = 0L; | |
private static ArrayDeque<Callable> jobQueue = new ArrayDeque<>(); | |
private static Handler handler = new Handler(); | |
private static boolean isOverMaxtime() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/foundation.dart'; | |
void LOGD(Object message, StackTrace trace) { | |
try { | |
if (kDebugMode) { | |
CustomTrace programInfo = CustomTrace(trace); | |
// print("[(${programInfo.fileName}:${programInfo.lineNumber})]$message"); | |
print("[(${programInfo.methodFullInfo})]$message"); | |
} | |
} catch (e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell am broadcast -a com.android.systemui.demo -e command exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2017, the Flutter 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(new TestApp()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cn.iwgang.familiarrecyclerview; | |
import android.graphics.Canvas; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.support.v4.view.ViewCompat; | |
import android.support.v7.widget.GridLayoutManager; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.OrientationHelper; | |
import android.support.v7.widget.RecyclerView; |
NewerOlder