Skip to content

Instantly share code, notes, and snippets.

View ronaldo971's full-sized avatar

de la REBERDIERE Ronald ronaldo971

View GitHub Profile
@ronaldo971
ronaldo971 / FindTheNumberClosestToZero
Created December 14, 2015 19:03 — forked from tgruber5150/FindTheNumberClosestToZero
This program finds the number in an array that's closest to zero.
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 () {
/*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
@ronaldo971
ronaldo971 / angular.jsp
Last active August 29, 2015 14:07 — forked from wvuong/angular.jsp
<script>
// inject inlined constants
angular.module('app.constants', [])
.constant('contextPath', '${pageContext.request.contextPath}');
</script>