Skip to content

Instantly share code, notes, and snippets.

View guenp's full-sized avatar

Guen Prawiroatmodjo guenp

View GitHub Profile
@guenp
guenp / aCMT
Last active August 29, 2015 14:09
iPython notebook on BCS theory and Josephson effect
{
"metadata": {
"name": "",
"signature": "sha256:81a558d85696d47c0f315555bae55044a150b661f4bf6f01cd04827d8abb9dc8"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@guenp
guenp / derivative.py
Last active August 29, 2015 14:10
data analysis
# derivative
def dydx(x,y):
dy = np.zeros(y.shape,np.float) #we know it will be this size
dy[0:-1] = np.diff(y)/np.diff(x)
dy[-1] = (y[-1] - y[-2])/(x[-1] - x[-2])
return dy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@guenp
guenp / QHE.ipynb
Created February 17, 2015 01:11
Nano 3 QHE experiment in ipython notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@guenp
guenp / Code.gs
Created April 30, 2015 12:14
Google apps script for creating lab journal entries with user email, date- and timestamp
function onOpen() {
// Add a menu with some items, some separators, and a sub-menu.
DocumentApp.getUi().createMenu('Utilities')
.addItem('New entry', 'insertDateStamp')
.addToUi();
}
/**
* Inserts the date at the current cursor location in boldface.
*/
@guenp
guenp / code.gs
Created August 21, 2015 09:10
Google script for creating auto header with date/time stamp in docs
function onOpen() {
// Add a menu with some items, some separators, and a sub-menu.
DocumentApp.getUi().createMenu('Utilities')
.addItem('New entry', 'insertDateStamp')
.addToUi();
}
/**
* Inserts the date at the current cursor location in boldface.
*/
@guenp
guenp / mog.py
Created July 26, 2016 21:20 — forked from colinclement/mog.py
Fit data like spectra or something to a sum of gaussians.
"""
mog.py
Mixture of gaussians. For fitting data that looks like Gaussians.
author: Colin Clement
date: 2016-2-29
"""
@guenp
guenp / iterm2-solarized.md
Created August 31, 2017 11:18 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k