- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 在IDEA中使用ANTLR4教程
Antlr 是一个基于 Java 开发的功能强大的语言识别工具,Antlr 以其简介的语法和高速的运行效率在这类工具中出类拔萃。当你需要开发一种领域语言时,语言可能像 Excel 中的公式一样复杂,也可能像本文中的例子一样简单(只有算术运算),这时你可以考虑使用 Antlr 来处理你的语言。Antlr 简介ANTLR 语言识别的一个工具 (ANother Tool for Language Rec
2016-12-16 20:01:23 30107 3
原创 Mybatis逆向工程中出现Exception getting JDBC Driver的解决方法
在pom.xml中如下位置添加一个mysql-connector-java依赖即可<build> <plugins> <plugin> <dependencies> <!--此处添加一个mysql-connector-java依赖可以防止找不到jdbc Driver--> <dependency> <grou
2016-11-22 18:19:01 31913 12
翻译 使用TabLayout实现Google Play风格的Tabs
使用TabLayout实现Google Play风格的TabsTabs最好的实现方法就是用ViewPager和一个自定义的tab导航。这篇教程中,我们使用Google新推出的TabLayout(包含在针对Android “M”的support design library中)。对于Android “M”以前的版本,最容易实现tabs with fragments的方式就是使用ActionBar Ta
2016-08-25 16:26:57 837
转载 windows下mysql提示access denied for user ''@'localhost' to database解决方案
windows下mysql提示access denied for user ”@’localhost’ to database解决方案用root帐号连上mysql,语句为“mysql -u root”即可,然后创建一个数据库,提示如下错误: ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mydb'原因是
2016-08-21 18:27:28 2380
原创 Windows下MySQL-5.7.14免安装版配置教程
1、从官网下载MySQL Community Server(32位、64位随意)2、解压MySQL压缩包 将以下载的MySQL压缩包解压到自定义目录下,我的解压目录是: C:\Software\mysql-5.7.14-win32 将解压目录下默认文件my-default.ini拷贝一份,将其改名my.ini,复制下面的配置信息到my.ini保存,如果没有my-default.
2016-08-10 19:19:57 502
转载 Android Stduio统计项目的代码行数
android studio统计项目的代码行数的步骤如下:按住Ctrl+Shift+A,在弹出的框输入‘find’,然后选择Find in Path.(或者使用快捷键Ctrl+Shift+F) 在弹出Find in Path的框中的Text to find输入\n,接着勾选Regular expression(正则表达式),Context选择anywhere,Scope根据你想要统计的范围进行选择
2016-08-08 16:49:24 710
原创 如何更改Android中ActionBar的颜色
1、打开values下的styles.xml发现有以下代码:<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. -->
2016-08-08 15:49:10 10047
原创 Leetcode之路 258. Add Digits
1、题目描述 Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example: Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only
2016-08-05 21:27:16 281
原创 Leetcode之路 371. Sum of Two Integers
1、题目描述 Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example: Given a = 1 and b = 2, return 3. Tags: Bit_Manipulation2、Java代码实现public c
2016-08-05 17:33:43 255
原创 Leetcode之路 292. Nim Game
1、题目描述 You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone wil
2016-08-05 16:58:42 276
原创 Leetcode之路 338. Counting Bits
1、题目描述 Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return them as an array. Example: For nu
2016-08-05 16:46:16 255
原创 Leetcode之路 344. Reverse String
1、题目描述 Write a function that takes a string as input and returns the string reversed. Example: Given s = “hello”, return “olleh”. 2、C++实现class Solution {public: string reverseString(str
2016-08-03 21:16:24 253
原创 Android Studio中配置及使用OpenCV示例
Android Studio中配置及使用OpenCV示例1、下载进入官网下载OpenCV4Android并解压(本人下载的是OpenCV-3.1.0-android-sdk)。2、将OpenCV引入Android Studio在Android Studio中新建一个项目(也可以是先前已经建好的项目),在Android Studio中选择 File–>Import Module,找到OpenCV解压的
2016-08-03 17:32:12 545
原创 超简单方法搭建Eclipse下的Android NDK
参考博客:http://blog.csdn.net/coder_pig/article/details/45362245废话不多说,直接开始环境搭建。1.Eclipse + SDK +ADT:这个就不用说了,直接官网下的以前官网提供的那个Eclipse + SDK + ADT的东东,又或者自己搭建一个。2.CDT:方便我们看C,如果你的Eclipse
2016-07-16 16:52:49 321
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人