This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
NewerOlder