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
buildscript { | |
ext { | |
springBootVersion = '1.4.0.BUILD-SNAPSHOT' | |
} | |
repositories { | |
mavenCentral() | |
maven { url "https://repo.spring.io/snapshot" } | |
maven { url "https://repo.spring.io/milestone" } | |
} | |
dependencies { |
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
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>HTML5 Canvas Drawing Board</title> | |
<script type="text/JavaScript" src="https://code.jquery.com/jquery-2.2.0.min.js"></script> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
} |
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
/** | |
* Automatically applies "p" and "br" markup to text. | |
* Basically [nl2br](http://php.net/nl2br) on steroids. | |
* | |
* echo Text::auto_p($text); | |
* | |
* [!!] This method is not foolproof since it uses regex to parse HTML. | |
* | |
* @param string $str subject | |
* @param boolean $br convert single linebreaks to <br /> |
NewerOlder