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 / README.md
Created October 23, 2018 20:59
NodejsReactMongodb

Задание №1. Скачайте и установите Node.js.

// Загрузить Node.js можно с официального сайта разработчика https://nodejs.org

На главной странице доступны две версии загрузки: самая последняя версия и LTS-версия (Long-Term Support)

Рекомендуется устанавливать LTS-версию

@Anna-Myzukina
Anna-Myzukina / nasa.py
Last active October 22, 2018 22:40
GetPhotoFromMars
from aiohttp import web
async def get_mars_photo(request):
return web.Response(text='A photo of Mars')
app = web.Application()
app.router.add_get('/', get_mars_photo, name='mars_photo')
@Anna-Myzukina
Anna-Myzukina / README.md
Last active October 21, 2018 11:41
MySportsFeeds
@Anna-Myzukina
Anna-Myzukina / 2-file.md
Last active October 3, 2018 18:34
how to markdown

Markdown is awesome!

<!--## HEADINGS (Exercise 2 of 12)

  It's important to categorize information. That's when headings help.

If you need to add a heading, just type a # sign at the beginning of the

@Anna-Myzukina
Anna-Myzukina / 1-introdution.js
Last active September 23, 2018 19:00
esnext-generation
//Exercise 1
/*
Create a function, makeCounter(someObj), which turns someObj (a plain old
Javascript Object) into an Iterator. This Iterator should count the positive
integers starting at 1, through to and including 10
An Iterator's .next() method must always return an object similar to
{value: 1, done: false}.
Once all numbers have been returned, done should be true.
*/
module.exports = function makeCounter(someObj) {
@Anna-Myzukina
Anna-Myzukina / 1-program.js
Last active September 21, 2018 06:19
count-to-6
//Exercise 1
/* write a program.js that outputs the
string "HELLO ES6" to the console
*/
console.log("HELLO ES6");
@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;
}
@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-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
<!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;