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
#! /bin/bash | |
# Place this file somewhere in your $PATH and chmod +x it! | |
function usage () { | |
echo "Usage:" | |
echo "femacs is 'find and open in emacs'" | |
echo "femacs requires 1 parameter. It basically does:" | |
echo " emacs \`find . -name [expression]\`"; | |
} |
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
;;; tangotangolight-theme.el --- Tango Palette color theme for Emacs 24. | |
;; First derived from color-theme-tango.el, created by danranx@gmail.com : | |
;; http://www.emacswiki.org/emacs/color-theme-tango.el | |
;; Copyright (C) 2011, 2012, 2013 Julien Barnier <julien@nozav.org> | |
;; Author: Julien Barnier | |
;; Adapted-By: Yesudeep Mangalapilly | |
;; Keywords: tango palette color theme emacs |
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
# Add path for Android | |
export ANDROID_HOME=$HOME/Downloads/adt-bundle-mac-x86_64-20140321/sdk | |
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools |
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
#! /bin/bash | |
set -e; | |
[ -z "$1" ] && { echo "ERROR: No AndroidManifest.xml provided"; exit 1; } | |
command -v xmlstarlet >/dev/null 2>&1 || { echo >&2 "ERROR: xmlstarlet command not available"; exit 1; } | |
MANIFEST_FILE=$1 | |
function addUsesPermission () |
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
// LEAKING | |
@implementation CandidatesWindow | |
CandidatesWindow *sharedInstance = nil; | |
- (id)initWithFrame:(CGRect)frame | |
{ | |
if (sharedInstance) { | |
sharedInstance.frame = frame; | |
} else { | |
sharedInstance = [super initWithFrame:frame]; | |
} |
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
;; Add ~/.elisp directory to my load path. | |
;; Not needed since .emacs.d is read by default | |
(add-to-list 'load-path' "~/.emacs.d") | |
;; Show trailing white spaces | |
(setq-default show-trailing-whitespace t) | |
(set-face-background 'trailing-whitespace "#191970") | |
;; Adds Other Package manager repositories | |
(require 'package) |
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
<EditorStyle name="Twilight" _description="Twilight, the TextMate theme"> | |
<!-- Color palette --> | |
<Color name="tl.general.selection" value="#545454" /> <!-- light gray --> | |
<Color name="tl.general.background" value="#252525" /> <!-- *light* black --> | |
<Color name="tl.general.background.dark" value="#191919" /> <!-- not so light black --> | |
<Color name="tl.plainText" value="#CDCDCD" /> <!-- light gray --> | |
<Color name="tl.comments" value="#3FA41C" /> <!-- green --> | |
<Color name="tl.strings" value="#A0AB7F" /> <!-- lime --> | |
<Color name="tl.sharactersAndNumbers" value="#786DC4" /> <!-- purple --> | |
<Color name="tl.keywords" value="#C31265" /> <!-- pink--> |
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
I created the gist without loging in. Bleh! | |
https://gist.github.com/anonymous/7150165 |
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
#!/bin/bash | |
function unix_to_days_offset () | |
{ | |
echo "($1-1356966000)/(24*3600)" | bc; | |
} | |
function unix_to_human () | |
{ | |
res=`date -d @$1 "+%Y-%m-%d %H:%M:%S %Z"`; |
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
Binary Int Name | |
-- --------- --------- --------- --------- --------- -------- ---------------- | |
0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0 kCGImageAlphaNone | |
0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 1 kCGImageAlphaPremultipliedLast | |
0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 2 kCGImageAlphaPremultipliedFirst | |
0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 3 kCGImageAlphaLast | |
0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0100 4 kCGImageAlphaFirst | |
0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0101 5 kCGImageAlphaNoneSkipLast | |
0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0110 6 kCGImageAlphaNoneSkipLast | |
0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0111 7 --- |