Skip to content

Instantly share code, notes, and snippets.

@moul
Last active September 9, 2023 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moul/108c498d99542aae3d5fe6623f1e7638 to your computer and use it in GitHub Desktop.
Save moul/108c498d99542aae3d5fe6623f1e7638 to your computer and use it in GitHub Desktop.
Life in Weeks - Dev
processProfiles({
"Einstein": {
"birthDate": "1879-03-14",
"title": "Einstein’s Life in Weeks",
"yearsToShow": "76",
"eventsData": {
"events": [
{ "begin": "1895-10-03", "end": "1900-07-28", "description": "Studied at Zurich Polytechnic", "color": "#DEB887" },
{ "begin": "1902-06-01", "end": "1909-01-15", "description": "Worked at Swiss Patent Office in Bern", "color": "#8B4513" },
{ "begin": "1902-10-16", "end": "1909-07-15", "description": "Employed at Swiss Patent Office", "color": "#8B4513" },
{ "begin": "1912-08-15", "end": "1914-07-03", "description": "Professor at the Zurich Polytechnic", "color": "#FF69B4" },
{ "begin": "1912-10-01", "end": "1914-07-31", "description": "Professor at ETH Zurich", "color": "#A52A2A" },
{ "begin": "1916-03-20", "end": "1932-10-01", "description": "Director of the Kaiser Wilhelm Institute and professor at Humboldt University of Berlin", "color": "#8A2BE2" },
{ "begin": "1919-03-14", "end": "1936-02-14", "description": "Married to Elsa Einstein", "color": "#FF69B4" },
{ "begin": "1930-12-03", "end": "1932-03-28", "description": "Visited the U.S. during which he was offered a position at the Institute for Advanced Study", "color": "#E6E6FA" },
{ "begin": "1933-10-17", "end": "1955-04-18", "description": "Moved to the U.S. and joined the Institute for Advanced Study in Princeton, New Jersey", "color": "#FA8072" },
{ "begin": "1936-01-05", "end": "1945-01-05", "description": "Works on his Unified Field Theory", "color": "#4B0082" },
{ "begin": "1950-01-01", "end": "1955-04-18", "description": "Worked on his unsuccessful attempt to unify the forces of nature", "color": "#FFA07A" },
{ "date": "1905-09-26", "description": "Published the special theory of relativity in 'On the Electrodynamics of Moving Bodies'", "color": "#20B2AA" },
{ "date": "1905-01-01", "description": "Annus Mirabilis papers", "color": "#FFD700" },
{ "date": "1915-11-25", "description": "Presented the field equations of general relativity", "color": "#C0C0C0" },
{ "date": "1916-11-25", "description": "Published theory of general relativity", "color": "#BDB76B" },
{ "date": "1917-01-01", "description": "Introduced the idea of stimulated emission", "color": "#B0C4DE" },
{ "date": "1917-08-02", "description": "Developed the Einstein-Smoluchowski relation", "color": "#ADD8E6" },
{ "date": "1919-05-29", "description": "Solar eclipse proves Einstein's theory of general relativity", "color": "#FFD700" },
{ "date": "1921-01-01", "description": "Wins Nobel Prize in Physics", "color": "#DAA520" },
{ "date": "1921-11-09", "description": "Won the Nobel Prize in Physics for his work on the photoelectric effect", "color": "#FF6347" },
{ "date": "1925-01-21", "description": "Publishes the paper on quantum theory of the monatomic ideal gas", "color": "#FF4500" },
{ "date": "1933-03-04", "description": "Emigrated to the USA after Hitler's rise to power", "color": "#228B22" },
{ "date": "1935-03-24", "description": "With Podolsky & Rosen, publishes the EPR Paradox paper", "color": "#7CFC00" },
{ "date": "1939-08-02", "description": "Signs the Einstein-Szilard letter to Roosevelt, urging atomic research", "color": "#808080" },
{ "date": "1940-10-01", "description": "Became an American citizen while retaining his Swiss citizenship", "color": "#FFDEAD" },
{ "date": "1946-04-10", "description": "Speaks out against racism, calling it America's 'worst disease'", "color": "#FF6347" },
{ "date": "1948-12-05", "description": "Publishes a paper on the Quantum Theory of Fields", "color": "#6A5ACD" },
{ "date": "1950-07-09", "description": "Releases the Einstein-Rosen paper, proposing the existence of wormholes", "color": "#FF4500" },
{ "date": "1952-11-17", "description": "Offered the presidency of Israel, but declines", "color": "#8A2BE2" },
{ "date": "1954-04-15", "description": "Writes a letter to Maurice Solovine, now known as 'God letter'", "color": "#D2691E" },
{ "date": "1955-04-18", "description": "Died in Princeton, New Jersey", "color": "#000000" }
]
}
},
"Gandhi": {
"birthDate": "1869-10-02",
"title": "Gandhi’s Life in Weeks",
"yearsToShow": "79",
"eventsData": {
"events": [
{ "begin": "1888-09-04", "end": "1891-06-10", "description": "Studies law in London", "color": "#FFA500" },
{ "begin": "1891-06-11", "end": "1893-04-22", "description": "Practices law in India", "color": "#20B2AA" },
{ "begin": "1893-04-23", "end": "1914-12-18", "description": "Works as a lawyer and civil rights activist in South Africa", "color": "#DB7093" },
{ "begin": "1915-01-09", "end": "1916-12-31", "description": "Establishes Sabarmati Ashram in Ahmedabad", "color": "#FF6347" },
{ "begin": "1917-03-18", "end": "1917-06-30", "description": "Champaran Satyagraha for rights of Indigo farmers", "color": "#FFD700" },
{ "begin": "1918-03-10", "end": "1918-06-30", "description": "Starts the Kheda Satyagraha", "color": "#8A2BE2" },
{ "begin": "1920-08-01", "end": "1922-02-11", "description": "Non-Cooperation Movement", "color": "#DA70D6" },
{ "begin": "1930-03-12", "end": "1930-04-06", "description": "Dandi March", "color": "#D4AF37" },
{ "begin": "1942-08-08", "end": "1942-12-31", "description": "Quit India Movement", "color": "#C0C0C0" },
{ "date": "1919-04-13", "description": "Jallianwala Bagh massacre; intensifies freedom movement", "color": "#FF4500" },
{ "date": "1947-08-15", "description": "India gains independence", "color": "#32CD32" },
{ "date": "1948-01-30", "description": "Assassinated in New Delhi", "color": "#B22222" },
{ "date": "1888-09-04", "description": "Leaves for London to study law", "color": "#FFA500" },
{ "date": "1891-06-10", "description": "Returns to India after passing the bar in England", "color": "#20B2AA" },
{ "date": "1893-04-23", "description": "Goes to South Africa to work on a case", "color": "#DB7093" },
{ "date": "1906-08-11", "description": "Starts his first non-violent civil disobedience in South Africa", "color": "#ADFF2F" },
{ "date": "1915-01-09", "description": "Returns to India from South Africa", "color": "#FF6347" },
{ "date": "1917-03-18", "description": "Champaran Satyagraha for rights of Indigo farmers", "color": "#FFD700" },
{ "date": "1918-03-10", "description": "Starts the Kheda Satyagraha", "color": "#8A2BE2" },
{ "date": "1919-04-13", "description": "Jallianwala Bagh massacre; intensifies freedom movement", "color": "#FF4500" },
{ "date": "1920-08-01", "description": "Launches Non-Cooperation Movement", "color": "#DA70D6" },
{ "date": "1930-03-12", "description": "Start of Dandi March", "color": "#D4AF37" },
{ "date": "1942-08-08", "description": "Launch of Quit India Movement", "color": "#C0C0C0" },
{ "date": "1947-08-15", "description": "India gains independence", "color": "#32CD32" },
{ "date": "1948-01-30", "description": "Assassinated in New Delhi", "color": "#B22222" },
]
}
},
"Jesus": {
"birthDate": "0000-12-25",
"title": "Jesus’ Life in Weeks",
"yearsToShow": "33",
"eventsData": {
"events": [
{ "begin": "0000-12-25", "end": "0000-12-25", "description": "Birth in Bethlehem", "color": "#FFA500" },
{ "date": "0012-01-01", "description": "Jesus' visit to the Temple in Jerusalem as a child", "color": "#20B2AA" },
{ "begin": "0026-01-01", "end": "0029-01-01", "description": "Baptism by John the Baptist and beginning of public ministry", "color": "#DB7093" },
{ "begin": "0029-03-01", "end": "0029-10-01", "description": "Sermon on the Mount", "color": "#8A2BE2" },
{ "begin": "0030-03-25", "end": "0030-03-30", "description": "Passion Week including Last Supper", "color": "#FF6347" },
{ "date": "0030-04-05", "description": "Crucifixion and death in Jerusalem", "color": "#FF4500" },
{ "date": "0030-04-08", "description": "Resurrection", "color": "#32CD32" },
{ "begin": "0030-04-08", "end": "0030-05-25", "description": "Appearances and teachings post-resurrection", "color": "#DA70D6" },
{ "date": "0030-05-28", "description": "Ascension into heaven", "color": "#D4AF37" },
{ "date": "0030-04-05", "description": "Crucifixion (approximated)", "color": "#D4AF37" }
]
}
},
"Elon Musk": {
"birthDate": "1971-06-28",
"title": "Elon Musk’s Life in Weeks",
"yearsToShow": "100",
"eventsData": {
"events": [
{ "date": "2002-03-14", "description": "Founded SpaceX", "color": "#D4AF37" },
{ "date": "2004-02-01", "description": "Joined Tesla Motors", "color": "#C0C0C0" }
]
}
},
"Steve Jobs": {
"birthDate": "1955-02-24",
"title": "Steve Jobs’ Life in Weeks",
"yearsToShow": "56",
"eventsData": {
"events": [
{ "date": "1976-04-01", "description": "Founded Apple with Wozniak", "color": "#D4AF37" },
{ "date": "2007-01-09", "description": "Introduced the iPhone", "color": "#C0C0C0" }
]
}
}
});
@moul
Copy link
Author

moul commented Sep 9, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment