This file contains 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
angular.module('d3', []) | |
.factory('d3Service', ['$document', '$window', '$q', '$rootScope', | |
function($document, $window, $q, $rootScope) { | |
var d = $q.defer(), | |
d3service = { | |
d3: function() { return d.promise; } | |
}; | |
function onScriptLoad() { | |
// Load client in the browser | |
$rootScope.$apply(function() { d.resolve($window.d3); }); |
This file contains 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
public class Constellation_main { | |
public static void main(String[] args) { | |
System.out.println(getConstellationFromDate("10/01")); | |
} | |
private static String getConstellationFromDate(String strBirthday) { | |
int intBirthday = Integer.valueOf(strBirthday.replace("/","")); | |
if (intBirthday < 11 | intBirthday > 1231) { |
NewerOlder