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
var StringUtils = (function(){ | |
var doCount = function(value, regex){ | |
var i,count=0,len=value.length; | |
for(i=0;i<len;i++) { | |
if(regex.test(value.charAt(i))) { | |
count++; | |
} | |
} | |
return count; |
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 couchbase.test; | |
import java.math.BigDecimal; | |
public class JoinDemo { | |
private final static BigDecimal FOUR = BigDecimal.valueOf(4); | |
private final static int roundingMode = BigDecimal.ROUND_HALF_EVEN; | |
private static BigDecimal result; |
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
#!/usr/bin/env bash | |
# -*- mode: sh; coding: us-ascii-unix -*- | |
source libstacktrace || true | |
set -e -u -E | |
MANUAL=" | |
Usage: $0 INFILE OUTFILE | |
Takes a document scan INFILE (an image) and produces a monochromatized |
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
@Controller | |
public class PaymentController { | |
public final UserService userService; | |
public final PaymentService paymentService; | |
public PaymentController(UserService userService, PaymentService paymentService) { | |
this.userService = userService; | |
this.paymentService = paymentService; | |
} |
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
// UserService.java | |
public interface UserService { | |
User getByLoging(String login); | |
void create(User user); | |
} | |
// DefaultUserService.java | |
@Component | |
@Transactional |
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.nexmo.chatapp.connector.api; | |
import com.google.common.util.concurrent.ThreadFactoryBuilder; | |
import com.nexmo.chatapp.connector.config.MonitoringServiceKeys; | |
import com.nexmo.chatapp.connector.config.ThreadPoolConfig; | |
import com.nexmo.common.server.MonitoringService; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import java.util.Collection; |
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
/* | |
* This Java source file was generated by the Gradle 'init' task. | |
*/ | |
public class App { | |
public static void main(String[] args) { | |
Shared shared = new Shared(); | |
new Produser(shared).start(); | |
new Consumer(shared).start(); | |
} |
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
import java.util.ArrayList; | |
import java.util.List; | |
import org.joda.time.LocalDate; | |
import common.BalancesOfMonthCalculator_API; | |
import common.BalancesOfMonth_API; | |
import common.Transaction_API; | |
public class BalancesCalculator implements BalancesOfMonthCalculator_API { |