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 docker | |
c = docker.Client(base_url="http://localhost:port", version="1.11") | |
print(c.version()) | |
for i in c.build(fileobj=open("file.tar"), stream=True, custom_context=True): | |
print(i) |
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
#!/usr/bin/env python | |
# Reference: | |
# [1] http://matplotlib.org/examples/pylab_examples/multipage_pdf.html | |
# This should be executed before other matplotlib imports | |
import matplotlib | |
matplotlib.use('Agg') | |
import datetime |
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 | |
# | |
# Reference : http://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=236&DB_Short_Name=On-Time | |
# | |
now=`date +"%Y-%m-%d" -d "01/01/1987"` | |
end=`date +"%Y-%m-%d" -d "05/01/2015"` | |
# end=`date +"%Y-%m-%d"` |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
def build_argparser(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--foo', action='store_true', help='foo help') |
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/unistd.in.h b/lib/unistd.in.h | |
index 77e5675..759080a 100644 | |
--- a/lib/unistd.in.h | |
+++ b/lib/unistd.in.h | |
@@ -382,17 +382,12 @@ _GL_WARN_ON_USE (dup3, "dup3 is unportable - " | |
# if !@HAVE_DECL_ENVIRON@ | |
/* Set of environment variables and values. An array of strings of the form | |
"VARIABLE=VALUE", terminated with a NULL. */ | |
-# if defined __APPLE__ && defined __MACH__ | |
-# include <crt_externs.h> |
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/lisp/term/ns-win.el b/lisp/term/ns-win.el | |
index df0ddd7..c576f02 100644 | |
--- a/lisp/term/ns-win.el | |
+++ b/lisp/term/ns-win.el | |
@@ -930,6 +930,10 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |
(add-to-list 'frame-creation-function-alist '(ns . x-create-frame-with-faces)) | |
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system)) | |
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ()) | |
+(defun ns-toggle-fullscreen () |
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
;;; win-switch.el --- fast, dynamic bindings for window-switching/resizing | |
;; Copyright (C) 2011, 2012 Christopher R. Genovese, all rights reserved. | |
;; Author: Christopher Genovese <genovese@cmu.edu> | |
;; Maintainer: Christopher R. Genovese <genovese@cmu.edu> | |
;; URL: http://www.stat.cmu.edu/~genovese/emacs/win-switch/ | |
;; Version: 1.0.2 | |
;; Update#: 12 |
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 'formula' | |
class Highlight < Formula | |
url 'http://www.andre-simon.de/zip/highlight-3.8.tar.bz2' | |
homepage 'http://www.andre-simon.de/doku/highlight/en/highlight.html' | |
sha1 '007a008f1846485e86ad9347f98f69a22afeb718' | |
depends_on 'boost' | |
depends_on 'lua' |
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
brew --config | |
HOMEBREW_VERSION: 0.9 | |
HEAD: 28a2dfd8b6fa0225bc6cc8d196652ec0c87e39b9 | |
HOMEBREW_PREFIX: /Users/leoncamel/bin/homebrew | |
HOMEBREW_CELLAR: /Users/leoncamel/bin/homebrew/Cellar | |
CPU: quad-core 64-bit arrandale | |
OS X: 10.7.3 | |
Kernel Architecture: x86_64 | |
Xcode: 4.3 | |
GCC-4.0: N/A |
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 -urN emacs-24.1/lisp/term/ns-win.el emacs-24.1-lion-fullscreen-patched/lisp/term/ns-win.el | |
--- emacs-24.1/lisp/term/ns-win.el 2012-05-14 21:00:02.000000000 +0900 | |
+++ emacs-24.1-lion-fullscreen-patched/lisp/term/ns-win.el 2012-06-13 00:52:11.000000000 +0900 | |
@@ -930,7 +930,11 @@ | |
(add-to-list 'frame-creation-function-alist '(ns . x-create-frame-with-faces)) | |
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system)) | |
- | |
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ()) | |
+(defun ns-toggle-fullscreen () |
OlderNewer