Skip to content

Instantly share code, notes, and snippets.

View z4o4z's full-sized avatar
💻

Evgeny Zaytsev z4o4z

💻
  • Voiceflow
  • Poland
  • 11:35 (UTC +02:00)
View GitHub Profile
let brackets = {
"[": "]",
"{": "}",
"(": ")",
"<": ">"
}
function correctBrackets (str) {
const vals = Object.keys(brackets).map(key => brackets[key]);
const keys = Object.keys(brackets);
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.47843137383460999</real>
@z4o4z
z4o4z / cloudSettings
Last active October 14, 2020 08:34
Visual Studio Code Sync Settings Gist
{"lastUpload":"2020-10-14T08:34:27.145Z","extensionVersion":"v3.4.3"}
@z4o4z
z4o4z / parallel-test.js
Last active March 27, 2018 13:13
Parallel test
/*
* You have to implement missing part of the application that making code below (which untouchble)
* to be compiled and executed without exceptions and assertions.
*/
class Parallel {}
/************************************************
* Please don`t change the code bellow this line *
************************************************/
const AWS = require('aws-sdk');
const Promise = require('bluebird');
AWS.config.setPromisesDependency(Promise);
AWS.config.update({
region: 'eu-west-1',
credentials: {
accessKeyId: 'sas',
secretAccessKey: 'sas'
function zoom(n) {
const length = n % 2 ? n : n - 1;
const center = (length - 1) / 2;
if (length < 0) {
return '';
}
function getSquare(square, level, symbol) {
if (level * 2 > length) {
'use strict';
let path = require('path');
let args = require('yargs').argv;
let webpack = require('webpack');
let HtmlWebpackPlugin = require('html-webpack-plugin');
let ExtractTextPlugin = require('extract-text-webpack-plugin');
let StyleLintPlugin = require('stylelint-webpack-plugin');
let ImageminPlugin = require('imagemin-webpack-plugin').default;
let autoprefixer = require('autoprefixer');
'use strict'
$(function() {
function Quotes() {
var self = this;
self.wrapperObj = $('.wrapper');
self.newQuoteButton = $('.getNewQuote');
self.socialButton = $('.social-buttons__item');
self.quoteContainer = $('.quoteContainer');
self.authorContainer = $('.authorContainer');
import { param } from 'jquery';
import { Controller } from 'marionette';
import ProjectController from '../controllers/ProjectController';
import logger from '../helpers/logger';
const settings = {};
settings.facebook = {
"use strict";
let path = require('path');
let args = require('yargs').argv;
let webpack = require('webpack');
let HtmlWebpackPlugin = require('html-webpack-plugin');
let ExtractTextPlugin = require('extract-text-webpack-plugin');
let CopyWebpackPlugin = require('copy-webpack-plugin');
const PATH_DIST = path.join(__dirname, 'dist');