Skip to content

Instantly share code, notes, and snippets.

gdb and gfortran

gdb seems not to be able to reason about dynamically allocated fortran arrays. Here an example

program test
  implicit none
  double precision, dimension(3) :: sa
  double precision, dimension(:), pointer :: da
  integer :: i

gdb and gfortran

gdb seems not to be able to reason about dynamically allocated fortran arrays. Here an example

program test
  implicit none
  double precision, dimension(3) :: sa
  double precision, dimension(:), pointer :: da
  integer :: i

Web shortcuts

System Settungs -> Account Details -> Web Shortcuts

Google Search (gg:)

Default:

http://www.google.com/search?q=\{@}&ie=UTF-8&oe=UTF-8

Force Verbatim:

http://www.google.com/search?q=\{@}&ie=UTF-8&oe=UTF-8&tbs=li:1
(require 'ido)
(ido-mode t)
(setq ido-enable-prefix nil
ido-enable-flex-matching nil
ido-create-new-buffer 'never
ido-max-prospects 10
ido-default-buffer-method 'selected-window
ido-default-file-method 'selected-window)
;; List of N most recent files, persisent between emacs session.
(eval-after-load "org"
'(progn
(add-to-list 'org-file-apps '("\\.mp4\\'" . "vlc %s"))
(add-to-list 'org-file-apps '("\\.m4v\\'" . "vlc %s"))))