Skip to content

Instantly share code, notes, and snippets.

View djdmsr's full-sized avatar

Hubert Souchaud djdmsr

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[{"name":"Andromeda","stars":[{"mag":2.07,"ra":2.0965,"dec":29.0908,"class":"B9p","color":"white"},{"mag":2.07,"ra":17.4325,"dec":35.6208,"class":"M0IIIvar","color":"white"},{"mag":2.1,"ra":30.9747,"dec":42.3299,"class":"K3IIb","color":"white"},{"mag":3.27,"ra":9.8317,"dec":30.8612,"class":"K3III...","color":"white"},{"mag":3.59,"ra":24.4979,"dec":48.6285,"class":"K3III","color":"#ffd8a7"},{"mag":3.62,"ra":345.4802,"dec":42.326,"class":"B6pv SB","color":"white"},{"mag":3.81,"ra":354.3905,"dec":46.4592,"class":"G8III-IV","color":"white"},{"mag":3.86,"ra":14.1879,"dec":38.4993,"class":"A5V","color":"#cad7ff"},{"mag":4.08,"ra":11.835,"dec":24.2674,"class":"K1II","color":"#ffe0af"},{"mag":4.1,"ra":24.1999,"dec":41.4064,"class":"F8V","color":"#fff7fc"},{"mag":4.15,"ra":355.1018,"dec":44.334,"class":"B9IVn","color":"white"},{"mag":4.26,"ra":17.3755,"dec":47.2418,"class":"B7III","color":"#abbfff"},{"mag":4.29,"ra":354.5341,"dec":43.2681,"class":"B8V","color":"#b1c3ff"},{"mag":4.34,"ra":9.2202,"dec":33.7194,"class":"
!function(){function t(t,a){return{type:"Feature",id:t.id,properties:t.properties,geometry:n(t.geometry,a)}}function n(t,a){if(!t)return null;if("GeometryCollection"===t.type)return{type:"GeometryCollection",geometries:object.geometries.map(function(t){return n(t,a)})};if(!ga.hasOwnProperty(t.type))return null;var r=ga[t.type];return d3.geo.stream(t,a(r)),r.result()}function a(){}function r(t){if((n=t.length)<4)return!1;for(var n,a=0,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++a<n;)r+=t[a-1][1]*t[a][0]-t[a-1][0]*t[a][1];return 0>=r}function e(t,n){for(var a=n[0],r=n[1],e=!1,o=0,i=t.length,h=i-1;i>o;h=o++){var u=t[o],M=u[0],s=u[1],c=t[h],f=c[0],v=c[1];s>r^v>r&&(f-M)*(r-s)/(v-s)+M>a&&(e=!e)}return e}function o(t){return t?t/Math.sin(t):1}function i(t){return t>0?1:0>t?-1:0}function h(t){return t>1?wa:-1>t?-wa:Math.asin(t)}function u(t){return t>1?0:-1>t?pa:Math.acos(t)}function M(t){return t>0?Math.sqrt(t):0}function s(t){function n(t,n){var a=Math.cos(t),e=Math.cos(n),o=Math.sin(n),i=e*a,h=-((1-i?Math.log(.5*(1+i)
@djdmsr
djdmsr / seasons.json
Last active February 11, 2017 08:35
Seasons date & time (24hours + GMT timezone format) from 1900 to 2099 at London
{
"1900": {
"spring-day": "03-21",
"spring-time": "01:39 GMT+0",
"summer-day": "06-21",
"summer-time": "21:40 GMT+0",
"autumn-day": "09-23",
"autumn-time": "12:20 GMT+0",
"winter-day": "12-22",
"winter-time": "06:42 GMT+0"
@djdmsr
djdmsr / zodiac.json
Last active February 12, 2017 07:53
Zodiac json data: latin names, dates [starts: l for astrologic, n for astronomic], classifications [element & mode], characters [utf8, html&xml entities] + svg path for a viewBox="0 0 32 32".
[
{
"name": "aries",
"ldate": "03-21",
"ndate": "04-18",
"element": "fire",
"mode": "cardinal",
"utf8": "♈",
"unicode": "U+2648",
"html": "&#9800;",
@djdmsr
djdmsr / seasonsISO.json
Created February 11, 2017 10:53
Universal ISO Seasons Dates & Times From 1900 to 2099, in json format
{
"1900": {
"spring": "1900-03-21T01:39:00Z",
"summer": "1900-06-21T21:40:00Z",
"autumn": "1900-09-23T12:20:00Z",
"winter": "1900-12-22T06:42:00Z"
},
"1901": {
"spring": "1901-03-21T07:24:00Z",
"summer": "1901-06-22T03:28:00Z",