Skip to content

Instantly share code, notes, and snippets.

View danielfleischer's full-sized avatar

Daniel Fleischer danielfleischer

View GitHub Profile
;;; calfw-git.el --- calendar view for git-log
;; Copyright (C) 2014 SAKURAI Masashi
;; Author: SAKURAI Masashi <m.sakurai at kiwanami.net>
;; Keywords: calendar
;; Package-Version: 20141217.1707
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@danielfleischer
danielfleischer / config.el
Created October 20, 2020 05:52
Hebrew setup
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(setq default-input-method "hebrew")
(setq bidi-display-reordering t)
(setq bidi-paragraph-direction nil)
(defun change-lang ()
@danielfleischer
danielfleischer / Statistic Tests.ipynb
Created December 30, 2018 09:36
14 statistical tests in python, using scipy.stats.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danielfleischer
danielfleischer / pdf_renaming
Created April 4, 2018 09:01
Rename your PDFs using nice capitalization, using the `rename` utility.
#!/usr/bin/env sh
rename -f -c *
find . -name "*.pdf" -exec rename -f -e 's/\b([a-z])/\u\L$1/g' {} \;
find . -name "*.Pdf" -exec rename -f -e 's/Pdf/pdf/' {} \;
@danielfleischer
danielfleischer / pip-upgrade
Created February 12, 2018 15:27
pip upgrade script, interactive version (asks before each outdated package is upgraded)
#!/usr/bin/env bash
pip3 list --outdated | awk '{print $1}' | xargs -n1 -p pip3 install -U