This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# %W% %E% | |
# | |
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. | |
# | |
# Version | |
version=1 | |
# Component Font Mappings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert flac files in current directory to Apple loss-less codec. | |
function flac2alac { | |
for f in *.flac; do | |
ffmpeg -i "$f" -acodec alac "${f%.flac}.m4a" | |
#-map_meta_data $f:${f%.flac}.m4a; | |
done | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TimePicker android:id="@+id/time_picker" | |
android:layout_marginTop="10dp" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:addStatesFromChildren="true"/> | |
android:layout_height="wrap_content"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias open='gnome-open' # in Ubuntu | |
alias open='cygstart' # in Windows/Cygwin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'org-publish) | |
(setq org-directory "~/Dropbox/Org") | |
(setq org-internal-directory "~/Org") | |
(setq org-internal-publishing-directory (concat "/ssh:" user-login-name "@HOST01:~/public_html")) | |
(setq org-publish-project-alist | |
`( ;use back-quote | |
;; publish to public cloud | |
("org" :components ("org-notes" "org-static" "org-ebooks")) | |
;; publish to internal cloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setenv DEFAULT_WORKSPACE "default" | |
if ( $?WORKSPACE == 0 ) then | |
setenv WORKSPACE $DEFAULT_WORKSPACE | |
endif | |
# Define alias 'et' to connect to the proper Emacs server identified by EMACS_SEVER_NAME | |
setenv EDITOR "emacsclient -s $WORKSPACE -t -a ''" | |
alias et "$EDITOR" | |
# Create alias 'kill-emacs' to kill proper Emacs server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-key c++-mode-map [(f8)] 'my-make-compile-command) | |
(define-key c++-mode-map [(f9)] 'my-make-g-compile-command) | |
(defun my-make-compile-command () | |
(interactive) | |
(set (make-local-variable 'compile-command) | |
(concat "make -C " default-directory)) | |
;; (setq current-prefix-arg '(4)) ;C-u | |
(call-interactively 'compile)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c | |
index 6b7c7c3..c6df02d 100644 | |
--- a/lib-src/emacsclient.c | |
+++ b/lib-src/emacsclient.c | |
@@ -1479,7 +1479,7 @@ w32_give_focus () | |
/* Start the emacs daemon and try to connect to it. */ | |
void | |
-start_daemon_and_retry_set_socket (void) | |
+start_daemon_and_retry_set_socket (char* sname) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Environment.getExternalStorageState() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static boolean isConnected(Context context) { | |
ConnectivityManager connectivityManager = (ConnectivityManager) | |
context.getSystemService(Context.CONNECTIVITY_SERVICE); | |
NetworkInfo networkInfo = null; | |
if (connectivityManager != null) { |