This gist allows to define a css grid system where elements can be positioned inside. E.g. Dashboard widget arrangement.
Add a dragable element, resize it, position where ever you want.
/* | |
Added complex matches by Shimon Doodkin 2012 | |
Developed by Elijah Rutschman 2009 - http://elijahr.blogspot.com/2009/03/javascript-cron.html | |
*/ | |
/* | |
a typical cron entry has either wildcards (*) or an integer: | |
.---------------- minute (0 - 59) | |
| .-------------- hour (0 - 23) | |
| | .------------ day of month (1 - 31) |
#!/bin/bash | |
# tunejack.sh uses the TuneIn public API (at opml.radiotime.com) to search for | |
# a radio station, print out its details and try to play it somehow. | |
if [ "$#" -eq 0 ]; then | |
echo "$0: search for a radio station using the TuneIn API" | |
echo "Usage: $0 PATTERN" | |
exit 1 | |
fi |
const { Transform } = require("stream"); | |
module.exports = () => { | |
let encode = new Transform({ | |
transform(chunk, encoding, cb) { | |
console.log("[encode]", chunk); | |
cb(null, chunk); |
This is a example of a very lightweight, stream based, node.js logger. It creates a "record" object for each log call, and pipe it throught the spicified streams. In the streams its possible to modifie the record, format the message, and many more.
Bunyan, there is no one responding on issues, Winstons is way to big and have unecesseray dependencies.
I wanted a lightweight, easy to use, expandable, stream based, logging utily with zero dependencies.
You can all merge this down into a single file. You bascily need class.logger.js
& levels.js
which can simple merged into a single file.
The other files (demo.js
, formatter.js
) are for demonstration & formatting and not needed for the functionality.
var makeCRCTable = function(){ | |
var c; | |
var crcTable = []; | |
for(var n =0; n < 256; n++){ | |
c = n; | |
for(var k =0; k < 8; k++){ | |
c = ((c&1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1)); | |
} | |
crcTable[n] = c; | |
} |
lib coming soon...
const events = require("events").EventEmitter; | |
/* | |
Added complex matches by Shimon Doodkin 2012 | |
Developed by Elijah Rutschman 2009 - http://elijahr.blogspot.com/2009/03/javascript-cron.html | |
*/ | |
/* | |
a typical cron entry has either wildcards (*) or an integer: |
node command.js --cmd=PWR01
Power On
node command.js --cmd=PWR00
Power Off
node command.js --cmd=MVL010
Master volume = 10
node command.js --cmd=MVL000
Master volume = 0\