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 groovy.transform.* | |
| class Event { | |
| int version | |
| } | |
| @Immutable class ItemActivated extends Event { | |
| int id | |
| } |
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
| <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"> |
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
| <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 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
| <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 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
| 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 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
| @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 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
| @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 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 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 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
| auto lo | |
| iface lo inet loopback | |
| iface eth0 inet dhcp | |
| allow-hotplug wlan0 | |
| auto wlan0 | |
| iface wlan0 inet dhcp | |
| wpa-ssid "ssid" |