抗战二十年

去到多远,我也铭记我起点,不会变

Leetcode题解<五>

算法分析与设计课后作业

No.1 题目链接:Gray Code 题目描述: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total nu...

Leetcode题解<四>

算法分析与设计课后作业

No.1 题目链接:Combination Sum 题目描述: Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums...

cloudgo-in&out

服务计算作业golang语言简单web应用

一、概述 设计一个 web 小应用,展示静态文件服务、js 请求支持、模板输出、表单处理、Filter 中间件设计等方面的能力。(不需要数据库支持) 二、任务要求 编程 web 应用程序 cloudgo-io。 请在项目 README.MD 给出完成任务的证据! 基本要求 支持静态文件服务 支持简单 js 访问 提交表单,并输出一个表格 对 /unknown 给...

Golang Web之Martini框架

martini框架初学及源码阅读

Martini框架是使用Go语言作为开发语言的一个强力的快速构建模块化web应用与服务的开发框架。 一、安装 go get github.com/codegangsta/martini 二、使用 可以使用如下的代码来测试我们安装的包是否可用: server.go package main import "github.com/codegangsta/martini" func ma...

golang web

golang web简单应用开发、配置与测试

web 框架与选择综合症 经过程序员多年自由发挥,你现在不得不面临海量的选择,有轻量级(做小部件,模仿 tonardo)、中重量(模仿 python Flask, 只提供 MVC 基础服务)、重量级(Java MVC,ORM 等等)。以下仅是建议: 简单应用:应选择自带库 net/http 一般 web 应用与服务开发:建议选择轻量组件 gorilla/mux + codega...

IPSec 传输模式下ESP报文的装包与拆包过程

web安全专题

一、IPsec简介 IPSec ( IP Security )是IETF(Internet Engineering Task Force,Internet工程任务组)的IPSec小组建立的一组IP安全协议集。IPSec定义了在网络层使用的安全服务,其功能包括数据加密、对网络单元的访问控制、数据源地址验证、数据完整性检查和防止重放攻击。 IPSec是安全联网的长期方向。它通过端对端的安全性来提...

使用Go语言开发selpg命令行程序

 Go语言编程

Selpg Selpg is a utility that selects page range from text input. The input can come from the file specified as the last command line parameter, and can also be from standard input when no file...

Leetcode题解<三>

算法分析与设计课后作业

No.1 题目链接:Container With Most Water 题目描述: Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the t...

Go语言乱谈之Interface

  Go编程语言学习笔记

Go不是典型的OO语言,它在语法上不支持类和继承的概念。但是Go语言引入了一种新类型—Interface,它在效果上实现了类似于C++的“多态“。Go语言官网对于Interface类型的描述是: An interface type specifies a method set called its interface. A variable of interface type can ...

一起听歌吧

 对过往的怀念叫“多余”

《山丘》是李宗盛亲自创作的一首歌,其实这首歌的旋律李宗盛早在2003年就写好了,但词是到2013年才真正完成的。李宗盛表示,2003年他初抵上海,当时是个悲伤的夏天,一个旋律进入脑海,他花了10年不停想,他想用音乐沟通一下自己的人生经历,所以就创作了《山丘》这首歌。 网易云外链接的《山丘》可能播放一会儿就会停住,可以去其他网站听,毕竟网易云音乐的版权太少问题太多… 山丘-QQ音乐 山丘-...