- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
-
Content Count
3 -
Joined
-
Last visited
Posts posted by LeshaInc
-
-
You can use pipes.
ls /path/to/folder | less
"prog 1 | prog2" here means: "Take prog1 output and put it in prog2 input".
You can also pipe output in file. In this case use ">" symbol. Like this:
ls /path/to/folder > output.txt
-
Rainbow
Sometimes you need to write colored strings in terminal. It isn't easy in some cases, so i wrote library for colored output.
Download
You can download this library using this command: pastebin get J9nAzYaiAlso this library can be found in my oppm repository, just navigate to rainbow folder.
Example
local color = require("rainbow") local buf = color.buffer{ colors_ext = { foreground = { cool = 0x735184 } }, patterns = { progress = function (self, info, now, max) return self.fg_white(info) .. " " .. self.fg_red("[" .. now .. "/" .. max .. "]") .. "\n" .. self.bg_black(self.fg_white("")) end } } local mycoolcolor = buf.colorize(0xDEAD00, true) buf(true, "progress", mycoolcolor("i am progress"), buf.fg_red(30), buf.fg_cool(100)) buf("i am text\n") color.core( "i am ", color.core.bg_red("core"), color.core.fg_white(color.core.bg_black(" text\n")) )
Documentation
... will be here soon. Just wait.
Enjoy!
Powering a case with IC2
in Miscellaneous
Posted
As I know you can connect IC2 directly to computers/chargers/assemblers etc. (It worked for me)