ICode9

精准搜索请尝试: 精确搜索
  • Kubernetes基础:Pod的详细介绍2019-08-26 11:52:35

    本文的演练环境为基于Virtualbox搭建的Kubernetes集群,具体搭建步骤可以参考kubeadm安装kubernetes V1.11.1 集群 1. 基本概念 1.1 Pod是什么 Pod是Kubernetes中能够创建和部署的最小单元,是Kubernetes集群中的一个应用实例,总是部署在同一个节点Node上。Pod中包含了一个或多个容器

  • 理解闭包2019-08-25 14:43:53

    关于javascript闭包中的this对象 我们知道, this对象是运行时基于函数的执行环境绑定的: 在全局函数中, this等于window, 而当函数被作为某个对象的方法调用时, this等于那个对象。《 Javascript高级程序设计》 在下面的例子中, 理解闭包中的this对象。 复制代码 ``` *** var na

  • 1009 Product of Polynomials (25 分)2019-08-25 10:06:27

    1009 Product of Polynomials (25 分) This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a p

  • spring-data-elasticsearcj @Document 和 @Field 注解详解2019-08-24 12:55:25

    @Document 注解: public @interface Document { String indexName(); //索引库的名称,个人建议以项目的名称命名 String type() default ""; //类型,个人建议以实体的名称命名 short shards() default 5; //默认分区数 short replicas() default 1; //每个分区默认的备份数 String

  • vue0001 之vuejs入门2019-08-23 10:05:06

    Vue安装 1. 安装nodejs 2.安装vue的脚手架工具   官方命令行工具 npm install --global vue-cli  /   cnpm install --global vue-cli         (此命令只需要执行一次) 3.创建项目 3.1 cd 进入存放项目的目录,eg:d:\vue 3.2 vue init webpack  vue_allen_first_project;

  • poj2431Expedition2019-08-22 15:56:09

    A group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortunately managed to run over a rock and puncture the truck's fuel tank. The truck now leaks one unit of fuel every unit of di

  • first2019-08-21 18:51:22

    目录 我的第一篇博客 这不是开玩笑 你问我为什么? 我的第一篇博客 这不是开玩笑 你问我为什么? 粗的才好(滑稽) 什么!明明有人推我 ==一闪一闪亮晶晶== 我上面有人^人在这^ water?H~2~O hello world! hello world hello world print('hello nick') print('hello nick'

  • 2.1.1Remove Duplicates from Sorted Array2019-08-20 20:55:18

    description: Given a sorted array,remove the duplicates in place such that each element appear only once and return the new length; Do not allocate extra space for another array,you must do this in place with constant memory. For example,Given in

  • head first 设计模式笔记1-策略模式:模拟鸭子2019-08-18 14:53:42

    1、第一个设计原则:找出应用中可能需要变化之处,把它们独立出来,不要和那些不需要变化的代码混在一起。该原则几乎是所有设计模式背后的精神所在。   这个原则的另一种思考方式:把会变化的部分取出并封装起来,以便以后可以轻易改动或扩充此部分,二不影响不需要变化的其他部分。   2、

  • HDU - 6406 选苹果2019-08-18 14:37:56

    There is an apple tree in front of Taotao’s house. When autumn comes, n apples on the tree ripen, and Taotao will go to pick these apples. When Taotao picks apples, Taotao scans these apples from the first one to the last one. If the current apple is

  • 102-显示一个真正的页面2019-08-17 13:55:49

    1、首先我们要在FreeNote工程下,创建一个供我们学习的app,这有利于将学习代码和正式代码分开。 命令如下: lzhshn@lzhshn-Ryzen:~/PycharmProjects/FreeNote$ python3 manage.py startapp test_app 回车后,将得到一个新的文件夹:test_app。里面包括很多文件: lzhshn@lzhshn-Ryzen:~/Pych

  • Codeforces H. Kilani and the Game2019-08-16 14:00:09

    题目描述: Kilani and the Game time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Kilani is playing a game with his friends. This game can be represented as a grid of size n×m , where each cell is eith

  • .Net C# EF database first connectionstring2019-08-16 13:55:29

    <connectionStrings> <add name="CupCreditCheckDB" connectionString="metadata=res://*/CupModel.csdl|res://*/CupModel.ssdl|res://*/CupModel.msl;provider=System.Data.SqlClient;provider connection string="Server=fscnbesd0001;D

  • mysql-first day2019-08-15 12:02:22

    数据库用户名: root 密码: mysql -- 在sql 文件中表示注释-- 数据库的操作 -- 链接数据库 mysql -uroot -pmysql -- 退出数据库 exit -- 查看创建数据库 show databases; 必须有s -- 查看当前正在使用的数据库 select database(); # NULL指的

  • python之openpyxl生成excel文件2019-08-15 10:55:47

      项目需要,需要自动生成PDF测试报告。经过对比之后,选择使用了reportlab模块。 项目背景:开发一个测试平台,供测试维护测试用例,执行测试用例,并且生成测试报告(包含PDF和excel),将生成的测试报告以邮件的形式发送相关人。   excel生成代码如下: from openpyxl import load_workbookfro

  • Fast Poisson Disk Sampling2019-08-13 22:05:36

    原文链接:http://www.cnblogs.com/Jedimaster/archive/2009/11/03/1595358.html Coarse C++ implementation for "Fast Poisson disk sampling in arbitrary dimensions, R. Bridson, ACM SIGGRAPH 2007 Sketches Program".在公司实在闲的蛋疼,于是做了个

  • POJ - 1655 (点分治-树的重心)2019-08-13 22:01:21

    题目:https://vjudge.net/contest/307753#problem/D 题意:给你一棵树,让你求出一个点,让他的最大子树的节点数尽量小 思路:最大子树节点数尽量小,一看就是树的重心, 然后随便套个原来的点分治模板即可   #include<cstdio>#include<cstring>#include<cmath>#include<algorithm>#include<i

  • 二分查找2019-08-13 18:05:09

    #二分查询 #有序列表 from asyncio.log import logger def binary_search(arr,find): ''' :param arr: :param find: :return: ''' first = 0 lasted = len(arr) - 1 while first <= lasted: mid = (fir

  • C++11 新用法2019-08-13 15:51:40

    C++11 新用法 基于哈希的 map 和 set 简述 基于哈希的 map 和 set ,它们分别叫做 unordered_map, unordered_set 。数据分布越平均,性能相较 map 和 set 来说提升就更大。但由于它们基于哈希,所以并不像 map 和 set 一样能自动排序;它们都是无序的。 我做了一个测试:随机生成 \(10^7\)

  • 书籍2019-08-12 14:03:35

    1、深入理解计算机系统 Computer Systems: A Programmer's Perspective 作者: Randal E.Bryant / David O'Hallaron 译者: 龚奕利 / 雷迎春    2、编译原理: 原理、技术与工具 作者: Alfred V. Aho / Monica S.Lam / Ravi Sethi / Jeffrey D. Ullman 译者: 赵

  • 图论基础知识2019-08-11 19:55:39

    没有用的话qaq : Ummmm...图论的大部分知识本来早就有学过,只是一直没有写成博文来梳理,但既然上了qbxt DP图论就写一篇来总结下,主要是来听DP的,但...由于太菜的原因,DP听得天花乱坠QWQ ** 一,图:图是边和点组成的几何体 G=< V , E > V是点集合,E是边集 形如这样的东西就是一个图 二,图

  • 数据结构(殷人琨版)学习笔记之单链表2019-08-11 19:42:47

    原文链接:http://www.cnblogs.com/GavinDai/archive/2011/11/03/2234967.html /*************************************************************************** * file name : LinkList.h* created : 2011/11/03* description : * author : Gavin Dai X

  • @codechef - SONATR@ Sonya and Tree2019-08-11 16:53:55

    目录 @description@ @solution@ @accepted code@ @details@ @description@ 给定 p 为 0~N-1 的一个排列,并给定一棵 N 个点的树。 我们称一个包含 L 个结点的路径是“漂亮”的,当且仅当对于 0 ≤ i ≤ L-1,路径都存在 v 使得 p[v] = i,一棵树的“漂亮程度”被定义为其包含的“

  • 494. 目标和2019-08-11 14:41:22

    class Solution { public: int findTargetSumWays(vector<int>& nums, int S) { int n=nums.size(); if(n==0) return 0; map<int, int>cur; cur[nums[0]]=1; cur[-nums[0]]+=1; map<int, int>n

  • Apache Kafka(三)- Kakfa CLI 使用2019-08-11 12:03:52

    1. Topics CLI 1.1  首先启动 zookeeper 与 kafka > zookeeper-server-start.sh config/zookeeper.properties … INFO binding to port 0.0.0.0/0.0.0.0:2181 (org.apache.zookeeper.server.NIOServerCnxnFactory) INFO Expiring session 0x100ab41939d0000, timeout of 6000ms

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有