Skip to content

Instantly share code, notes, and snippets.

View tallakt's full-sized avatar

Tallak Tveide tallakt

View GitHub Profile
@tallakt
tallakt / .vimrc
Last active December 1, 2017 23:29
VIM setup
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'altercation/vim-colors-solarized'
Plug 'elixir-lang/vim-elixir'
#old style
a={}
a[:test] = {}
a[:test][:second_test] = 'Hello hash!'
# new style
# emulates working with directories
b = {}
b/:test = {}
b/:test/:second_test = 'Hello hash!'
require 'win32ole'
opc_automation = WIN32OLE::new 'OPC.Automation'
# get list of servers
opc_automation.GetOPCServers
# Connect to specific server
opc_automation.connect 'Matrikon.OPC.Simulation.1'