#How to create a .file
or .folder
on Windows
There are several ways
- Create
file.txt
- Rename to
.file.
, the last dot will be dropped, you'll have.file
Works the same with a file or a directory.
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New new -s <session> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & |
;the code | |
(ns gilded-rose.core) | |
(def vest "+5 Dexterity Vest") | |
(def brie "Aged Brie") | |
(def elixir "Elixir of the Mongoose") | |
(def sulfuras "Sulfuras, Hand of Ragnaros") | |
(def passes "Backstage passes to a TAFKAL80ETC concert") | |
(def cake "Conjured Mana Cake") |
<!-- Add the 'math' namespace to your XML stylesheet (so we can use 'math:random') --> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:math="http://exslt.org/math" | |
extension-element-prefixes="math"> | |
<!-- Pick a random number between 1 - 10 and set as a variable --> | |
<xsl:value-of select="(floor(math:random()*10) mod 10) + 1" /> |
(defn next-read [] | |
(->> | |
(clojure.java.io/file ".") | |
(.listFiles) | |
seq | |
(remove #(.isDirectory %)) | |
rand-nth | |
(.getName))) | |
(println (next-read)) |