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
| Run following command line. | |
| git config --global credential.helper osxkeychain | |
| Then run your git command. Here is the link that helped me figure out. https://help.github.com/articles/caching-your-github-password-in-git/ |
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
| $scope.pager = { | |
| pageChange: function(pageNum) { | |
| $scope.search(resultPager.get(pageNum)); | |
| }, | |
| next: function() { | |
| this.pageChange(resultPager.next()); | |
| }, |
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
| cd ~ | |
| ##If you want to install OpenJDK | |
| #sudo apt-get update | |
| #sudo apt-get install openjdk-8-jre-headless -y | |
| ###Or if you want to install Oracle JDK, which seems to have slightly better performance | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java8-installer |
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
| def self.circle_path(center, radius, complete_path = false) | |
| # For increased accuracy, if your data is in a localized area, add the elevation in meters to r_e below: | |
| r_e = 6378137.0 | |
| @@d2r ||= Math::PI/180 | |
| @@multipliers ||= begin | |
| segments = 16 | |
| dRad = 2*Math::PI/segments | |
| (segments + (complete_path ? 1 : 0)).times.map do |i| | |
| rads = dRad*i | |
| y = Math.sin(rads) |