Skip to content

Instantly share code, notes, and snippets.

Bala Juluri, PhD plasmon360

Block or report user

Report or block plasmon360

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
plasmon360 /
Created Dec 3, 2019
Python class to control SP2150i Monochromator pyvisa
Created on Fri Sep 19 18:11:40 2014
@author: Bala Krishna Juluri
from visa import *
import time
#assumes connected with USB. Drivers are installed. Needs pyvisa for communication.
# There is no need to use visa write command for SP2150. because all commands are ask type (you write something and get a confirmation back saying OK)
plasmon360 / gist:71d4f6fc559e71362e09bb64dd6a1fa3
Created Apr 14, 2016
Fitting Complex Metal Dielectric Functions with Differential Evolution Method
View gist:71d4f6fc559e71362e09bb64dd6a1fa3
"cells": [
"cell_type": "markdown",
"metadata": {},
"source": [
"The real and imaginary part of dielectric permittivity of the metals is important to simulate the optical properties of metal films and nanoparticles. Permittivity data is obtained experimentally by ellipsometry and is fitted with analytical models. The most common model for fitting experimental data is with Drude-Lorentz model shown below. \n",
plasmon360 /
Created Sep 23, 2015
Calculates payments and amortization table.
home_price = 300000
down_payment = 20 # in percent
principal = home_price * (1 - down_payment / 100.0)
yearly_interest_rate = 3.710 # in percent
number_of_years = 30
pay_periods_per_year = 12
def remaining_at_end(monthly_payment, principal, number_of_years, pay_periods_per_year, yearly_interest_rate):
remaining = principal
plasmon360 / gist:ed5223a391370c61b4a3
Last active Aug 29, 2015
Airtel Tune on Arduino
View gist:ed5223a391370c61b4a3
Plays a Airtel Melody
Notes taken from
Bala Krishna Juluri
plasmon360 /
Last active Feb 8, 2017
python Class for communicating Rigol Dp832 programmable power supply
# -*- coding: utf-8 -*-
Created on Sat Dec 21 13:57:32 2013
@author: bjuluri
Uses Pyvisa for commounication
from visa import *
import time, sys
plasmon360 /
Created Feb 14, 2015
Python code to read and upload weight information form a weighing scale.
import pigpio
import time
import sys
from datetime import datetime
from collections import Counter
import numpy as np
import plotly.plotly as py
from plotly.graph_objs import *
#command 1 =[0, 0, 0, 0, 0, 0, 1, 1]='0x03'
You can’t perform that action at this time.