Skip to content

Instantly share code, notes, and snippets.

View hanh090's full-sized avatar

Hanh Le hanh090

  • Ho Chi Minh City
View GitHub Profile
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="example.xml" kind="src" path="src"/>
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/s4you-base"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib.local/jsp-api.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
cewolf-1.0.jar
commons-beanutils-1.7.0.jar
commons-codec-1.1.jar
commons-dbcp.jar
commons-digester-1.8.jar
commons-fileupload-1.2.1.jar
commons-httpclient-2.0-rc3.jar
commons-lang-2.3.jar
commons-lang3-3.4.jar
commons-logging-1.1.jar
[
{
"id": 1011,
"title": "Test",
"content": "Scimitar Pro RGB là chú chuột chơi game mới toanh vừa được hãng Corsair giới thiệu tại triễn lãm CES 2017 vừa qua. @1111",
"createdDate": "2017-01-19T15:49:55.649+07:00",
"type": "STATUS",
"author": {
"userId": 0,
"displayName": "Test",
@hanh090
hanh090 / gitlab-markdown-toc.js
Created December 13, 2017 03:05 — forked from gotofritz/gitlab-markdown-toc.js
creates a gitlab markdown table of contents for a README.md page
// quick and dirty snippet to creates a gitlab markdown table of contents for a README.md page
// preview gitlab page and paste in browser console
var str = "";
$('.file-content')
.find('h1, h2, h3, h4, h5, h6, h7')
.each((i, node) => {
// node.tagName is H1 H2...
let indent = Number(node.tagName[1]) - 1;
// markdown mested lists are
// - xxx
<form data-hns-namespace="form">
{/* // Info of this transect consist of observer and location id */}
<fieldset name="fs-info">
<Field type="text" caption="Datatypist" name="" />
<Field type="select" caption="Choose your transect" name="" validation="required" />
<Field type="text" caption="Observers and companions" name="" />
</fieldset>
<fieldset name="fs-event">
<Field type="date" caption="Date" validation="required" />
<Field type="hour" caption="From" />
public hasBoyfriend(Girl girl){
if(girl.body == "90-60-90"){
return 1;
}
if(girl.face LIKE "NgocTrinh" OR LIKE "MariaOzawa"){
return 0.9999;
}
if (girl.body == "90-90-90" OR girl.face LIKE "ThiNo"){
return 0;
@hanh090
hanh090 / test.java
Last active January 27, 2018 02:22
System.out.println("Do you love me?");
Scanner sc = new Scanner("System.in");
String result = sc.nextLine();
switch(result) {
case "yes": sysout("I love you too"); break;
case "no": sysout("Please choose another answer");break;
}
for(inti=0;i<Y2018.days().length;i++){
if(QA.test(Y2018.days()[i])=="BUG"){
import static java.lang.System.out;
out.println("Do you love me?");
Scanner sc=newScanner("System.in");
String result=sc.nextLine();
switch(result){
case"yes":out.println("I love you too");break;
case"no":out.println("Please choose another answer");break;
}
if var_a then
if var_b then
'using @var_b here is ok'
'using @var_b here is NOT ok'