This file contains hidden or 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
| (package-initialize) | |
| (unless package-archive-contents | |
| (package-refresh-contents)) | |
| (unless (package-installed-p 'use-package) | |
| (package-install use-package)) | |
| (require 'use-package) |
This file contains hidden or 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
| (require 'package) | |
| (setq package-enable-at-startup nil) | |
| (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) | |
| (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) | |
| (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) | |
| (add-to-list 'package-archives '("melpamilk" . "http://melpa.milkbox.net/packages/")) | |
| (package-initialize) | |
| (unless (package-installed-p 'use-package) | |
| (package-refresh-contents) |
This file contains hidden or 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
| cd ~/tmp | |
| mkdir cleansmudge | |
| cd cleansmudge | |
| git init | |
| echo content > file.txt | |
| echo "*.txt filter=autoformat" > .git/info/attributes | |
| echo "[filter \"autoformat\"] | |
| clean = date >> ~/tmp/filteroutput.log | |
| smudge = cat" >> .git/config | |
| # After setting the filter, run 'tail -f ~/tmp/filteroutput.log' in another term. |
This file contains hidden or 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 python3 | |
| import plotly.graph_objs as go | |
| from plotly.offline import plot | |
| import datetime as dt | |
| data = [ | |
| go.Scatter( | |
| x = [ | |
| dt.datetime.strptime("2019-10-31T12:00:00", "%Y-%m-%dT%H:%M:%S"), | |
| dt.datetime.strptime("2019-10-31T13:00:00", "%Y-%m-%dT%H:%M:%S") |
This file contains hidden or 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
| #!/bin/bash | |
| # Packages | |
| sudo apt-get update | |
| sudo apt-get install -y git | |
| sudo apt-get install -y gitk | |
| sudo apt-get install -y emacs | |
| sudo apt-get install -y trayer | |
| sudo apt-get install -y xmonad |
This file contains hidden or 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
| /* Build with: | |
| g++ no-output.cpp -std=c++11 -g $(pkg-config --cflags opencv) $(pkg-config --libs opencv) -o no-output | |
| $ ./no-output ~/Videos/input.avi output.avi | |
| Opening /path/to/Videos/input.avi for reading... | |
| Opening output.avi for writing... | |
| * 1196444237 | |
| * 21.9044 | |
| * [960 x 600] | |
| frame size: [960 x 600] |
This file contains hidden or 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
| set mainfont {Helvetica 8} | |
| set textfont {{Courier New} 9} | |
| set uifont {Tahoma 8} | |
| set uicolor #383838 | |
| set want_ttk 0 | |
| set bgcolor #3f3f3f | |
| set fgcolor #969686 | |
| set uifgcolor SystemButtonText | |
| set uifgdisabledcolor SystemDisabledText | |
| set colors {#7f9f7f #cc9393 #8cd0d3 #dc8cc3 darkgrey brown #dfaf8f} |
This file contains hidden or 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
| ; directory to put various el files into | |
| (add-to-list 'load-path "C:/Program/emacs-22.3/includes") | |
| ; loads ruby mode when a .rb file is opened. | |
| (autoload 'ruby-mode "ruby-mode" "Major mode for editing ruby scripts." t) | |
| (setq auto-mode-alist (cons '(".rb$" . ruby-mode) auto-mode-alist)) | |
| (setq auto-mode-alist (cons '(".rhtml$" . html-mode) auto-mode-alist)) | |
| (add-hook 'ruby-mode-hook | |
| (lambda() |