Skip to content

Instantly share code, notes, and snippets.

@macrotea
macrotea / 0_reuse_code.js
Last active August 29, 2015 14:08
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
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ attribute name="thispage" type="org.springframework.data.domain.Page" required="true" rtexprvalue="true" description="The current Page"%>
<c:set var="pageNumber" value="${thispage.number}" />
<c:set var="maxPages" value="${thispage.totalPages}" />
<c:set var="size" value="${thispage.size}" />
<div class="span12">
1、SQL中的having子句用来干啥的?
2、group by 可以对多个列进行分组吗?
3、用group by是否可以实现机器学习中的聚类算法?
4、常用的对称加密算法、非对称加密算法、HASH算法有哪些?
5、机器学习中的过拟合是什么意思?
6、什么是指令周期?一秒可以执行多少条指令?
7、JAVA中的内存可见性是什么意思?
8、有哪些常见的编程范型?
9、常用的软件建模方法有哪些?
10、数据结构中常用的树有哪些?分别用来解决什么问题?
@macrotea
macrotea / set_path.bat
Created May 21, 2014 07:53
基于bat命令添加环境变量
@echo off
set /p binPath=input your new bin path:
echo.
echo The original path value :
echo.
echo %path%
echo.
echo The new path value :
echo.
setx path "%binPath%;%path%" -m
@macrotea
macrotea / hosts.bat
Created May 21, 2014 07:52
基于bat命令添加hosts
@echo off
rem author: macrotea@qq.com / @Macrotea / macrotea.cn
:: get ip and site
set /p ip=ip:
set /p site=site:
:: write
@macrotea
macrotea / git-commit-push.bat
Last active August 29, 2015 14:01
基于bat命令的git项目提交
rem author: macrotea@qq.com / @Macrotea / macrotea.cn
@echo off
:: get user input content
set /p repoType=is it git@oschina repository? (y or n) :
set /p repoName=input your repository name :
:: set /p projectTypeNumber=input your project type number (1:java 2:web 3:nodejs) :
@macrotea
macrotea / Shell的类型转换.md
Created May 10, 2014 16:04
show you how to switch the shell type

show current shell type

  • echo $SHELL

switch shell type to sh

  • sh

which shell using now after switch

  • echo $0

switch shell type to tcsh

@macrotea
macrotea / Shell命令实践-1-2014-5-10.md
Created May 10, 2014 10:18
shell command in practice and record for macrotea.cn/tevi video

change the password of macrotea

  • sudo passwd macrotea

list files

  • ls
  • ls --help
  • ls -a
  • ls -al
@macrotea
macrotea / sdfsdf.txt
Created April 26, 2014 16:13
dsfsdfds
我爱你中国
sdfsdfsdfsd
sdfsdf
sdfsdfs
@macrotea
macrotea / 提交本地项目文件到github的操作命令.txt
Created April 26, 2014 02:10
提交本地项目文件到github的操作命令
在github上创建一个库: https://github.com/macrotea/nodejs-bower
进入本地文件夹: ndoejs-bower,然后提交本地文件到远程库的命令如下:
D:\workspace\javascript\nodejs-bower>git init
D:\workspace\javascript\nodejs-bower>git add .
D:\workspace\javascript\nodejs-bower>git commit -m "init"
D:\workspace\javascript\nodejs-bower>git remote add origin https://github.com/macrotea/nodejs-bower
D:\workspace\javascript\nodejs-bower>git push -u origin master