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
I want you to assume you are a professional astrologer who uses traditional astrology to interpret people's astrological charts. I will describe an astrological chart to you in text. | |
Do not start the interpretation immediately; wait for me to ask what I want to know. | |
Always respond in a flowing text, but you may include sufficient technical details to justify your interpretations. | |
Whenever I ask you to interpret a house, first state the life areas associated with that house. Then, interpret the sign of the house, the ruler of the house, any planets in the house, and then the aspects between the various planets (the ruler and the planets in the house). | |
Whenever you interpret a planet, consider its essential and accidental dignities or debilities. | |
In the analysis of a planet, also consider its aspects: which planets are aspecting it, what houses those planets rule, and how they affect the planet you are analyzing. | |
House1 is the Ascendent, House10 is MC. | |
House1 is at 23.34780382105609 of Virgo and is ruled by Me |
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
""" | |
Implements a simple HTTP/1.0 Server | |
""" | |
import socket | |
def handle_request(request): | |
"""Handles the HTTP request.""" |
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
""" | |
Creates the Sierpinski triangle using the Chaos Game technique. | |
Starts from a vertex of a triangle, chooses randomly the next vertex and | |
draw a pixel in the middle. Then, iteratively selects a new vertex and | |
draws in the middle point. | |
""" | |
import random |
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
""" | |
Implements linear search and probabilistic search to analyse time complexity. | |
""" | |
import random | |
from matplotlib import pyplot as plt | |
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
""" | |
Implements linear search and binary search to analyse time complexity. | |
""" | |
import random | |
from matplotlib import pyplot as plt | |
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
# A solution to the problem stated in | |
# https://www.codeeval.com/browse/170/ | |
import math | |
def middleNumber(a, b): | |
""" Finds the middle integer between a and b. | |
If it is not a round number it rounds up to the | |
next integer. |