码迷,mamicode.com
首页 >  
搜索关键字:andorid templates    ( 2270个结果
springboot项目的重定向和转发
下面是idea软件创建的项目目录,这里总结了一下转发与重定向的问题,详解如下。 首先解释一下每个文件夹的作用,如果你是用的是idea创建的springboot项目,会在项目创建的一开始resources文件夹下自动创建static以及templates文件夹。也就是说项目初始时有java、resou ...
分类:编程语言   时间:2019-01-18 18:24:49    阅读次数:707
查询图表
需求分析 展示当前总人数,月活跃人数,日活跃人数 使用图表的形式展示活跃曲线 实现准备 将 static/admin/user_count.html 拖到 templates/admin/ 目录下 代码实现 实现思路: 月新增数:获取到本月第1天0点0分0秒的时间对象,然后查询最后一次登录比其大的所 ...
分类:其他好文   时间:2019-01-18 00:56:33    阅读次数:232
C++反射机制:可变参数模板实现C++反射
1. 概要 本文描述一个通过C++可变参数模板实现C++反射机制的方法。该方法非常实用,在Nebula高性能网络框架中大量应用,实现了非常强大的动态加载动态创建功能。Nebula框架在Github的仓库地址。 C++11的新特性--可变模版参数(variadic templates)是C++11新增 ...
分类:编程语言   时间:2019-01-17 21:22:06    阅读次数:188
用roles部署nginx
[root@bogon ~]# cd /etc/ansible/roles/webservs/ [root@bogon webservs]# ls handlers README.md tasks templates vars [root@bogon webservs]# ls templates/... ...
分类:其他好文   时间:2019-01-17 21:20:13    阅读次数:144
Django组件-forms
forms组件 一、app01.models.py ? 1 2 3 4 5 6 7 8 9 10 from django.db import models class UserInfo(models.Model): nid = models.BigAutoField(primary_key=True ...
分类:其他好文   时间:2019-01-16 01:05:08    阅读次数:158
T4模板之文本模板
网址:https://docs.microsoft.com/en-us/visualstudio/modeling/design-time-code-generation-by-using-t4-text-templates?view=vs-2017 T4模板在平时我们其实都会或多或少的遇到。最多的 ...
分类:其他好文   时间:2019-01-15 10:40:25    阅读次数:258
lnmp
LNMP架构环境部署1) 使用官方仓库安装Nginx [root@nginx ~]# vim etc/yum.repos.d/nginx.repo [nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/7/$basearch/g ...
分类:其他好文   时间:2019-01-14 00:20:14    阅读次数:203
静态文件相关
引用JS文件时使用: 某个文件多处被用到可以存为一个变量 使用get_static_prefix 或者 inclusion_tag 多用于返回html代码片段 示例: templatetags/my_inclusion.py templates/snippets/result.html templa ...
分类:其他好文   时间:2019-01-13 19:12:24    阅读次数:192
Idea中在代码顶部添加自定义作者和时间
一、在工具栏找到File=>settings=>Editor=>File and Code Templates 二、选择右边的File Header,在编辑框中添加自定义信息,例如: 三、然后点击应用,保存就OK啦! ...
分类:其他好文   时间:2019-01-12 23:01:46    阅读次数:301
variadic templates & pass by const reference & member operator [] in const map & gcc sucks
```c++ /// bugs code with comments #include #include #include using namespace std; class A { public: A(const std::unordered_map &ref) : ref_m(ref) {} ... ...
分类:其他好文   时间:2019-01-11 15:57:14    阅读次数:153
2270条   上一页 1 ... 49 50 51 52 53 ... 227 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!