Skip to content

Instantly share code, notes, and snippets.

import shutil
import os
import sys
import pickle
from dropbox.rest import ErrorResponse
STATE_FILE = '.dropbox_state'
REMOTE_ROOT_PATH = '/Apps/my-pythonista-app' # sync root in dropbox where code is
@jbking
jbking / using-azerty?.el
Created June 9, 2009 04:57 — forked from anonymous/gist:126269
the function how to get a keyboard layout
(defun using-azerty? ()
(condition-case nil
(let ((buffer (get-buffer-create "*using-azerty?*"))
return)
(set-buffer buffer)
(erase-buffer)
(call-process-shell-command "setxkbmap" nil buffer nil "-print")
(goto-char (point-min))
(setq return (search-forward "azerty" nil t))
(kill-buffer buffer)