In the middle of the desert you can say anything you want
The goal of variable scopes is to allow for modularization of subsets of parameters, such as those belonging to layers (e.g. when architecture of a layer is repeated, the same names can be used within each layer scope).
d.drop_duplicates(subset=['text'])
For this, markdown uses two tildes ({%raw%}like this{%endraw%}).
(Should I write headers for these posts in /r/savedyouaclick style?)
find
find $LOCATION -name $REQUIRED_FILES -type f -mtime +1 -delete
for files older than one dayfind $LOCATION -name $REQUIRED_FILES -type f -mmin +360 -delete
for the same in minutesAlso relevant is mtime, ctime, and atime - modification time, change time, access time.
mtime changes when you write to the file. It is the age of the data in the file. Whenever mtime changes, so does ctime. But ctime changes a few extra times. For example, it will change if you change the owner or the permissions on the file.
TF_CPP_MIN_LOG_LEVEL=3 python3 tensors.py
does the magic needed
Inserted the following in config.py
:
config.bind('a', 'set-cmd-text -s :open -t')
, to make a
an alias for O
This is really really neat when running shell scripts that run other shell scripts etc.
ps fax
gives a nice tree. Can be combined with other stuff, so ps faux
also works.
TODO actually read through the man pages about this.
>>> exec(open("C:\\test.py").read())
for Python 3, and \
>>> execfile('C:\\test.py')
for Python 2. Works with relative path.Or, from the same SO thread, one can do just import filename_without_extension
, even if it doesn’t follow the structure with main() etc., in my experience.
This is probably one of the most SEO titles I’ve ever created, but I think it applies to all of them.
expand_dims
)# 't' is a tensor of shape [2]
tf.shape(tf.expand_dims(t, 0)) # [1, 2]
tf.shape(tf.expand_dims(t, 1)) # [2, 1]
tf.shape(tf.expand_dims(t, -1)) # [2, 1]
screen
scrolling<C-a>+Esc
– and then you can move with whatever usual ways there are, esp. arrow keys and Page up/downThis answer: sound - How to record output to speakers? - Ask Ubuntu mentions “Sound recorder”, and it works very well. Has weird settings about staying on top, running on startup etc that have to be changed.
9fb017224a344dc5f028b5a6b8000a8afb30f6fb
How to increment a variable in bash? - Ask Ubuntu
var=$((var + 1))
is the most portable one.
some_command >file.log 2>&1
is the only one that works for me in all cases. (shell - Redirect stderr and stdout in Bash - Stack Overflow)
"$@"
are the arguments one can iterate through, and "@#"
is their number.