in nsLoginManager.js 876
// return;
instead of return;
in nsLoginManager.js 876
// return;
instead of return;
imap <buffer> <leader>it <Plug>Tex_InsertItemOnThisLine let g:Tex_AdvancedMath = 0
declare -i C=0 for i in *.pdf do pdftops $i toto.ps C=$C+$(grep -c showpage toto.ps) echo $C done;
I’m trying to make a little ruby wrapper around few XMPP/Jabber functionalities.
xmpp:// URLs (add a contact, send a message, etc…) XEP-0147Using Xmpp4R or even Jabber::Simple it should pretty straightforward…
to have an handler for msn: URL able to pick the name of the gateway and make a good JID !
#!/usr/bin/env ruby # # todo : very simple TODO list manager # # How to install : # paste this code in a file "todo" # A chmod x todo, a mv to you PATH could also be a good idea # # How to use : # type todo -h to have help # There you are, it's not so complicated ! ;-) # # WTFPL - Hamlet - 2008 # The file to keep the todo list, feel free to change ! FILE = ENV['HOME'] "/.todo.txt" require 'fileutils' # Grab the list @todo_list = File.exist?(FILE) ? IO.readlines(FILE) : [] tt = @todo_list.dup # Without arguments, print the list if (ARGV.size == 0) then @todo_list.each_index{|index| puts index.to_s " - " @todo_list[index] } # The help message elsif (ARGV[0] == "-h" || ARGV[0] == "--help") puts "\ntodo [-h | --help] [number ...] [anything ...] if param empty, display current todo list if first param ask for help, this if first paramS are numbers, delete the coresponding lines take all the remaining (if any) to make a new entry...\n" # Or we proccess all the arguments # first seeking integers, for lines to delete # then, any kind of stuff to make a new entry ! else finished = false todo_temp = [] ARGV.each {|arg| if (!finished && (arg == arg.to_i.to_s)) then @todo_list[arg.to_i] = '' else finished = true todo_temp << arg end } @todo_list << (todo_temp.join(' ') + "\n") if (todo_temp != []) @todo_list.compact! end # Rewrite the file, if needed... File.open(FILE, 'w') {|file| file.write @todo_list } if tt != @todo_list # Enjoy !
I was thinking..
It could be cool to be able, in Bash shell, to toggle a kind of “clever” completion, with features like that :
pdf [TAB] => xpdfjabber [TAB] => psi | gajim | etc...[TAB] toto.pdf => xpdf toto.pdfMaybe completion is not really good for all of this.
dmenu -i does it ! I was using dmenu when first thinking about all that, and now I’ve RTFM…Hello,
This is my very first post ever on my own blog !
It’s really moving…
But it’s not really a blog that I’m starting here, more a tumblelog !
In fact don’t expect too much for this blog, it is only aimed to be a repository for my thoughts, my tips and tricks, the things I must not forget and maybe loads of other stuff…
Enjoy !
I don’t think I’ll be able to make a double-language version for each post, those who do not speak both languages will be stuck, but for the first one here is the French translation :
Salut,
c’est mon tout premier post sur mon blog à moi depuis toujours…
C’est assez émouvant !
Mais ce n’est pas vraiment un blog que j’ouvre ici, plutot un tumblelog !
D’ailleurs, mieux vaut ne pas attendre trop de ce blog, il est seulement prévu pour ramasser mes pensées, mes astuces, les choses que je ne dois pas oublier ainsi que sûrement pleins d’autres trucs…
Profitez !
Je ne pense pas pouvoir faire de version dans les deux langues pour tous les posts, ceux qui ne parlent pas la bonne langue risquent d’être coincés, mais pour le premier post, je fais un effort !