Skip to content

Instantly share code, notes, and snippets.

View tasercake's full-sized avatar
🕰️
Never enough time

Krishna Penukonda tasercake

🕰️
Never enough time
View GitHub Profile
@tasercake
tasercake / pyenv_macos_virtualenv.md
Last active February 18, 2024 22:22
Setting up pyenv virtualenvs on a Mac (with Homebrew)

Install Pyenv & Pyenv-virtualenv

Install Python build dependencies

xcode-select --install
brew install openssl readline sqlite3 xz zlib

Install using Homebrew

1D Game

The Idea

A fast-paced 1v1 number-based game that develops fast arithmetic skills and teaches players the order of arithmetic operations.

Gameplay

  1. Select difficulty level via switch (3 levels?) and hit the start button
  2. Random sequence of digits is generated (number of digits increases with difficulty)

Learning Lucid

28 Sep

At first glance, the Mojo board looks a lot like an Arduino. Here's hoping it's going to be just as easy to learn!

First Steps

Setting up the Mojo IDE
@tasercake
tasercake / angular_wave_function.py
Created February 27, 2017 14:10
outputs the value of the angular wave function at (theta, phi) for any given (l, m)
"""
outputs the value of the associated Legendre function P_l,m(x) at a given point.
l and m must be non-negative integers.
"""
import numpy as np
from math import pi, sqrt, cos, factorial, e
def legendre(l):
"""returns a legendre polynomial in terms of cos(theta)"""
if l == 0:
@tasercake
tasercake / radial_wave_function.py
Created February 27, 2017 14:09
outputs the value of the radial wave function at a point r for any given values of n and l
"""
outputs the value of the associated Laguerre function L_p,qmp(x) at a given point.
p and qmp must be non-negative integers.
"""
#==============================================================================
# There are 3 main functions here.
# The first returns the Laguerre function as a poly1d objectfor a given q.
# The second returns a function of one variable that is the associated Laguerre polynomial
# The third returns the value of the normalized radial wave function at r for any values of n, l
#==============================================================================