I hereby claim:
- I am maximed on github.
- I am mdemolin (https://keybase.io/mdemolin) on keybase.
- I have a public key ASAcf4RIgsgCFpye8tDdoK21hlm9KnAokPDiK9pfDfzdBQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # Full repository name (group and project) | |
| repo=$(echo $(git ls-remote --get-url) | sed 's/[email protected]:\(.\+\)\.git/\1/') | |
| # Branch name | |
| branch=$(git rev-parse --abbrev-ref HEAD) | |
| # Display link to pull request | |
| echo "Create pull request for pre-push_hook:" | |
| echo -e "\thttps://github.com/$repo/compare/$branch?expand=1" |
| [[snippets]] | |
| description = "Replace tab with spaces" | |
| command = "find . -name $1 ! -type d -exec bash -c 'expand -i -t 2 \"$0\" > /tmp/e && mv /tmp/e \"$0\"' {} \\;" | |
| [[snippets]] | |
| description = "Empty log files" | |
| command = "find . -iname \"*.log\" | xargs truncate --size 0" | |
| [[snippets]] | |
| description = "[YOUBOOX] copy database structure" |
| [[snippets]] | |
| description = "Replace tab with spaces" | |
| command = "find . -name $1 ! -type d -exec bash -c 'expand -i -t 2 \"$0\" > /tmp/e && mv /tmp/e \"$0\"' {} \\;" | |
| [[snippets]] | |
| description = "Empty log files" | |
| command = "find . -iname \"*.log\" | xargs truncate --size 0" |
| #!/bin/sh | |
| repo=$(echo $(git ls-remote --get-url) | sed 's/[email protected]:\(.\+\)\.git/\1/') | |
| branch=$(git rev-parse --abbrev-ref HEAD) | |
| echo "See or create pull request at:" | |
| echo -e "\thttps://github.com/$repo/compare/$branch?expand=1" | |
| exit 0 |
| #!/usr/bin/env ruby | |
| a = 2 | |
| b = 4 | |
| 50000000.times do | |
| a = a ^ b | |
| b = a ^ b | |
| a = a ^ b | |
| end |
| class prod_mat { | |
| public static void main(String[] args) { | |
| int [][] a = { | |
| {5,1}, | |
| {2,3}, | |
| {3,4} | |
| }; | |
| int [][] b = { | |
| {1,2,0}, | |
| {4,3,-1} |
| # /etc/X11/xorg.conf.d/50-joystick.conf | |
| Section "InputClass" | |
| Identifier "joystick catchall" | |
| MatchIsJoystick "on" | |
| MatchDevicePath "/dev/input/event*" | |
| Driver "joystick" | |
| Option "StartKeysEnabled" "False" | |
| Option "StartMouseEnabled" "False" | |
| EndSection |
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| vim = [ | |
| "Ma configuration Vi / Vim / gVim - theClimber", | |
| "Chapitre 16. Vim : un éditeur de texte", | |
| "Ultimate Vim Config | Steve Francia's Epic Blog", | |
| "Vim - Configuration complete (Page 1) / Logiciels éducatifs ...", | |
| "vim - Documentation Ubuntu Francophone", | |
| "The ultimate Vim configuration - vimrc", |
| #!/usr/bin/env ruby | |
| etudiants = ["Name1", "Name2", ... , "Namen"] ; | |
| def extract(etudiants) | |
| random_number = rand(etudiants.length) | |
| etudiant = etudiants[random_number] | |
| return etudiants.delete(etudiant) | |
| end |