Skip to content

Instantly share code, notes, and snippets.

View eserte's full-sized avatar

Slaven Rezić eserte

  • N 52.507377 E 13.460589
View GitHub Profile
@eserte
eserte / org-sort-termine.el
Created March 15, 2014 20:57
org-sort-termine
(defun org-sort-termine ()
(interactive)
(goto-char (point-min))
(search-forward-regexp "^\* Termine$")
(save-excursion
(if (search-forward-regexp "^\* Termine$" nil t)
(error "Found two Termine sections in TODO file, don't know which one to sort")))
(org-sort-entries nil ?T)
(org-cycle)
(org-cycle)
@eserte
eserte / broken.yml
Last active August 29, 2015 14:05
YAML file with embedded newline
---
abstract: "parse search engine referrer URLs and extract keywords used "
@eserte
eserte / strace-expect.log
Created September 18, 2014 20:28
strace snippet from a failing Expect 1.31 test on a linux system
19152 20:05:49.980597 open("/var/tmp/cpansmoker-1001/1cOTft7OXw/expect_output_file", O_WRONLY|O_CREAT|O_TRUNC, 0666 <unfinished ...>
17757 20:05:49.980629 select(8, [3 5], NULL, NULL, NULL <unfinished ...>
19152 20:05:49.980681 <... open resumed> ) = 4
19152 20:05:49.980709 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd4b52150) = -1 ENOTTY (Inappropriate ioctl for device)
19152 20:05:49.980752 lseek(4, 0, SEEK_CUR) = 0
19152 20:05:49.980791 fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
19152 20:05:49.980856 fcntl(4, F_SETFD, FD_CLOEXEC) = 0
19152 20:05:49.980933 write(3, "second\n", 7) = 7
19152 20:05:49.981007 time(NULL) = 1411070749
19152 20:05:49.981050 time(NULL) = 1411070749
Output from '/usr/bin/make test':
Running Mkbootstrap for Git::Raw ()
chmod 644 "Raw.bs"
PERL_DL_NONLAZY=1 "/bbbike/perl-5.20.0t/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t .............. ok
t/01-repo.t ................. ok
# Failed test at t/02-commit.t line 244.
# got: '

i18n for Perl/Tk -*- mode: org; coding: utf-8; -*-

brainstorming

  • create a generic Tk::I18N module usable by all Tk widgets?
  • share localizations between widgets?
    • if translations are shared, then maybe there needs to be some overriding mechanism
  • which Tk widgets have localizable texts? found by Christoph:
    • Tk::ErrorDialog
    • Tk::ColorEditor
to come...
@eserte
eserte / tab.txt
Created September 19, 2013 19:43
Physical tab test. The following two lines should look the same.
Hello
Hello