Skip to content

Instantly share code, notes, and snippets.

View asci's full-sized avatar
🍊

Artem R asci

🍊
View GitHub Profile

test

Area Phase 1 Phase 2 Phase 3
Techs Editor, Responsive web, BEM, CSS3, HTML5, basic JS, animations, SVG, icon fonts, SCSS\Stylus, flexbox, building tools advanced JS, Browser API's, algorithms, OOP, FP, MVC, templating, patterns, d3, React, Redux, Ember, Routers, Maps server side, nodejs, isomorphic web, testing, REST, WS, docker, MongoDB, Redis, SQL, RabbitMQ
Project landing page client for flickr isomorphic app like google keep or so
Time 1-1.5 month 2-2.5 months 3-3.5 month
# This file is used by Flex Tool Bar to create buttons on your Tool Bar.
# For more information how to use this package and create your own buttons,
# read the documentation on https://atom.io/packages/flex-tool-bar
[
{
type: 'button'
tooltip: 'Show in file tree'
callback: 'tree-view:reveal-active-file'
icon: 'bullseye'
@asci
asci / .flowconfig
Created December 12, 2016 16:42
Flow configs
[ignore]
.*/node_modules/.*
[include]
[libs]
[options]
module.file_ext=.js
module.ignore_non_literal_requires=true
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
@asci
asci / jsinit.sh
Created January 22, 2017 19:32
Script to init new JS project
touch index.js
echo "node_modules" >> .gitignore
echo ".DS_Store" >> .gitignore
git init .
flow init
curl https://gist.githubusercontent.com/asci/dc5dfe08233b94b4b57a89d566c1233a/raw/0a70dec040024970310174cf94fa8f79ca113483/eslintrc.js >> eslintrc.js
npm init --yes
@asci
asci / JuiceJS_example.js
Created January 30, 2017 12:43
Juice JS example
const juice = require("juice");
console.log(juice(`
<style>.test {width: 100px}</style>
<div class="test">Test</div>
`))// => "<div class="test" style="width: 100px;">Test</div>"
@asci
asci / script.js
Created June 11, 2017 11:18
crystal-feed - remove all non-important cards from your facebook feed
(function() {
'use strict';
function debounce(callback, delay) {
var timeout;
return function() {
var context = this,
args = arguments;
@asci
asci / stub.js
Created January 23, 2018 09:38
Mocha cheatsheet
// return resolved promise
sandbox.stub(Obj, 'method').resolves(value);
// return rejected promise
sandbox.stub(Obj, 'method').rejects(value);
@asci
asci / fromPromise.js
Created March 12, 2018 14:17
Observable from Promise
export default function fromPromise(promise) {
return new Observable(observer => {
let active = true;
promise.then((...data) => {
if (active) {
observer.next(...data);
}
observer.complete();
}).catch((...err) => observer.error(...err));
@asci
asci / forEach.js
Last active February 24, 2019 09:45
tree functions
function walkTree(onEachChildren, childrenKey = "children") {
return function treeWalker(elem, level = 0) {
onEachChildren(elem, level);
if (elem[childrenKey]) {
elem[childrenKey].forEach(item => treeWalker(item, level + 1));
}
};
}
// how to use