Brett Terpstra (@ttscoff) of Marked 2 and nvALT fame asked about my Alfred-Pinboard workflow.
-------------------------------------------------------------------------- | |
o = hs.hotkey.modal.new({}, "F16") | |
o:bind({}, 'f', function() launch("Finder"); o:exit(); end) | |
pressedO = function() o:enter() end | |
releasedO = function() end | |
k:bind({}, 'o', nil, pressedO, releasedO) | |
-------------------------------------------------------------------------- |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
" Script to improve transcribing audio/video in Vim: after loading this file, | |
" you can control mplayer through Vim commands. No need to switch between your | |
" Vim instance and the media player during your transcriptions | |
" | |
:command -complete=file -nargs=1 Test :call Test( "<args>" ) | |
function StartTranscribing( source ) | |
if filereadable( a:source ) | |
"create a new named pipe for communication between mplayer and vim | |
let s:mppipe = tempname() |
Reset your custom icons for apps in El Capitan with this script. Especially useful for apps that update too frequently. (I’m looking at you: Transmission and Calibre)
// backup your nvAlt file to github as gists | |
// uses openmeta (https://code.google.com/p/openmeta/) | |
'use strict'; | |
var ChildProcess = require('child_process'); | |
var gaze = require('gaze'); | |
var GitHubApi = require('github'); | |
var fs = require('fs'); | |
var _ = require('lodash'); |
I want to write plugins for Atom's editor in Ruby. Opal makes this possible. Atom is one of several projects in recent times to combine Chromium with Node.js for a desktop app. While it utilizes chromium for it's gui, and boasts "[e]very Atom window is essentially a locally-rendered web page", writing Atom plugins is more like writing a server-side node.js app than a typical single-page client-side app (albeit with really awesome integration with Chrome Devtools). Opal development, on the other hand, has to-date been focused primarily on the browser use-case.
Because of this, I had to make a choice between using the opal-node package from npm, using Opal via Ruby w/ a compile step, or packaging up opal-parser.js, including it with the app, and writing in compilation on the fly. Each choice came with compromises. Using opal-node would have been easiest, just create a top level index.coffee that required opal-node, and then require in your ruby
A quick and dirty script to check out each commit of a writing project and find the word count of each Markdown file at that point in time. You might want to use this on a clone of your writing repository. NO WARRANTY EXPRESS OR IMPLIED.