Skip to content

Instantly share code, notes, and snippets.

View Accacio's full-sized avatar
😎

Rafael Accácio Nogueira Accacio

😎
View GitHub Profile
[ 71%] Linking CXX executable locafleet_tests
/usr/bin/ld: CMakeFiles/locafleet_tests.dir/zonotopes_Unit_Tests.cpp.o:(.rodata+0x4f80): multiple definition of `typeinfo
for soplex::SPxLPBase<boost::multiprecision::number<boost::multiprecision::backends::gmp_rational, (boost::multiprecision::expression_template_option)0> >'; CMakeFiles/locafleet_tests.dir/process_Unit_Test.cpp.o:(.rodata+0x3834): first defined
here
/usr/bin/ld: CMakeFiles/locafleet_tests.dir/zonotopes_Unit_Tests.cpp.o:(.rodata+0x4fa0): multiple definition of `typeinfo
name for soplex::SPxLPBase<boost::multiprecision::number<boost::multiprecision::backends::gmp_rational, (boost::multiprecision::expression_template_option)0> >'; CMakeFiles/locafleet_tests.dir/process_Unit_Test.cpp.o:(.rodata+0x3854): first defined here
/usr/bin/ld: CMakeFiles/locafleet_tests.dir/mathematics_Unit_Tests.cpp.o:(.rodata+0xf524): multiple definition of `typeinfo for soplex::SPxLPBase
@Accacio
Accacio / init.el
Last active October 20, 2023 13:47
emacs minimal config
;; /!\ install straight via git /!\
;; git clone https://github.com/raxod502/straight.el.git straight/repos/straight.el
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 6))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:_XlcDefaultMapModifiers
fun:XSetLocaleModifiers
obj:/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.8.0
obj:/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.8.0
obj:/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.8.0
@Accacio
Accacio / diction.el
Last active May 7, 2020 10:31 — forked from RyanKung/diction.el
diction.el --- minor mode to interface the command diction
;;; diction.el --- minor mode to interface the command diction
;;; Copyright Sven Utcke <Sven.Utcke@gmx.de>
;; Emacs Lisp Archive Entry
;; Filename: diction.el
;; Version: $Id: diction.el,v 1.8 2005/09/29 12:55:52 utcke Exp $
;; Keywords: diction, style
;; Author: Sven Utcke <Sven.Utcke@gmx.de>
;; Maintainer: Sven Utcke <Sven.Utcke@gmx.de>
@Accacio
Accacio / surfing_keys
Last active December 9, 2018 14:16
surfing_keys
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
@Accacio
Accacio / cVimrc
Last active March 19, 2019 02:11
" Teste
let vimcommand = 'emacsclient -c'
iunmapAll
imap <C-d> deleteChar
imap <C-f> forwardChar
imap <A-f> forwardWord
imap <C-b> backwardChar
imap <C-a> beginningOfLine
imap <C-e> endOfLine
imap <C-d> deleteForwardChar

Getting Started in Scala

This is my attempt to give Scala newcomers a quick-and-easy rundown to the prerequisite steps they need to a) try Scala, and b) get a standard project up and running on their machine. I'm not going to talk about the language at all; there are plenty of better resources a google search away. This is just focused on the prerequisite tooling and machine setup. I will not be assuming you have any background in JVM languages. So if you're coming from Python, Ruby, JavaScript, Haskell, or anywhere…  I hope to present the information you need without assuming anything.

Disclaimer It has been over a decade since I was new to Scala, and when I was new to Scala, I was coming from a Java and Ruby background. This has probably caused me to unknowingly make some assumptions. Please feel free to call me out in comments/tweets!

One assumption I'm knowingly making is that you're on a Unix-like platform. Sorry, Windows users.

Getting the JVM

title(['Título'],'FontSize',9,'interpreter','latex')
legend('','')
set(gcf, 'PaperPosition', [0 0 8 7])
set(gca,'FontSize',18)
set(gca,'FontName','cmr18')
set(gcf, 'PaperSize', [8 7])
hx=get(gca,'xlabel')
hy=get(gca,'ylabel')
hz=get(gca,'zlabel')