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.kaishengit.util; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
public class DateUtil { | |
public static String getNiceDate(String dateString) { | |
String result = dateString; |
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
require 'sinatra' | |
require 'dalli' | |
require 'json' | |
get '/count' do | |
res = '' | |
services = JSON.parse(ENV['VCAP_SERVICES']) | |
credentials = services["memcached-1.4.10"].first["credentials"] | |
host = credentials['host'] |
NewerOlder