Skip to content

Instantly share code, notes, and snippets.

View Anna-Myzukina's full-sized avatar
💭
if you NEVER try } YOU`LL never KNOW

Anna Muzykina Anna-Myzukina

💭
if you NEVER try } YOU`LL never KNOW
View GitHub Profile
@Anna-Myzukina
Anna-Myzukina / beep_boop.js
Last active September 10, 2018 16:24
stream-adventure
//Exercise 1
/**
* Make a new directory for your stream-adventure solutions (mkdir stream-adventure and enter it cd ./stream-adventure)
Create a new file called beep_boop.js that uses console.log to output "beep boop".
*/
console.log("beep boop");
@Anna-Myzukina
Anna-Myzukina / AsyncLoops.js
Last active May 22, 2024 19:49
functional-javascript-workshop
//Exercise 15
/*Fix this code! The callback should be called with all the users loaded.
The order of the users should match the order of supplied user ids. Because this
function is asynchronous, we do not care about its return value.
# Arguments
* userIds: an Array of numeric user ids.
* load: a Function used to load user objects. Expects a numeric id and a callback.
* The callback will be called with the result of loading the user with the specified id
* (either a user object or null).
* done: a Function that expects an Array of user objects (as retrieved from `load`).
@Anna-Myzukina
Anna-Myzukina / 1-README.md
Last active December 3, 2021 15:18
learnyoumongodb

//Exercise 1 Install mongodb from:

  1. https://www.mongodb.org/downloads. or sudo apt install mongodb

To verify that mongod is installed, you can try running mongod --version

//Exercise 2 Start mongod on port 27017 with data as the dbpath 1.at first terminal : mkdir data , next cd data , next mongod --port 27017 --dbpath=./data 2.at onother terminal run npm install mongodb

@Anna-Myzukina
Anna-Myzukina / Main.js
Last active September 13, 2018 16:56
tower-of-babel
//Exercise 4
var arg1 = process.argv[2];
var arg2 = process.argv[3];
import {PI, sqrt, square} from './Math';
console.log(PI);
console.log(sqrt(+arg1));
console.log(square(+arg2));
@Anna-Myzukina
Anna-Myzukina / 1-hello.bash
Last active September 15, 2018 20:22
learnyoubash
#!/usr/bin/env bash
echo "Hello, world!"
#1.touch hello.bash
#2.chmod +x hello.bash
#3. ./hello.bash
@Anna-Myzukina
Anna-Myzukina / 1-intake.js
Last active September 28, 2018 18:07
bug-clinic
//Exercise 1
/*To proceed, write a program that prints "i am okay" to standard output
and "i am so incredibly not okay" to standard error.
*/
console.log('i am okay');
console.error('i am so incredibly not okay');
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
p {
font-family: 'helvetica neue', helvetica, sans-serif;
letter-spacing: 1px;
@Anna-Myzukina
Anna-Myzukina / 1-emotify.js
Last active September 26, 2018 21:21
test-anything
//Exercise 1
var emotify = require(process.argv[2])
console.log(emotify(process.argv[3]))
/*
# Log it out
Developing apps and modules is fun. However often you might be concerned whether
things work or when you add new features you want to be sure you did not break
@Anna-Myzukina
Anna-Myzukina / 1-waterfall.js
Last active September 19, 2018 21:25
async-you
//Exercise 1
/*write a program that first reads the
contents of a file.
The path will be provided as the first command-line argument to your
program (i.e. process.argv[2]).
The file will contain a single URL. Using http.get, create a GET
request to this URL and console.log the response body.
*/
@Anna-Myzukina
Anna-Myzukina / 1-run.js
Last active September 19, 2018 22:39
learn-generators
//Exercise 1
/*Write a range generator-function that takes from and to arguments.
Print the numbers as strings within the specified range, one per line.
Follow this boilerplate:
*/
function *range(from, to) {
// your code goes here
for(var i = from; i <= to; i++) {
yield i;
}