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:
public void onErrorResponse(VolleyError error) { | |
int statusCode = error.networkResponse.statusCode; | |
NetworkResponse response = error.networkResponse; | |
Log.d("testerror",""+statusCode+" "+response.data); | |
// Handle your error types accordingly.For Timeout & No connection error, you can show 'retry' button. | |
// For AuthFailure, you can re login with user credentials. | |
// For ClientError, 400 & 401, Errors happening on client side when sending api request. | |
// In this case you can check how client is forming the api and debug accordingly. | |
// For ServerError 5xx, you can do retry or handle accordingly. |
@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:
package haulage.project | |
import groovyx.net.http.ContentType | |
import groovyx.net.http.HTTPBuilder | |
import groovyx.net.http.HttpResponseException | |
import static javax.servlet.http.HttpServletResponse.* | |
class CustomRestInterceptor { |
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> |