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
GET /packages/archive/00-index.tar.gz HTTP/1.1 | |
Host: hackage.haskell.org | |
User-Agent: cabal-install/1.16.0.2 | |
Creating new connection to hackage.haskell.org | |
Warning: http error: Network.Browser.request: Error raised ErrorParse "Invalid | |
cabal: Char.intToDigit: not a digit -1 |
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
let s:spc = g:airline_symbols.space | |
function! airline#extensions#pandoc#word_count() | |
if mode() == "s" | |
return 0 | |
else | |
let s:old_status = v:statusmsg | |
let position = getpos(".") | |
let s:word_count = 0 | |
exe ":silent normal g\<c-g>" |
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
tell application "Skim" | |
# Get current dimensions and font size of the currently | |
# selected note. | |
set theDocument to the front document | |
set filePath to the file of theDocument | |
set theNote to the active note of theDocument | |
set theBounds to the bounds of theNote | |
set noteWidth to the (third item of theBounds) - the (first item of theBounds) | |
set noteHeight to the (second item of theBounds) - the (fourth item of theBounds) | |
set theView to the view settings of theDocument |
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
### McCabe - *Plato's Individuals* ### | |
### 2. Particulars ### | |
Extreme contrast between two different kinds of individuals or unities: forms, "one over many" and particulars "one under many." | |
[Page 25](sk://mccabe94#41) | |
Plato's distrust of the physical world may be ontological or it may be epistemological. Thesis: the latter because the physical world is not self-explanatory. | |
[Page 25](sk://mccabe94#41) |
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
# Open BibDesk and clear any search or group selection | |
tell application "BibDesk" | |
do shell script "open -a bibdesk" | |
set libGroups to the library groups of the front document | |
set group selection of front document to libGroups | |
set filter field of front document to "" | |
end tell | |
# Bring the main BibDesk window to the front | |
set theTitle to "mybib.bib" |
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 sublime, sublime_plugin, time | |
class MyJekyllCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
self.view.window().show_input_panel("Name of New Post", "", self.create_post, None, None) | |
def create_post(self, theTitle): | |
date = time.strftime("%Y-%m-%d-") | |
safeTitle = date + theTitle.lower().replace(" ","-") | |
path = "/Users/dansheffler/Dropbox/dansheffler/_posts/" + safeTitle + ".md" |
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
Show hidden characters
{ "keys": ["ctrl+k", "ctrl+d"], "command": "insert_date" }, |
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 sublime, sublime_plugin, time | |
class insertDateCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
date = time.strftime("%Y-%m-%d") | |
self.view.insert(edit, self.view.sel()[0].begin(), date) |
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 sublime, sublime_plugin | |
class openTodoCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
path = "/Users/dansheffler/Dropbox/Tasks/todo.taskpaper" | |
self.view.window().open_file(path) |
OlderNewer