This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Controller | |
public class HelloController { | |
@RequestMapping(value = "/dayu.png", method = RequestMethod.GET, produces = {MediaType.IMAGE_PNG_VALUE}) | |
public void sayHello(HttpServletRequest request, HttpServletResponse response) throws IOException { | |
// TODO 调用打点 service | |
HttpSession session = request.getSession(); | |
Integer width = 30; | |
Integer height = 20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var constants = require('./constants'); | |
var path = require('path'); | |
var webpack = require('webpack'); | |
module.exports = { | |
entry: { | |
app: [ | |
'webpack-dev-server/client?http://0.0.0.0:8080', | |
'webpack/hot/only-dev-server', | |
'./src/main.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="sidebar" className="sidebar responsive"> | |
<div className="sidebar-shortcuts" id="sidebar-shortcuts"> | |
<div className="sidebar-shortcuts-large" id="sidebar-shortcuts-large"> | |
<button className="btn btn-success"> | |
<i className="ace-icon fa fa-signal"></i> | |
</button> | |
<button className="btn btn-info"> | |
<i className="ace-icon fa fa-pencil"></i> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="navbar" className="navbar navbar-default"> | |
<div className="navbar-container" id="navbar-container"> | |
<button type="button" className="navbar-toggle menu-toggler pull-left" id="menu-toggler"> | |
<span className="sr-only">Toggle sidebar</span> | |
<span className="icon-bar"></span> | |
<span className="icon-bar"></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="sidebar" className="sidebar h-sidebar navbar-collapse collapse"> | |
<ul className="nav nav-list"> | |
<li className="hover"> | |
<a href="index.html"> | |
<i className="menu-icon fa fa-tachometer"></i> | |
<span className="menu-text"> Dashboard </span> | |
</a> | |
<b className="arrow"></b> | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="navbar" class="navbar navbar-default navbar-collapse h-navbar"> | |
<div class="navbar-container" id="navbar-container"> | |
<div class="navbar-header pull-left"> | |
<a href="#" class="navbar-brand"> | |
<small> | |
<i class="fa fa-leaf"></i> | |
Ace Admin | |
</small> | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('coffee-script').register(); | |
require('./gulp'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
copy: { | |
dist: { | |
cwd: 'app', | |
src: ['**', '!css/**', '!**/*.coffee', '!js/**', '!lib/**'], | |
dest: 'dist', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
src: 'app', | |
build: 'build', | |
dist: 'dist', | |
// build is to process all stylus/coffee to css/js | |
// dist is to compress css/js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum Methodologies { | |
Evo(5), | |
XP(21), | |
Scrum(30); | |
final int daysInIteration | |
Methodologies(days) { daysInIteration = days } | |
def iterationDetails() { | |
println "${this} recommends $daysInIteration days for iteration" |
NewerOlder