testCompileOnly - Compile dependencies for source set 'test'. +--- project :bestbooks-core | +--- org.springframework.boot:spring-boot-starter-freemarker: FAILED | +--- org.springframework.boot:spring-boot-starter-web: FAILED | +--- org.springframework.boot:spring-boot-devtools: FAILED | +--- org.springframework.boot:spring-boot-starter-actuator: FAILED | +--- org.springframework.boot:spring-boot-starter-undertow: FAILED | +--- org.springframework.boot:spring-boot-starter-security: FAILED | +--- org.springframework.boot:spring-boot-starter-data-jpa: FAILED
This file contains 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 java8tests ; | |
import java.util.function.BiFunction ; | |
import java.util.function.Function ; | |
public class Currying { | |
public void currying() { | |
// Create a function that adds 2 integers | |
BiFunction<Integer,Integer,Integer> adder = ( a, b ) -> a + b ; |
This file contains 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
@Grapes( | |
@Grab(group='org.joda', module='joda-money', version='0.9') | |
) | |
import org.joda.money.* | |
def $(amount) { | |
CurrencyUnit usd = CurrencyUnit.of("USD"); | |
Money.of(usd, amount); | |
} |
This file contains 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
@Configuration | |
@ComponentScan( | |
value = "com.actions", | |
includeFilters = @ComponentScan.Filter(value = ActionBean.class) | |
) | |
public class ApplicationConfiguration { | |
public static void main(String[] args) { | |
final AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(ApplicationConfiguration.class); | |
final OrderAction bean = annotationConfigApplicationContext.getBean(OrderAction.class); |
This file contains 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
sudo apt-get install python3-pip | |
sudo pip3 install virtualenvwrapper | |
export WORKON_HOME=~/Envs | |
mkdir -p $WORKON_HOME | |
source /usr/local/bin/virtualenvwrapper.sh | |
mkvirtualenv quotes | |
workon quotes |
This file contains 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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/0.12.0/css/semantic.min.css"> | |
</head> | |
<body> | |
<div class="ui buttons"> | |
<div class="ui button">Cancel</div> | |
<div class="or"></div> | |
<div class="ui positive button">Save</div> | |
</div> |
This file contains 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
<html> | |
<head> | |
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700' rel='stylesheet' type='text/css'> | |
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/0.12.0/css/semantic.min.css"> | |
<link rel="stylesheet" type="text/css" href="http://semantic-ui.com/stylesheets/semantic.css"> | |
</head> | |
<body id="example" class="button"> | |
<div class="ui buttons"> | |
<div class="ui button">Cancel</div> |
This file contains 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
<html> | |
<head> | |
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700' rel='stylesheet' type='text/css'> | |
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/0.12.0/css/semantic.min.css"> | |
<!-- | |
<link rel="stylesheet" type="text/css" href="http://semantic-ui.com/stylesheets/semantic.css"> | |
--> | |
</head> | |
<body id="example" class="button"> |
I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.
So it might be really unintuitive at first but lambda functions have three states.
- No VPC, where it can talk openly to the web, but can't talk to any of your AWS services.
- VPC, the default setting where the lambda function can talk to your AWS services but can't talk to the web.
- VPC with NAT, The best of both worlds, AWS services and web.