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
PowerStrip timing parameters: | |
2560x1080=2560,48,32,80,1080,7,29,12,159841,1 | |
Generic timing details for 2560x1080: | |
HFP=48 HSW=32 HBP=80 kHz=58 VFP=7 VSW=29 VBP=12 Hz=52 | |
VESA detailed timing details: | |
PClk=159.84 H.Active=2560 H.Blank=160 H.Offset=32 HSW=32 V.Active=1080 V.Blank=48 V.Offset=7 VSW=29 | |
# XFree86 modeline parameters: |
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
"" | |
Solves examples using PICOS, CVXPY and Gurobipy interfaces, | |
with both Gurobi and MOSEK solvers. | |
If Python doesn't return any errors, all modules should be working. | |
""" | |
import numpy as np | |
import cvxpy as cp | |
import cvxopt as cvx |
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
Inequalities: | |
-1 0 0 0 | |
1 0 0 -1 | |
0 -1 0 0 | |
0 1 0 -1 | |
0 0 -1 0 | |
0 0 1 -1 |
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
# Sample .bashrc for SuSE Linux | |
# Copyright (c) SuSE GmbH Nuernberg | |
# There are 3 different types of shells in bash: the login shell, normal shell | |
# and interactive shell. Login shells read ~/.profile and interactive shells | |
# read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all | |
# settings made here will also take effect in a login shell. | |
# | |
# NOTE: It is recommended to make language settings in ~/.profile rather than | |
# here, since multilingual X sessions would not work properly if LANG is over- |
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
import scipy.optimize as opt | |
import numpy as np | |
# Using a linear function as example | |
func = lambda a, x: a[0] + a[1] * x | |
errfunc = lambda a, x, y, err: (y - func(a, x)) / err | |
optres = opt.least_squares(errfunc, [1., 1.], args=(x, y, err)) | |
assert optres['success'], 'Optimizer has failed.' |
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
plt.figure(figsize=(9, 6)) | |
plt.errorbar(x, y, xerr=xerr, yerr=yerr, fmt='o', capsize=3, markersize=5) |
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
" | |
" Darcula colorscheme for VIM. | |
" | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
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
" General | |
set history=500 | |
filetype plugin on | |
filetype indent on | |
set autoread | |
au FocusGained,BufEnter * checktime | |
" UI |
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
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker | |
#: Fonts {{{ | |
#: kitty has very powerful font management. You can configure | |
#: individual font faces and even specify special fonts for particular | |
#: characters. | |
font_family monospace | |
bold_font auto |
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
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker | |
#: Fonts {{{ | |
font_size 14.0 | |
adjust_line_height 4 | |
# adjust_column_width 0 | |
: }}} |
NewerOlder