Code Monkey home page Code Monkey logo

artanis's Introduction

Artanis

example workflow

A CLI to download assets from Artstation

Prerequisites

To download a collection of assets you have to know the CollectionId and the Username who has the collection.

There is no official API to get it, in this way you can use your collections instead.

For example, there is a collection link https://www.artstation.com/es-andrew/collections/1516043 where es-andrew is the Username and 1516043 is the CollectionId.

Basic Usage

To just download image assets you have to specify an additional argument -q "type=image"

artanis collection-assets 1516043 "es-andrew" "./artstation" -q "type=image" 

Corner Cases

There is no error handling under the hood, you are on your own right now

License

MIT License

artanis's People

Contributors

andrew-malikov avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

artanis's Issues

Composition Root

Making a system without any DI container might be tricky. There are no deep guidelines around except to arrange the stuff to interfaces and make DI around them.

Just to observe the state

  • the official docs say packages shall not export any classes without interfaces (which is good by the way)
  • there is an example of a DI container built upon the tokens (e.g. Angular or Nest)

https://github.com/VallanDeMorty/artanis/blob/d021ac0cd2c02f0f22ab33000e1b1828cae18499/Interface/Collections/CollectionCommands.fs#L28-L43

As a User I would like to have filtered Assets by size

GIVEN a collection with Assets and criteria to filter Assets whos are bigger than X size by width and Y by height
WHEN a User use command to fetch the Collection Assets
THEN the command load Assets which has a bigger size according to the criteria

GIVEN a collection with Assets and criteria to filter Assets whos are lesser than X size by width and Y by height
WHEN a User use command to fetch the Collection Assets
THEN the command load Assets which has a bigger size according to the criteria

GCD doesn't cover all cases

Current GCD implementation doesn't cover the case when b > a which cause None result

let rec gcd =
        function
        | a, b when a = b -> Some a
        | a, b when a > b -> gcd (a - b, b)
        | _ -> None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.