gives the full absolute path. but if the file is a symlink, u'll get the final resolved name. |
Monday, January 30, 2017
show full path of a file
Wednesday, January 13, 2016
vim scp, etc
vimdiff a.sas scp://user@lpwcsmd1//data/b.sas
note that / is used to separate host and path, so there are two slashes above.
Wednesday, January 21, 2015
Tuesday, November 18, 2014
Monday, October 27, 2014
promise in R
promise in R
#define PROMSXP 5 /* promises: [un]evaluated closure arguments */reference
and see
forcein R
Tuesday, September 23, 2014
see the version number of mac on command line
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.5
BuildVersion: 13F34
Saturday, September 6, 2014
Wednesday, July 9, 2014
Monday, June 23, 2014
latex resizebox in a minipage for tabular with a caption
We can put tabular to resizebox to easily resize a table in latex.
If it's in a minipage environment, we might need caption package to add captions.
Thursday, June 12, 2014
paste: combine files horizontally
PASTE(1) BSD General Commands Manual PASTE(1)
NAME
paste -- merge corresponding or subsequent lines of files
SYNOPSIS
paste [-s] [-d list] file ...
Wednesday, April 30, 2014
count a character in each line
for example, if I want to check if a CSV file without quotes is valid, something like the following might help:
tr -d -c ',\n' < file | awk '{print length;}' | uniq
Friday, April 25, 2014
capture.output function in R
Once I was wondering how to return string from function str(). I guess capture.output is one way:
capture.output package:utils R Documentation
Send Output to a Character String or File
Description:
Evaluates its arguments with the output being returned as a
character string or sent to a file. Related to 'sink' in the same
way that 'with' is related to 'attach'.
Usage:
capture.output(..., file = NULL, append = FALSE)
Arguments:
...: Expressions to be evaluated.
Tuesday, March 25, 2014
vim copy highlighted to
In order not to retype the pattern that just have been used in search, one can press Ctrl+R, / to automatically insert last search pattern.
Monday, March 17, 2014
Fwd: Mac print to PDF without margin
We need to create a customized page size of say letter with margins being of zero inch.
Monday, March 10, 2014
Thursday, March 6, 2014
Friday, January 24, 2014
delete all unread message in gmail in a second
Input
in:inbox is:unreadto the search box:select all and then delete.
Friday, December 27, 2013
git flow release a new version
gitflow how to release a new version
steps can be found here. In particular,
- create a release branch
$ git checkout -b release-2.1 develop work on the release branch such as bumping up the version
merge to master and develop branch
create a tag
$ git checkout master $ git merge --no-ff release-2.1 $ git tag -a v2.1 - push the tag, see here
$ git push origin v2.1 Thursday, December 19, 2013
excel on mac using letters to indicate columns
https://kb.wisc.edu/page.php?id=781
excel -> preference -> general -> use r1c1 reference style (uncheck it)
Subscribe to:
Posts (Atom)