Skip to content

Instantly share code, notes, and snippets.

View dpo's full-sized avatar
💭
Hacking

Dominique dpo

💭
Hacking
View GitHub Profile
@dpo
dpo / a.rb
Created January 21, 2018 11:15
diff --git a/src/LP/lp_genfunc.c b/src/LP/lp_genfunc.c
index af9e5fc..e71494f 100644
--- a/src/LP/lp_genfunc.c
+++ b/src/LP/lp_genfunc.c
@@ -2429,7 +2429,7 @@ int generate_cgl_cuts_new(lp_prob *p, int *num_cuts, cut_data ***cuts,
send_to_pool);
should_stop_adding_cgl_cuts(p, i, &should_stop);
- if(i < 0 && num_cuts > 0) should_stop = TRUE;
+ if(i < 0 && *num_cuts > 0) should_stop = TRUE;
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
@dpo
dpo / a.rb
Created September 18, 2017 00:07
> latexmk -synctex=1 -interaction=nonstopmode -file-line-error -pdf sqp-reg
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./sqp-reg.tex
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
(./latex-styles/siamart1116.cls
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex 2017.5.23) 17 SEP 2017 15:30
entering extended mode
restricted \write18 enabled.
file:line:error style messages enabled.
%&-line parsing enabled.
**sqp-reg.tex
(./sqp-reg.tex
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
(./latex-styles/siamart1116.cls
@dpo
dpo / a.rb
Created September 15, 2017 22:14
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
[email protected]
llvm37-julia
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dpo
dpo / .travis.yml
Created August 8, 2017 22:58 — forked from willprice/.travis.yml
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
using BinDeps
@BinDeps.setup
libgsl = library_dependency("libgsl", aliases=["libgsl-0"])
if is_apple()
using Homebrew
provides(Homebrew.HB, "gsl@1", libgsl, os = :Darwin)
end
@dpo
dpo / -
Created August 1, 2017 03:56
BLA