Skip to content

Instantly share code, notes, and snippets.

View chussenot's full-sized avatar

Clément Hussenot chussenot

View GitHub Profile
shared_preload_libraries = 'pg_stat_statements, postgis'
# shared_preload_libraries = 'postgis'
# Increase the max size of the query strings Postgres records
track_activity_query_size = 2048
# Track statements generated by stored procedures as well
pg_stat_statements.track = all
guard :rspec, cmd: 'bundle exec rspec' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch(%r{^app/(.+)\.rb$}) { |m| "spec/app/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
guard :bundler do
require 'guard/bundler'
require 'guard/bundler/verify'

Matcher

Dans le cadre de l'optimisation des temps de recherche des matchs, ci-dessous un ensemble de points notable qui peuvent avoir une influence sur la performance globale.

Workers

L'application wayzup-matcher est constitué en partie d'un ensemble de workers avec une converture de test faible.

Matcher

Dans le cadre de l'optimisation des temps de recherche des matchs, ci-dessous un ensemble de points notable qui peuvent avoir une influence sur la performance globale.

Logique

Workers

python termgraph.py dat/HydraAdapter-time-development.dat
------------------------------------
Reading data from dat/HydraAdapter-time-development.dat
------------------------------------
0: ▇▇ 0.72
1: ▇▇▇▇▇ 1.57
2: ▇▇▇▇▇▇▇▇ 2.33
3: ▇▇▇▇▇▇▇▇▇▇ 3.07
4: ▇▇▇▇▇▇▇▇▇▇▇▇▇ 3.79
python termgraph.py dat/HydraAdapter-time-development.dat
------------------------------------
Reading data from dat/HydraAdapter-time-development.dat
------------------------------------
0: ▇▇ 0.72
1: ▇▇▇▇▇ 1.57
2: ▇▇▇▇▇▇▇▇ 2.33
3: ▇▇▇▇▇▇▇▇▇▇ 3.07
4: ▇▇▇▇▇▇▇▇▇▇▇▇▇ 3.79
@chussenot
chussenot / sort.rb
Created November 25, 2016 21:15 — forked from aspyct/sort.rb
Sample implementation of quicksort, mergesort and binary search in ruby
# Sample implementation of quicksort and mergesort in ruby
# Both algorithm sort in O(n * lg(n)) time
# Quicksort works inplace, where mergesort works in a new array
def quicksort(array, from=0, to=nil)
if to == nil
# Sort the whole array, by default
to = array.count - 1
end
# Our .tmux.conf file
# Setting the prefix from C-b to C-a
# START:prefix
set -g prefix C-a
bind a send-prefix
# END:prefix
# Free the original Ctrl-b prefix keybinding
# START:unbind
unbind C-b
[core]
excludesfile = /Users/chussenot/.gitignore_global
[diff]
color = true
[alias]
; shortcuts
st = status
a = add
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar