I hereby claim:
- I am kevintanhongann on github.
- I am kevinhatan (https://keybase.io/kevinhatan) on keybase.
- I have a public key ASCd523HXDS-HYKcsXQjSbDuhlFYQNvH-HJzqvlUYkcPzAo
To claim this, I am signing this object:
@Grapes( | |
@Grab(group='org.springframework', module='spring-web', version='4.2.4.RELEASE') | |
) | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.web.bind.annotation.PathVariable; | |
import org.springframework.web.bind.annotation.RequestBody; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; | |
import org.springframework.web.bind.annotation.RestController; | |
import java.util.ArrayList; |
apply plugin: 'java' | |
apply plugin: 'project-report' | |
configurations.all { | |
resolutionStrategy { | |
componentSelection { | |
all { | |
if(selection.candidate.version.contains('Alpha')) || selection.candidate.version.contains('Beta')){ | |
selection.reject("rejecting non-final") | |
} |
I hereby claim:
To claim this, I am signing this object:
def esVersion = '5.6.5' | |
ext['elasticsearch.version'] = esVersion | |
ext { | |
elasticsearchVersion = esVersion | |
} | |
compile 'org.grails.plugins:elasticsearch:2.4.0.RC1' | |
compile 'org.elasticsearch.plugin:mapper-attachments:2.3.3' |
npm uninstall -g angular-cli | |
npm cache clean | |
npm install -g @angular/cli@latest | |
rm -rf node_modules | |
npm uninstall --save-dev angular-cli | |
npm install --save-dev @angular/cli@latest | |
npm install |
changeListener($event) : void { | |
this.readThis($event.target); | |
} | |
readThis(inputValue: any): void { | |
var file:File = inputValue.files[0]; | |
var myReader:FileReader = new FileReader(); | |
myReader.onloadend = (e) => { | |
this.image = myReader.result; |
import grails.gorm.transactions.Transactional | |
import groovy.json.JsonSlurper | |
import groovyx.net.http.HttpBuilder | |
import io.reactivex.Emitter | |
import io.reactivex.Observable | |
import org.springframework.http.HttpStatus | |
import static groovyx.net.http.HttpBuilder.configure | |
import groovyx.net.http.* |
<div class="carousel-inner row w-100 mx-auto" role="listbox"> | |
<div class="carousel-item col-md-4 active"> | |
<img class="img-fluid mx-auto d-block" src="//placehold.it/600x400/000/fff?text=1" alt="slide 1"> | |
</div> | |
<div class="carousel-item col-md-4"> | |
<img class="img-fluid mx-auto d-block" src="//placehold.it/600x400?text=2" alt="slide 2"> | |
</div> | |
<div class="carousel-item col-md-4"> | |
<img class="img-fluid mx-auto d-block" src="//placehold.it/600x400?text=3" alt="slide 3"> | |
</div> |
DOMAIN CLASS (Post): | |
String timeDay | |
Date date | |
static mapping = { | |
timeDay formula: "FORMATDATETIME(date, 'yyyy-MM-dd')" // h2 sql | |
//timeMonth formula: "DATE_FORMAT(time, '%Y-%m-%d')" // mysql sql | |
} | |
CONTROLLER: | |
def c = Post.createCriteria() |
plugins { | |
id "io.spring.dependency-management" version "1.0.6.RELEASE" | |
id "com.github.johnrengelman.shadow" version "4.0.2" | |
} | |
apply plugin:"application" | |
apply plugin:"groovy" | |
version "0.1" | |
group "example.micronaut.gorm" |