Skip to content

Instantly share code, notes, and snippets.

test test
@thomvil
thomvil / gist:7427581
Created November 12, 2013 08:40
build error rethinkdb 1.10.1
==> Upgrading 1 outdated package, with result:
rethinkdb 1.10.1
==> Upgrading rethinkdb
==> Downloading http://download.rethinkdb.com/dist/rethinkdb-1.10.1.tgz
Already downloaded: /Library/Caches/Homebrew/rethinkdb-1.10.1.tgz
==> ./configure --prefix=/usr/local/Cellar/rethinkdb/1.10.1 --fetch v8
"google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))", referenced from:
protobuf_AddDesc_mk_2fgen_2fprotoc_2ftest_2eproto() in test-8UPMVx.o
"google::protobuf::DescriptorPool::FindFileByName(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
protobuf_AssignDesc_mk_2fgen_2fprotoc_2ftest_2eproto() in test-8UPMVx.o
@thomvil
thomvil / gist:7427616
Created November 12, 2013 08:45
brew config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew.git
HEAD: 55d29707be21c18966b81d769c04f4ae15c50873
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.9-x86_64
Xcode: 5.0.2
CLT: 5.0.1.0.1.1382131676
GCC-4.2: build 5666
@thomvil
thomvil / gist:7427627
Created November 12, 2013 08:46
brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Users/thomasvilla/.rvm/gems/ruby-2.0.0-p247/bin/passenger-config
@thomvil
thomvil / gist:9417312
Created March 7, 2014 18:44
ruby n-body benchmark
# The Computer Language Benchmarks Game
# http://benchmarksgame.alioth.debian.org
#
# Optimized for Ruby by Jesse Millikan
# From version ported by Michael Neumann from the C gcc version,
# which was written by Christoph Bauer.
SOLAR_MASS = 4 * Math::PI**2
DAYS_PER_YEAR = 365.24
@thomvil
thomvil / keybase.md
Created March 13, 2014 17:02
keybase.md

Keybase proof

I hereby claim:

  • I am thomvil on github.
  • I am thomvil (https://keybase.io/thomvil) on keybase.
  • I have a public key whose fingerprint is 7A72 9357 7D57 3101 2C82 AF78 E6D6 AC68 C397 D85B

To claim this, I am signing this object:

AVX instructions

g++-4.8 arma_example.cpp -o arma_example -O3 -larmadillo -std=c++11 -Wall -fno-rtti -Wa,-q -march=native

-march=native doesn't work on osx because of outdated as.

-q Use the clang(1) integrated assembler instead of the GNU based system assembler.

build_tex () {
fname=${1:r}
mkdir -p pdf_build
pdflatex -output-directory pdf_build $1
pdflatex -output-directory pdf_build $1
pdflatex -output-directory pdf_build $1
rm -rf pdf_build/.${1}.swp
rm -rf pdf_build/${fname}.aux
rm -rf pdf_build/${fname}.out
rm -rf pdf_build/${fname}.log
function [res] = generate_variation(fouten_marge, len)
res = -10000 + (10000 - (-10000)) * rand(floor(len), 1);
res(abs(res) < 0.0001) = 1;
all_pos = sum(res > 0) == len;
all_neg = sum(res < 0) == len;
all_small = sum(abs(res) < 1) == len;
@thomvil
thomvil / conjugations.txt
Created September 22, 2021 07:20
Mots de TIC
absoudre: 72
aimer: 6
apprécier: 15
appuyer: 17
connaître: 64
créer: 13
céder: 10
envoyer: 18
faire: 62
finir: 19