库管理 克隆库 git clone https://github.com/php/php-src.gitgit clone --depth=1 https://github.com/php/php-src.git # 只抓取最近的一次 commit 历史管理 查看历史 git log --prett... ...
分类:
其他好文 时间:
2020-02-05 10:21:41
阅读次数:
71
Kotlin DSL, 指用Kotlin写的Domain Specific Language.
本文通过解析官方的Kotlin DSL写html的例子, 来说明Kotlin DSL是什么.
首先是一些基础知识, 包括什么是DSL, 实现DSL利用了那些Kotlin的语法, 常用的情形和流行的库.
... ...
分类:
Web程序 时间:
2020-02-05 09:32:43
阅读次数:
123
源程序: #include <iostream>using namespace std; class A{public: int i; virtual void func() { cout << "A0" << endl; } virtual void func2() { cout << "A1" ...
分类:
其他好文 时间:
2020-02-04 23:27:29
阅读次数:
87
源程序: #include <iostream>using namespace std; class Bas{public: ~Bas() { cout << "Bas析构函数" << endl; } virtual void f() = 0;}; class Dev :public Bas{pub ...
分类:
其他好文 时间:
2020-02-04 23:19:53
阅读次数:
83
源程序: #include <iostream>using namespace std; class A{public: int i; virtual void func() { cout << "A0" << endl; } virtual void func2() { cout << "A1" ...
分类:
其他好文 时间:
2020-02-04 22:10:15
阅读次数:
77
Toast Toast是Android系统提供的一种非常好的提示方式,在程序中可以使用它将一些短小的信息通知给用户,这些信息会在一段时间后自动消失,并且不会占用任何的屏幕空间. 1、默认Toast 在屏幕底部显示提示内容 Toast.makeText(getApplicationContext(), ...
分类:
移动开发 时间:
2020-02-04 20:26:15
阅读次数:
85
1、创建侧滑菜单Fragment package com.example.didida_corder; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import and ...
分类:
移动开发 时间:
2020-02-04 18:49:24
阅读次数:
83
介绍两种获取资源的方式: 一、通过ClassLoader获取: loader.getResourceAsStream("a/b/temp.txt");--获取src下/a/b包下的temp.txt资源二、通过Class获取: 加"/": 与ClassLoader一样。class.getResourc ...
分类:
编程语言 时间:
2020-02-04 16:07:00
阅读次数:
91
很简单,改两个地方足以 1. 更改版本号(我叫他版本号)就是他和你的android studio的版本相一致,查看方法help->about 2.更改gradle 阴影部分每个人都是不一样的,你要改成你自己的就 ok,毕竟你的电脑编译用的是你的gradle 改完就完成了,别人的你就可以用了(当然仅限 ...
分类:
移动开发 时间:
2020-02-04 15:31:20
阅读次数:
78
You are given a positive integer n, please count how many positive integers k satisfy kk≤nkk≤n. InputThere are no more than 50 test cases. Each case o ...
分类:
其他好文 时间:
2020-02-04 12:22:03
阅读次数:
55