Skip to content

Instantly share code, notes, and snippets.

View theideasmith's full-sized avatar

Akiva Lipshitz theideasmith

View GitHub Profile
@theideasmith
theideasmith / exodus.elyonscript
Created September 4, 2023 23:47
ChatGPT generated
Certainly! Here's a more comprehensive rendition of our creative ElyonScript that ties together both the storm() command, which acts in response to immorality, and the Exodus narrative:
elyonscript
Copy code
// ElyonScript: A Divine Programming Language
// Define the Universe
universe Earth;
@theideasmith
theideasmith / quantum simulation.ma
Created December 29, 2022 16:25
Solving for the eigenvectors and eigenvalues of the quantum hamiltonian
(*Define the potential energy function*)
potential[x_] := x^2
(*Set the mass and Planck's constant*)
mass = 1;
hbar = 1;
(*Set the range of x values and the number of points to use*)
xMin = -5;
xMax = 5;
@theideasmith
theideasmith / shabbat.hs
Last active December 30, 2021 00:15
Demonstrating symbolic structure of Halachot
data MishkanCategory = Zorea | Choresh | Kotzer | Meamer | Dash | Zoreh | Borer | Tochen | Meraked | Losh | Bishul | Gozez | Malben | Minaphetz | Tzovea | Toveh | Misach | Oreg | Potzea | Koysher | Matir | Tofer | Korea | Tzad | Shochet | Maphshit | Miabid | Mimachek | Misartet | Michatech | Kotev | Mochek | Boneh | Soter | Michabeh | Mavir | Makeh | Hotzaah
data Tozah = MishkanCategory | None
data Peulah = MishkanCategory | None
data Maaseh = Maaseh Peulah Tozah
type Action = MishkanCategory
data Chayav = Chayav Action
data Assur = Assur Action
data Ruling = Chayav Action | Assur Action | Patur
@theideasmith
theideasmith / simplespinmodel.py
Created February 26, 2020 03:18
Basic Thermodynamics Simulations
import numpy as np
import matplotlib.pyplot as plt
N = 10**4
xs = np.random.binomial(1, 0.5, size=(N, 100))
U = np.sum(xs, axis=1)
plt.hist(U, bins=100)
@theideasmith
theideasmith / main.py
Created December 4, 2019 23:37
The 3x+1 Iterator (The Collatz Problem, which you'll soon see gets quite interesting)
import matplotlib at plt
import numpy as npy
def f(arr, n, goal):
if n==goal: return arr
if arr[-1]%2==0: return f(arr+[(0.5*float(arr[-1]))],n+1,goal)
else: return f(arr+[3.0*float(arr[-1])+1], n+1, goal)
N = 150
x,y = range(N), f([14],1,N)
@theideasmith
theideasmith / number_of_lags_array.py
Last active September 15, 2017 12:31
Examples for Cluster Training Management System
import sys
import os
projdir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.join(projdir, "src"))
import batch_train as btrain
import trainkit as tkit
from const import const as const
import numpy as np
from modeldb import traindb, modeldb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@theideasmith
theideasmith / README.md
Last active July 13, 2017 15:18
Columbia Cluster Submit Library

Cluster Submit Kit

Download this repo and add submitgen.py to your path in the project you are using. Then type python submitgen.py help for instructions on how to use the submit script.

Once you use submitgen.py to generate a submit script, use the proper bash command on the cluster you are using to submit it. If you are on yeti, then run sbatch submitscript.sh and if on habanero then qsub submitscript.sh.

You can add things to your path by appending export PATH="PATH:new/path to the bottom of your .bashrc file and then running source ~/.bashrc to reload your bashrc and add to path

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@theideasmith
theideasmith / const.py
Last active June 13, 2017 17:15
ANN Training Management
import os
from utilities import mkdir_p
class Constants:
def __init__(self):
self.YETI_HOME = "/u/3/a/acl2205"
self.HABANERO_HOME = "/rigel/home/acl2205"
self.GROUPNAME = "stats"
self.NATIVE_HOME="/Users/akivalipshitz"