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
(defun find-file-in-project () | |
(interactive) | |
(let (files filename) | |
(visit-tags-table-buffer) | |
(setq files (tags-table-files)) | |
(setq filename (ido-completing-read "Find File: " files nil)) | |
(find-file (concat (file-name-directory tags-file-name) filename)))) |
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
var array = ['a', 'b']; | |
for (var i=0; i<array.length; i++) { | |
print(array[i]); | |
} | |
// a | |
// b | |
for (var k in array) { | |
print(array[k]); |
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
var array = ['a', 'b']; | |
array.hello = "world"; | |
for (var i=0; i<array.length; i++) { | |
print(array[i]); | |
} | |
// a | |
// b | |
for (var k in array) { |
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
// NSOutlineView-DMExtensions.h | |
// Library | |
// | |
// Created by William Shipley on 3/10/06. | |
// Copyright 2006 Delicious Monster Software, LLC. Some rights reserved, | |
// see Creative Commons license on wilshipley.com | |
#import <Cocoa/Cocoa.h> | |
@interface NSOutlineView (DMExtensions) |
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
#import <Foundation/Foundation.h> | |
@interface NSArray (Globbing) | |
+ (NSArray*) arrayWithFilesMatchingPattern: (NSString*) pattern inDirectory: (NSString*) directory; | |
@end |
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
/* Localized versions of Info.plist keys */ | |
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
from __future__ import print_function | |
import json | |
import os | |
import subprocess | |
import sys | |
def ls(wd): | |
"""Returns a list of directories under ``wd`` that match the johnny.decimal | |
pattern. The directories returned will be related to the passed working directory.""" | |
pattern = "[1234567890][1234567890]-*/[1234567890][1234567890]\ */[1234567890][1234567890].[1234567890][1234567890]*" |
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
JOHNNY_ROOT="..." | |
function jfind() { | |
(cd "${JOHNNY_ROOT}"; find [1234567890][1234567890]* $@) | |
} | |
function jls() { | |
(cd "${JOHNNY_ROOT}"; ls -1d [1234567890][1234567890]-*/[1234567890][1234567890]\ */[1234567890][1234567890].[1234567890][1234567890]*) | |
} |
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
container="" | |
bindings=$(docker inspect ${container} | jq -r '.[].HostConfig.Binds[]') | |
echo ${bindings} | while read bind; do | |
volume=${bind/:*/} | |
mount_point=${bind/*:/} | |
echo "docker run --volumes-from ${CONTAINER} -it --rm -v $(pwd)/backups:/backups busybox tar -czvf /backups/${volume}.tar.gz \"${mount_point}\"" | |
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
;;; Directory Local Variables | |
;;; For more information see (info "(emacs) Directory Variables") | |
((markdown-mode . ((visual-fill-column-width . 100) | |
(mode . visual-fill-column) | |
(mode . visual-line) | |
(markdown-hide-markup . nil) | |
(markdown-header-scaling . t) | |
(markdown-wiki-link-search-parent-directories . t) | |
(markdown-wiki-link-search-subdirectories . t) |
OlderNewer