Skip to content

Instantly share code, notes, and snippets.

View dpo's full-sized avatar
💭
Hacking

Dominique dpo

💭
Hacking
View GitHub Profile
#!/bin/bash
file="$1"
line="$2"
[ "${file:0:1}" == "/" ] || file="${PWD}/$file"
exec osascript \
-e "set ESC to ASCII character 27" \
-e "tell application \"/Users/dpo/bin/vim\" to activate" \
@dpo
dpo / vims
Created September 18, 2019 16:23
#!/bin/bash
# Server name can be 100 chars max in length.
server=$(pwd)/$1
(( ${#server} > 100 )) && server=${server:0:100}
/usr/local/bin/vim --servername $server $1
using LinearAlgebra
using Logging
using JLD2
using CUTEst
using JSOSolvers
using NLPModels
using SolverBenchmark
using SolverTools
@dpo
dpo / .vimrc
Created September 4, 2019 19:53
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-tbone'
Plug 'airblade/vim-gitgutter'
Plug 'junegunn/fzf', { 'do': 'yes \| ./install' } " fzf is a fuzzy file search
Plug 'junegunn/fzf.vim'
@dpo
dpo / .vimrc
Created September 4, 2019 19:53
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-tbone'
Plug 'airblade/vim-gitgutter'
Plug 'junegunn/fzf', { 'do': 'yes \| ./install' } " fzf is a fuzzy file search
Plug 'junegunn/fzf.vim'
@dpo
dpo / .tmux.conf
Last active April 20, 2020 20:51
set -g prefix Home
unbind C-b
bind-key Home send-prefix # Caps-Lock is remapped to Home
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# tmux-resurrect and tmux-continuum to save the state across system restarts
# prefix-Ctrl-s to save the state
set -g prefix Home
unbind C-b
bind-key Home send-prefix
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# tmux-resurrect and tmux-continuum to save the state across system restarts
# prefix-Ctrl-s to save the state
#*******************************************************/
#* Copyright(c) 2018 by Artelys */
#* This source code is subject to the terms of the */
#* MIT Expat License (see LICENSE.md) */
#*******************************************************/
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# This example demonstrates how to use Knitro to solve the following
# simple nonlinear optimization problem. This model is test problem
# HS40 from the Hock & Schittkowski collection.
""" (x, flags, stats) = usymlqr(A, b, c)
Solve the symmetric saddle-point system
[ I A ] [ s ] = [ b ]
[ A' ] [ t ] [ c ]
by way of the Saunders-Simon-Yip tridiagonalization using the USYMQR and USYMLQ methods.
The method solves the least-squares problem
@dpo
dpo / krylov_bmark_GitHub.tag.md.md
Created February 12, 2019 19:51
A benchmark for Krylov repository

Benchmark Report for Krylov

Job Properties

  • Time of benchmark: 12 Feb 2019 - 14:23
  • Package commit: dirty
  • Julia commit: 099e82
  • Julia command flags: None
  • Environment variables: None

Results