Skip to content

Instantly share code, notes, and snippets.

drinkjava2 /
Created Jan 19, 2018 — forked from lukas-h/
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.


  • Badges are made with
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
  • Github has a new autodetection of the LICENSE file, which shows up the license at the repo overview
drinkjava2 / gist:c2d302c1f2c0f0f6147b81151ff3d838
Last active May 12, 2017
A demo shows how to let Java support multiple line Strings
View gist:c2d302c1f2c0f0f6147b81151ff3d838
Here is a method to let Java suppor multiple line Strings, and to make it run on product server, need copy source code to
class path and change ".java" to ".sql" suffix:
This demo shows how to use Java file as the SQL template and inject sql parameters by use Threadlocal.
public class SqlTemplateDemo extends TestBase {
public static class InsertUser extends SqlTemplate {
public InsertUser(Object name, Object address, Object age){