This file contains hidden or 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
/** | |
* Created by HoangLG on 12/3/2016. | |
*/ | |
public class FormUtils { | |
public static boolean isMissing(String value){ | |
return value == null || value.trim().isEmpty(); | |
} | |
public static boolean isAnyMissing(String... values) { | |
boolean isMissing = false; |
This file contains hidden or 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
//package com.example; | |
public class Solution { | |
public static void main(String[] args) { | |
int array[] = new int[4]; | |
array[0] = 2; | |
array[1] = 3; | |
array[2] = 1; | |
array[3] = 5; | |
System.out.println(Solution.solution(array)); //it should return 4 |
This file contains hidden or 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
class ArticlesController < ApplicationController | |
before_action :set_article, only: [:show, :edit, :update, :destroy] | |
# GET /articles | |
# GET /articles.json | |
def index | |
@articles = Article.all | |
@markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML) | |
end |
This file contains hidden or 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
browser-sync start --server --directory --files "*" |
NewerOlder