Skip to content

Instantly share code, notes, and snippets.

View kpfromer's full-sized avatar
🏠
Working from home

Kyle Pfromer kpfromer

🏠
Working from home
View GitHub Profile
@kpfromer
kpfromer / .vimrc
Created January 1, 2021 00:12
windows dotfiles
" ░█░█░▀█▀░█▄█
" ░▀▄▀░░█░░█░█
" ░░▀░░▀▀▀░▀░▀
set nocompatible "I don't necessarily need Vim to be compatible with Vi
filetype off "Allow for plugins
scriptencoding utf-8
set encoding=utf-8 "Read files as UTF8
set fileencoding=utf-8 "Write new files as UTF8
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBfAqfhLo9xPjGjWrS2COEbPB19SLAbePK2Hu4yg6SYewdOUGhEhlVMywHZvqIFgErWDocwJZyRvAXd0R56nqycU+RsdFY4cU786i9OigxDWO/q4S5/QGUB5giecFfphUw9mKPjEPLYY5UR+XPfvFBn4lxm9/YODNfcWhFNzZ4MxGZirelATazeUGknA1ic8mmSP/ZGUQlAZrq57XHOKkgZiECaIqIGtThXwRWmkMvvr9UYEAojHkgnaAxDC+u1DDBtI+D3gKiygFvnx/y8EEcMLoOEyOVko8W8EN3cXfkcdodDZR+M/JjLIBEXP5/rtjNpMf5J6Lfm6OaGqoztw1LEAosf4pEd0qFn12hBmcESUtR6dhmPYcJT/bU4B38lDoISUeY219nbrnx9fzroaidUIHQKdWyVETO9+tjjQjASks74NXPJj/tr7nVf7MD3YBTld+gpxrjGKE7IYPBnjKHPIK55p7cavwxH58Fnl7uYXXdF4uM44ToN64NHygoMNXRuegovZvg02M8G5WOWjiPHXPVR9B5bERwUf1C2KHAd+Aw59FW44VTzo23Bvej53x+nBalRbm12yEeq088NPZNifIw/i8ViHqCZ3XqzjCaftwQGJswTw09bSlyNp/oVwH4zWSNi7z0YHh5/EEmzqf4rKXP+TCY4Pd2xBr8J7dtdQ== kpfromer2@gmail.com
{
"name": "projects/222309772370/locations/us-central1/operations/1015008222382_optimizer-extension_4",
"metadata": {
"@type": "type.googleapis.com/google.cloud.ml.v1.SuggestTrialsMetadata",
"study": "projects/222309772370/locations/us-central1/studies/jun_study_0710_1",
"createTime": "2020-07-15T15:11:29Z",
"suggestionCount": 2,
"clientId": "optimizer-extension"
},
"done": true,
import * as React from 'react';
import {
Box,
Typography,
Button,
TextField,
Dialog,
DialogTitle,
DialogContent,
DialogContentText,
#!/bin/sh
# Cleanup
pipenv --rm
rm node_modules jupyterlab_caip_optimizer/node_modules -rf
# Install packages
npm install
npm run bootstrap
pipenv install
import * as React from 'react';
import { ReactWidget } from '@jupyterlab/apputils';
import { store, AppDispatch } from '../store/store';
import { Provider, connect } from 'react-redux';
import { close, ViewType, setView } from '../store/view';
// import { Dashboard } from './dashboard';
const mapDispatchToProps = (dispatch: AppDispatch) => ({
setView: (view: ViewType) => dispatch(setView(view)),
close: () => dispatch(close()),
const MockSidebar = () => <>Mock Sidebar</>;
jest.mock('react-redux', () => ({
connect: (mapStateToProps: any) => (component: any) => MockSidebar,
Provider: ({ store, children }: any) => children,
}));
jest.mock('@material-ui/core');
jest.mock('../store/view');
import * as React from 'react';
import { mount, shallow } from 'enzyme';
import { SidebarWidget, Sidebar } from './sidebar_widget';
import { AsyncState } from './async_slice';
import { ServerProxyTransportService } from '../service/transport';
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
// TODO: use from Jun's changes
export interface Trial {
name: string;
}
export interface Study {
interface ParameterBase {
parameter: string;
}
type Parameter = ParameterBase &
({
floatValue: number;
})
| {
intValue: Number;
set nocompatible "I don't necessarily need Vim to be compatible with Vi
filetype off "Allow for plugins
scriptencoding utf-8
set encoding=utf-8 "Read files as UTF8
set fileencoding=utf-8 "Write new files as UTF8
set tabstop=4 "Tabs should appear to be 4 spaces wide
set softtabstop=4 "When deleting indenting spaces, delete 4 spaces/1 tab at a time
set shiftwidth=4 "Indents should be a tab