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
use std::{char, iter::once}; | |
use itertools::Itertools; | |
/// Return the dot product of s1 by s2. | |
/// | |
/// # Example: | |
/// | |
/// ``` | |
/// use base::dot_product; |
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
"" GENERAL OPTIONS -------------------------------------- | |
filetype indent on " Enable file-type specific indentation | |
filetype plugin on " Enable plugins | |
syntax on | |
set title | |
" Tab == 4 spaces |
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
"" INIT STUFF---------------------------------------------------------------- | |
filetype indent on | |
set termguicolors | |
set mouse=a | |
set encoding=utf-8 | |
set nohidden | |
set termguicolors | |
""" PYTHON | |
let g:python3_host_prog="/Users/hedonhermdev/VirtualEnvironments/nvim3/bin/python3.8" |
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
import pickle | |
tables = ['Micro_mstCampus', 'Micro_mstContent', 'Micro_mstContentModule', 'Micro_mstContentModuleItem', 'Micro_mstMicroSite', 'Micro_mstModule', 'Micro_mstTemplate', 'Micro_tblAcademicCampus', 'Micro_tblCampusMenu', 'Micro_tblContentBlock', 'Micro_tblContentModuleMapping', 'Micro_tblGallery', 'Micro_tblMenu', 'Micro_tblModuleRole', 'Micro_tblQuicklinksSEOname', 'Micro_tblSections', 'mstAcademicNavigation', 'mstAcivity', 'mstBanner', 'mstBlock', 'mstCampus', 'mstContent', 'mstContentModule', 'mstContentModuleItem', 'mstModule', 'mstRole', 'mstTemplate', 'mstUser'] | |
with open('db_pickle', 'rb') as pickle_file: | |
db_list = pickle.load(pickle_file) | |
def search_db(search_term): |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export PATH="/Users/hedonherm/.local/bin:/anaconda3/bin:/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands" | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/hedonherm/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export PATH="/Users/hedonherm/.local/bin:/anaconda3/bin:/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands" | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/hedonherm/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
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
set nocompatible | |
filetype on | |
" Setup Vundle | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" plugins |
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
class Signal: | |
def __init__(self, value, label): | |
self.value = value | |
self.label = label | |
H = Signal(1, "High") # High | |
L = Signal(0, "Low") # Low | |