Skip to content

Instantly share code, notes, and snippets.

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
"""
Implements a simple HTTP/1.0 Server
"""
import socket
def handle_request(request):
"""Handles the HTTP request."""
@joaoventura
joaoventura / sierpinski.py
Created February 15, 2016 12:05
Sierpinski Triangle (with the animations)
"""
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
"""
Implements linear search and probabilistic search to analyse time complexity.
"""
import random
from matplotlib import pyplot as plt
@joaoventura
joaoventura / binary_search.py
Created December 16, 2015 20:17
Comparison of linear-search and binary-search algorithms
"""
Implements linear search and binary search to analyse time complexity.
"""
import random
from matplotlib import pyplot as plt
# 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.