$ brew install pdnsd
$ sudo chown -R nobody /usr/local/var/cache/pdnsd
$ curl -L http://goo.gl/kMlyQ -o pdnsd.conf
$ mv pdnsd.conf /usr/local/etc
$ sudo chown root /usr/local/etc/pdnsd.conf
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
;;; cljdoc.el --- eldoc mode for clojure | |
;; Copyright (C) 2011 tomykaira | |
;; Version 0.1.0 | |
;; Keywords: eldoc clojure | |
;; Author: tomykaira <tomykaira@gmail.com> | |
;; URL: https://gist.github.com/1386472 | |
;; This file is not part of GNU 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
Debugger entered--Lisp error: (void-function ido-init-completion-maps) | |
ido-init-completion-maps() | |
smex-initialize-ido() | |
smex-initialize() | |
eval-buffer(#<buffer *load*<2>> nil "/home/yesudeep/.emacs.d/elpa/starter-kit-2.0.3/starter-kit-autoloads.el" nil t) ; Reading at buffer posit$ | |
load-with-code-conversion("/home/yesudeep/.emacs.d/elpa/starter-kit-2.0.3/starter-kit-autoloads.el" "/home/yesudeep/.emacs.d/elpa/starter-kit-2.$ | |
load("/home/yesudeep/.emacs.d/elpa/starter-kit-2.0.3/starter-kit-autoloads" nil t) | |
package-activate-1(starter-kit [(2 0 3) ((paredit (22)) (idle-highlight-mode (1 1 1)) (find-file-in-project (3 0)) (smex (1 1 1)) (ido-ubiquitou$ | |
package-activate(starter-kit (2 0 3)) | |
package-initialize() |
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
git(b:clean) $ git grep "main.css" | |
presentation/BUILD:# Get the compiled and combined main.css file. | |
presentation/BUILD: outs = ['html/static/css/main.css'], | |
presentation/html/static/styles/.gitignore:main.css | |
presentation/html/static/styles/local-build.sh:squeeze cssembed main.y.css -o main.css | |
presentation/html/templates/base.html: <link type="text/css" rel="stylesheet" media="screen" href="/static/css/main.css" /> | |
# See these lines. | |
presentation/html/templates/project/project_attachment_add.html:<link type="text/css" rel="stylesheet" media="screen" href="/static/default_theme/css/main.css" /> | |
presentation/html/templates/project/project_stats_load.html: <link type="text/css" rel="stylesheet" media="screen" href="/static/default_theme/css/main.css" /> |
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 re | |
css_source = """ | |
@import url("../something.css"); | |
@import url(../something.css); | |
@import url(/some/url.css); | |
body { | |
background-image: url("images/file.png"); |
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 re | |
css_source = """ | |
@import url("../something.css"); | |
@import url(../something.css); | |
@import url(/some/url.css); | |
/* @import url(/some/url.css); */ | |
body { |
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
goog.object.set(diff, property, appkit.object.difference(a[property], | |
b[property], | |
equalsFn)); | |
// Not the same as above! WTF. | |
innerDiff = appkit.object.difference(a[property], | |
b[property], | |
equalsFn); |
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
goog.scope(function() { | |
hub.controller.AcronymsDialogCtrl = function(...) { | |
}; | |
var Ctrl = hub.controller.AcronymsDialogCtrl; | |
Ctrl.someMethod = ...; | |
Ctrl.prototype.someInstanceMethod = ...; |
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; indent-tabs-mode: nil; tab-width: 4; -*- | |
import argparse | |
import fnmatch | |
import glob | |
import os | |
import pprint | |
import shutil | |
import sys |
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 sys | |
import datetime | |
def experience(start, end): | |
months = (end.year - start.year)*12 + end.month - start.month | |
return divmod(months, 12) |