This file contains 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
function! s:set_size(...) | |
" https://github.com/equalsraf/neovim-qt/issues/251 | |
py3 << EOF | |
import vim | |
from ctypes import * | |
u32 = WinDLL('user32.dll') | |
GetForegroundWindow = u32.GetForegroundWindow | |
This file contains 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
function! s:set_size(...) | |
" https://github.com/equalsraf/neovim-qt/issues/251 | |
py3 << EOF | |
import vim | |
from ctypes import * | |
u32 = WinDLL('user32.dll') | |
# Parent PID code gotten from | |
# http://code.activestate.com/recipes/578133-get-parent-process-pid-win32/ | |
def get_parent_pid(pid): |
This file contains 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
#/bin/sh | |
# Usage: Download the scripts needed to submit EECS370 projects and modifies them to run. | |
# The scripts are downloaded to the current directory. | |
# This script may break if the instructors modify the submission scripts. | |
# NOTE: You will probably need to download some perl modules to run submit370. | |
# I got it to work by installing Email::Date::Format | |
# Using `cpan Email::Date::Format` _should_ have worked, but I couldn't cpan working | |
# On Ubuntu 14.04 (on Windows Subsystem for Linux) I got it working by calling |
This file contains 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
call plug#begin('/Users/adno/.config/nvim/bundle')¬ | |
Plug 'Shougo/neosnippet.vim'¬ | |
Plug 'honza/vim-snippets'¬ | |
call plug#end()¬ | |
¬ | |
imap <C-j> <Plug>(neosnippet_expand_or_jump)¬ | |
" smap <C-j> <Plug>(neosnippet_expand_or_jump)¬ | |
xmap <C-j> <Plug>(neosnippet_expand_target)¬ |
This file contains 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
" gVim looks for plugins in vimfiles instead of .vim in Windows | |
if has('gui_win32') | |
let s:vimDirectory=expand("$HOME/vimfiles") | |
else | |
let s:vimDirectory=expand("$HOME/.vim") | |
endif | |
" Download the manager if it isn't yet. | |
if empty(glob(expand(s:vimDirectory . '/autoload/plug.vim'))) |
This file contains 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
#include<iostream> | |
using namespace std; | |
// I had three types of structs. One contained another. That one contained an array of an other as well as a pointer to one. | |
struct Bar { | |
int value1; | |
}; | |
struct Foo { | |
Bar bars[5]; | |
Bar *next; | |
}; |
This file contains 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
#include<iostream> | |
using namespace std; | |
// I had three types of structs. One contained another. That one contained an array of an other as well as a pointer to one. | |
struct Bar { | |
int value1; | |
}; | |
struct Foo { | |
Bar bars[5]; | |
Bar *next; | |
}; |
This file contains 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
#include<iostream> | |
using namespace std; | |
// I had three types of structs. One contained another. That one contained an array of an other as well as a pointer to one. | |
struct Bar { | |
int value1; | |
}; | |
struct Foo { | |
Bar bars[5]; | |
Bar *next; | |
}; |