Skip to content

Instantly share code, notes, and snippets.

import time
import datetime
import visa
import numpy as np
class YokogawaWT1600(visa.GpibInstrument):
__GPIB_ADDRESS = 2
def __init__(self, reset=True):
visa.GpibInstrument.__init__(self, self.__GPIB_ADDRESS, timeout=3)
@ahhsia
ahhsia / vim.rb
Created October 8, 2012 01:46 — forked from dpo/vim.rb
Homebrew formula to build vim against Homebrew Python 2.7.3 with client/server feature
# To build vim against homebrew Python 2.7.3.
# You'll also need to adjust the symbolic link of the current
# system Python framework (cf. http://goo.gl/b66fs):
#
# cd /System/Library/Frameworks/Python.framework/Versions
# sudo rm Current
# sudo ln -sf /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/Current Current
require 'formula'
@ahhsia
ahhsia / vim.rb
Created October 6, 2012 03:51 — forked from mgrouchy/vim.rb
Vim formula for Homebrew
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :tag => 'v7-3-672'
version '7.3.672'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end