Skip to content

Instantly share code, notes, and snippets.

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class CodeCount {
public static void main(String[] args) throws FileNotFoundException {
if (args.length == 0) {
System.out.println("==> Usage: java com.ebao.misc.CodeCount [directory]");
System.exit(1);
}
spring中JDBC 声明式事务管理 http://blog.csdn.net/yeson6/article/details/4954330
@mainlove
mainlove / q
Last active December 13, 2015 23:48
对于下列的情景,
给用户的前置接口
程序逻辑
给用户的后置接口
在不考虑aop实现的前提的下,以下两种做法:
1 定义固定接口,通过某种方法传入到以上代码段
```java
涅米宁每年能
@mainlove
mainlove / gist:4983920
Created February 19, 2013 08:08
买卖买卖买卖买卖买卖买卖
买卖买卖
@mainlove
mainlove / 0_reuse_code.js
Created March 9, 2014 13:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mainlove
mainlove / gist:9065376
Last active August 29, 2015 13:56
关于Noty的问题

-###Noty的web

Noty [nəuti] 是一个用于知识管理与分享的网络应用,您可以用它来记便签,也可以用它来写博客, 甚至可以用它来订阅您感兴趣的信息,但最重要的是您可以用它来整理知识,并把这些知识分享给他人。

@mainlove
mainlove / gist:9065890
Last active August 29, 2015 13:56
关于symphony和noty的共识

关于symphony和noty的的共识

symphony 是收集 ,整合,提供和显示 共享(知识信息)的开放平台

  • 搜集: 某类知识网站 通过 symphony上传
  • 整合: 内容和标签等整合
  • 提供: 提供 某类知识网站 信息
  • 显示: 本身symphony 就是一个大型的知识库

symphony api : 负责具体知识信息网站和symphony的交流,推和拉