Skip to content

Instantly share code, notes, and snippets.

Updating registry 'https://github.com/rust-lang/crates.io-index'
Package Installed Latest Needs update
bacon v2.3.0 v2.4.0 Yes
cargo-nextest v0.9.48 v0.9.49 Yes
just v1.11.0 v1.12.0 Yes
bottom v0.7.1 v0.7.1 No
broot v1.18.0 v1.18.0 No
cargo-generate v0.17.4 v0.17.4 No
cargo-outdated v0.11.1 v0.11.1 No
@thomvil
thomvil / shell_output.txt
Created February 27, 2022 07:36
output install flowistry v0.5.8
$ cargo install-update -a
Updating registry 'https://github.com/rust-lang/crates.io-index'
Package Installed Latest Needs update
flowistry_ide v0.5.4 v0.5.8 Yes
Updating flowistry_ide
Updating crates.io index
Installing flowistry_ide v0.5.8
Compiling cfg-if v1.0.0
@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
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;
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

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.

@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:

@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 / 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: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