Skip to content

Instantly share code, notes, and snippets.

View danmagyar's full-sized avatar

Daniel Magyar danmagyar

  • Budapest, Hungary
View GitHub Profile
@danmagyar
danmagyar / TerminalVim.scpt
Created July 10, 2022 21:43 — forked from charlietran/TerminalVim.scpt
Open file in iTerm vim for MacOS Sierra
-- TerminalVim.app
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm
-- To use this script:
-- 1. Open Automator and create a new Application
-- 2. Add the "Run Applescript" action
-- 3. Paste this script into the Run Applescript section
-- 4. Save the application as TerminalVim.app in your Applications folder
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default
@danmagyar
danmagyar / run_nosetest_with_coverage_example.sh
Created August 13, 2019 15:17
How to run python tests with coverage report with nose.
pip install nose
pip install coverage
nosetests --cover-branches --with-coverage --cover-erase --cover-html --verbose $PATH_TO_TEST_FILE
open cover/index.html