start new:
tmux
start new with session name:
tmux new -s myname
*.acn | |
*.acr | |
*.alg | |
*.aux | |
*.bak | |
*.bbl | |
*.bcf | |
*.blg | |
*.brf | |
*.bst |
search and replace | |
------------------- | |
s/foo/bar/g changes each 'foo' to 'bar' in the current line. | |
:%s/foo/bar/g changes each 'foo' to 'bar' in all lines. | |
:5,12s/foo/bar/g changes each 'foo' to 'bar' for all lines between line 5 and line 12. | |
:'a,'bs/foo/bar/g changes each 'foo' to 'bar' for all lines between marks a and b. | |
:.,$s/foo/bar/g changes each 'foo' to 'bar' for all lines between the current line (.) and the last line ($). | |
:.,+2s/foo/bar/g changes each 'foo' to 'bar' for the current line (.) and the two next lines (+2). | |
:%s is equivalent to :1,$s |
license: gpl-3.0 | |
height: 2910 | |
border: no | |
redirect: https://observablehq.com/@d3/d3-calendar-view |
/** | |
* diskutil list shows you the partitions currently connected to your unit | |
**/ | |
imac:~ user$ diskutil list | |
/dev/disk0 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *1.0 TB disk0 | |
1: EFI 209.7 MB disk0s1 | |
2: Apple_HFS Macintosh HD 987.2 GB disk0s2 |
-- original by Stephen Margheim | |
-- edited by Derick Fay, 29 Aug 2013 | |
-- copies to clipboard | |
-- uses Cite Key rather than title as link text | |
-- Displays Cite Key as well as Title in selection dialog | |
-- (I use Author-Date cite keys, & tend to think of publications as Author Date references rather than titles…) | |
display dialog "Get Link of selected item or choose other item?" buttons {"Get Selected", "Choose Other"} default button {"Get Selected"} | |
--Get Markdown formatted info for selected item |
(* PROPERTIES *) | |
property LF : (ASCII character 10) | |
property LF1 : (ASCII character 32) & (ASCII character 32) & (ASCII character 10) | |
property tid : AppleScript's text item delimiters | |
(* THE SCRIPT *) | |
tell application "Skim" | |
set theTextStatus to display dialog "Is the PDF a Primary or Secondary text?" buttons {"Primary", "Secondary"} default button {"Secondary"} | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Nov 30 22:32:04 2013 | |
@author: pascal Schetelat | |
""" | |
import matplotlib.pyplot as plt |