View users.json
"Nikolai Stoilov",
"\u26a1\ufe0f \ud835\udc71\ud835\udc86\ud835\udc8f \ud835\udc7a\ud835\udc95\ud835\udc93\ud835\udc8a\ud835\udc84\ud835\udc8c\ud835\udc8d\ud835\udc82\ud835\udc8f\ud835\udc85 \u26a1\ufe0f",

The Problem

Your program will get some html written to stdin. Convert all the inner html to upper-case for elements with a class name of "loud".

You can use trumpet and through to solve this adventure.

With trumpet you can create a transform stream from a css selector:

var trumpet = require('trumpet');
View ask.js
function ask(question, format, callback) {
var stdin = process.stdin, stdout = process.stdout;
stdout.write(question + ": ");
stdin.once('data', function(data) {
data = data.toString().trim();
if (format.test(data)) {
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View Simple_Q_Example.js
var Q = require('q');
var FS = require('fs');
var test = function(){
var deferred = Q.defer();
FS.readFile("foo.txt", "utf-8", function (error, text) {
if (error) {
} else {
View jsbin.zapok.html
<!DOCTYPE html>
<script src=""></script>
<script src=""></script>
<meta charset="utf-8">
<title>JS Bin</title>
View checkBrowserWidth.js
function getViewportWidth() {
var e = window;
var a = 'inner';
if (!( 'innerWidth' in window )) {
a = 'client';
e = document.documentElement || document.body;
return e[ a + 'Width' ];