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
| # refer http://www.jayway.com/2014/01/15/how-to-switch-jdk-version-on-mac-os-x-maverick/ | |
| #creating a special home for Java 8 | |
| export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8) | |
| #creating a special home for Java 7 | |
| export JAVA_7_HOME=$(/usr/libexec/java_home -v1.7) | |
| #creating a special home for Java 6 | |
| export JAVA_6_HOME=$(/usr/libexec/java_home -v1.6) |
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
| private byte[] downloadFile(String downloadUrl) throws MalformedURLException, | |
| IOException, ProtocolException { | |
| URL url = new URL(downloadUrl); | |
| HttpURLConnection connection = (HttpURLConnection) url.openConnection(); | |
| connection.setRequestMethod("GET"); | |
| ReadableByteChannel src = Channels.newChannel(connection.getInputStream()); | |
| ByteArrayOutputStream baos = new ByteArrayOutputStream(); | |
| WritableByteChannel dest = Channels.newChannel(baos); | |
| ChannelTools.fastChannelCopy(src, dest); | |
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
| export PS1='\h:\w`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\[\033[37m\]$\[\033[00m\] ' |
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
| -module(ctemplate). | |
| -compile(export_all). | |
| start() -> | |
| spawn(fun() -> loop([]) end). | |
| loop(X) -> | |
| receive | |
| Any -> | |
| io:format("Received: ~p~n", [Any]), |
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
| Object principal = null; // fix this | |
| Object credentials = null; // fix this | |
| Authentication auth = new org.springframework.security.authentication.TestingAuthenticationToken(principal, credentials); | |
| SecurityContextHolder.getContext().setAuthentication(auth); |
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
| 'Segoe UI','Helvetica Neue',Helvetica,Arial,"나눔고딕",NanumGothic,'Nanum Gothic',sans-serif |
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
| <!--[if lte IE 8]> | |
| <script> | |
| document.createElement('ng-include'); | |
| document.createElement('ng-pluralize'); | |
| document.createElement('ng-view'); | |
| // Optionally these for CSS | |
| document.createElement('ng:include'); | |
| document.createElement('ng:pluralize'); | |
| document.createElement('ng:view'); | |
| </script> |
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
| /* borderless table */ | |
| .table.table-borderless td, .table.table-borderless th { | |
| border: 0 !important; | |
| } | |
| .table.table-borderless { | |
| margin-bottom: 0px; | |
| } |
NewerOlder