Skip to content

Instantly share code, notes, and snippets.

View Vasuji's full-sized avatar
🎯
Focusing

D. Sigdel Vasuji

🎯
Focusing
  • Mindverse Computing
  • Seattle, WA
  • 04:07 (UTC -12:00)
  • X @SigdelPhx
View GitHub Profile
import matplotlib.pyplot as plt
# Additional lists to store properties at each step
magnetizations = []
energies = []
heat_capacities = []
# Run the simulation
for i in range(num_steps):
lattice = metropolis_step(lattice)
@Vasuji
Vasuji / ising2d-montecarlo.py
Created June 1, 2024 00:39
Monte Carlo simulation of 2D Ising model
import numpy as np
# Set parameters
J = 1.0 # Interaction energy
h = 0.0 # External magnetic field
kT = 1.0 # Temperature times Boltzmann's constant
num_steps = 10000 # Number of steps in the simulation
N = 10 # Size of the lattice, N x N
# Initialize lattice with random spins
@Vasuji
Vasuji / ising-model-agents.py
Created May 31, 2024 23:20
Statistical Mechanics modeling with multi-agent Ai
import os
from crewai import Agent, Task, Crew, Process
from crewai_tools import SerperDevTool
# Define tools
search_tool = SerperDevTool()
# Define agents
theory_agent = Agent(
role='Theory Agent',
@Vasuji
Vasuji / gist:1a89408bcfa2f6c61688edc95fdddbe2
Created July 27, 2021 04:56 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@Vasuji
Vasuji / git_cheat-sheet.md
Created September 25, 2019 22:11 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
@Vasuji
Vasuji / index.html
Created August 20, 2019 23:12
Solid Gauge
<script src="https://www.amcharts.com/lib/4/core.js"></script>
<script src="https://www.amcharts.com/lib/4/charts.js"></script>
<script src="https://www.amcharts.com/lib/4/themes/animated.js"></script>
<div id="chartdiv"></div>
#BART (Bayesian Additive Regression Tree) Models
library(BayesTree)
trainingdata <- read.csv("Kaggle_training.csv")
testdata <- read.csv("sorted_test.csv")
soil_properties <- c("Ca", "P", "pH", "SOC", "Sand")
# CO2_bands <- 2656:2670
names(trainingdata)[2656:2670]