Skip to content

Instantly share code, notes, and snippets.

View Kirill255's full-sized avatar
🏠
Working from home

Kirill Kirill255

🏠
Working from home
View GitHub Profile
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"fallback_encoding": "Cyrillic (Windows 1251)",
"font_options":
[
"no_italic",
"directwrite"
],
"font_size": 9,
"ignored_packages":
@Kirill255
Kirill255 / url_slug.js
Created December 29, 2017 20:43 — forked from sgmurphy/url_slug.js
URL Slugs in Javascript (with UTF-8 and Transliteration Support)
/**
* Create a web friendly URL slug from a string.
*
* Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <sean@iamseanmurphy.com>
@Kirill255
Kirill255 / node-download.js
Created January 20, 2018 00:50 — forked from andrewmartin/node-download.js
Download files with node.js
var fs = require('fs'),
stub = require('./stub'),
_ = require('underscore'),
request = require('request');
// config for local file
var basePath = "images/",
data = stub.data,
urlRoot = "http://cdn.catalogs.com/";
@Kirill255
Kirill255 / js-task-1.md
Created March 14, 2018 20:35 — forked from codedokode/js-task-1.md
Задания на яваскрипт (простые)
@Kirill255
Kirill255 / test.html
Created March 15, 2018 09:12 — forked from alexelev/test.html
quiz generator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test generator</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script async>
const data = '[{"answers":[{"correct":true,"title":"Модульный тест"},{"title":"UI-тест"},{"title":"Системный тест"},{"title":"Нагрузочный тест"}],"question_id":"123","title":"Каким типом тестов покрывается бизнес-логика?"},{"answers":[{"title":"100%"},{"correct":true,"title":"Зависит от требований к надежности"},{"title":"80%"},{"title":"50%"}],"question_id":"124","title":"Какое покрытие кода считается нормальным?"}]';
"import/first": [ "warn", "DISABLE-absolute-first" ],
"vue/html-self-closing": "off",
'vue/max-attributes-per-line': [2,
{
'singleline': 1,
'multiline': {
'max': 1,
'allowFirstLine': true
}
}

vscode_settings

@Kirill255
Kirill255 / Export_VSCode_Extensions.md
Last active March 18, 2019 09:24 — forked from elijahmanor/README.md
Export @code Extensions to a Markdown List

You can run either of the following snippets in your terminal to generate a markdown list of your VS Code extensions.

code --list-extensions | awk '{ print "* [" $1 "](https://marketplace.visualstudio.com/items\?itemName\=" $1 ")" }'

npx https://gist.github.com/elijahmanor/7f9762a4c2296839ad33e33513e88043

NOTE: You can append | pbcopy to either of the above commands to pipe the output to your Mac's copy/paste buffer.

Install and use

  1. Download zip archive https://www.mongodb.org/dl/win32/i386
  2. Unpacks an archive in "c:/mongo" directory
  3. Create "c:/mongo/db" directory or default directory c:/data/db
  4. For run mongod use ./mongod.exe --dbpath "c:/mongo/db" or just mongod --dbpath "c:/mongo/db"
  5. For run mongo use ./mongo.exe or just mongo

Known errors