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 org.junit.Test; | |
| public class BetterProgrammer05122012Test extends junit.framework.TestCase { | |
| public static int[] numbers = new int[] {5, 10, -5, 0, 25, 35}; | |
| public static int[] numbers2 = new int[] {5, 10, -5, -2, 0, 25, 35}; | |
| public static int[] noNegativeNumbers = new int[] {5, 10, 15, 25, 35}; | |
| @Test | |
| public void testBetterProgrammer05122012 () { |
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
| /*global angular: true, google: true, _ : true */ | |
| 'use strict'; | |
| angular.module('geocoder', ['ngStorage']).factory('Geocoder', function ($localStorage, $q, $timeout) { | |
| var locations = $localStorage.locations ? JSON.parse($localStorage.locations) : {}; | |
| var queue = []; | |
| // Amount of time (in milliseconds) to pause between each trip to the |
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
| <script> | |
| // inject inlined constants | |
| angular.module('app.constants', []) | |
| .constant('contextPath', '${pageContext.request.contextPath}'); | |
| </script> |