Skip to content

Instantly share code, notes, and snippets.

View jianzhongli's full-sized avatar
💭
I may be slow to respond.

jianzhongli jianzhongli

💭
I may be slow to respond.
View GitHub Profile
@jianzhongli
jianzhongli / machine.js
Created January 7, 2021 08:30
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
const 等待发起刷脸支付 = {
initial: '等待扫码',
states: {
等待扫码: {
on: {
用户扫码: '已扫码'
}
},
已扫码: {
on: {
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
jianzhongli:pts $ flutter build aar
Initializing gradle... 0.4s
Resolving dependencies... 1.1s
Running Gradle task 'assembleAarRelease'...
Running Gradle task 'assembleAarRelease'... Done 0.5s
Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016/W32TeX) (preloaded format=xelatex 2017.3.25) 24 MAR 2017 18:31
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**./main.tex
(./main.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(./sysuthesis.cls
Document Class: sysuthesis 2017/01/05 v0.1 Sun Yat-Sen University undergraduate

凌晨四点

你见过凌晨四点的校园吗?

作为 Computer Science 的学生,凌晨四点之前睡都应该感到羞耻。

概述

“凌晨四点”是为移动信息工程学院学子量身定制的线上作业提交系统,也欢迎其他支持作业无纸化的学院使用。

功能介绍

final private static String FILE_SLASH = "file:///";
public static ArrayList<Photo> getAllPhotos(Context context) {
ArrayList<Photo> listOfPhotos = new ArrayList<>();
String[] projection = {
MediaStore.Images.ImageColumns.DATA,
MediaStore.Images.ImageColumns.DATE_TAKEN};
Cursor cursor = MediaStore.Images.Media.query(
context.getContentResolver(),
MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
projection,