Skip to content

Instantly share code, notes, and snippets.

View dailybird's full-sized avatar
🏠
Working from home

杨宁 dailybird

🏠
Working from home
View GitHub Profile
@dailybird
dailybird / hollow-diamond-printer.php
Last active April 1, 2017 14:31
Print a hollow diamond.
<?php
/**
* 打印空心菱形
* @param [int] $level [层数]
* @return [void]
*/
function diamondPrinter($level){
for ($index = 1; $index <= $level; $index++) {
currentLevel($index, $level);
@dailybird
dailybird / pom.xml
Last active March 7, 2017 15:54
Pure maven config file.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.xxx</groupId>
<artifactId>Xxxx</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<java.version>1.8</java.version>