Skip to content

Instantly share code, notes, and snippets.

View shaohui10086's full-sized avatar
🎯
Focusing

邵辉Vista shaohui10086

🎯
Focusing
View GitHub Profile
@z8888q
z8888q / gist:2364151
Created April 12, 2012 01:46
Android 图片上传,包括从相册选取与拍照上传
// 拍照上传
private OnClickListener mUploadClickListener = new OnClickListener() {
public void onClick(View v) {
// 调用相机
Intent mIntent = new Intent("android.media.action.IMAGE_CAPTURE");
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@collinjackson
collinjackson / main.dart
Last active August 17, 2023 20:06
PageView example with dots indicator
// 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 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}