Questions tagged [generate]

Any question related to the Generate developer framework and CLI tool should tagged using the `generate` tag. How to use the generate CLI to run this generator ? How to use this generator as a plugin ? How to run a task from a subgenerator ? How to create my own Generate generator ?

What is generate ?

Generate is an extremely modern command line tool and developer framework for scaffolding out any kind of developer projects. Generate offers the robustness and configurability of Yeoman, the expressiveness and simplicity of Slush, and more powerful flow control and composability than either.

It is an open source framework hosted on github under the MIT license.

It has its own Github organization to namespace all the generators authored by the same author, Jon Schlinkert.

Generate is part of the awesome node toolkit created by the same author: https://github.com/node-toolkit

Some of the best related projects composing the node-toolkit:

Related StackOverflow tags

371 questions
1
vote
1 answer

Generate daily time series date from monthly usage with python

I have about two years of monthly gas usage for a city and want to generate daily use concerning daily usage sum equal to monthly and keep time-series shape, but I don't know how to do that. Here is my data Link [1]
1
vote
1 answer

How to generate regular hexagon sequence when it is defined as follow?

The regular hexagon sequence is defined as follow. The highest hexagon is 1. next hexagon is on clockwise of previous hexagon. if next hexagon already has number, then inner highest hexagon is given number. The sequence is generated by reading of…
1
vote
1 answer

Nuxt: Hydration of static page fails (asyncData missing)

Once again I have a nuxt question: I have some static pages which make use of asyncData. In my asyncData I load data from a JSON file. On the server I do that via filesystem and on the client with axios. This looks more or less like this: async…
Merc
  • 4,241
  • 8
  • 52
  • 81
1
vote
0 answers

How to generate seasonal time series data in positive value using sim.ssarima in R?

I want to make X-13 ARIMA-SEATS simulation using seasonal time series data that generate from package 'sim.ssarima'. But in X-13 ARIMA-SEATS require the data must be non-zero and positive value. Whereas 'sim.ssarima' generate random value (positive…
1
vote
1 answer

IS it possible to optimise this sequence/code generation within the given format/syntax constraints?

I'm attempting to generate a code, some of which has to follow certain predefined rules(see commentary). I only need as many as there are df rows passed in - the code is assigned back to that same df on a simple per-row basis. Returning a list…
John
  • 39
  • 5
1
vote
1 answer

Creating a new variable to measure flatlining in other variables

I am trying to analyze how extreme flatlining can be in a set of Likert-scale variables (V21-V34, V84-V92, and V114-V119). For example, if a respondent answers "strongly agree" for 14 out of 27 variables, "somewhat agree" for 9, "neither/nor" for 2,…
1
vote
2 answers

How to create an VHDL-2008 alias to a signal in an hierarchy created by for-generate?

I have an hierarchy created by a for-generate like this: INST: for ... generate . . . end generate; It creates many instances, as expected, named as INST__0, INST__1, etc, which names have a double underscore on it. When I try to create an alias to…
Walter X
  • 11
  • 4
1
vote
3 answers

How to generate new list for each element of existing list (which is also generated)?

I have list containing some paths: ['folder1/folder2/Module1', 'folder4/folder5/Module2', 'folder7/folder8/Module3', 'folder12/folder13/Module4', 'folder17/folder20/folder50/Module5' .. etc] What would be the best way to extract each element of that…
John
  • 230
  • 2
  • 12
1
vote
1 answer

Generate sentences usign streams using scala

I want to generate multiple sentences using Stream. What I have now is I can generate 1 Sentences. def main(args: Array[String]): Unit = { println((generateSentence take 1).mkString) } This is the result I have so far …
NoobZik
  • 87
  • 9
1
vote
4 answers

Iteratively print JavaScript dictionary of objects into HTML divs

I'd appreciate some help with iteratively generating the beneath div based on the amount of items in a Javascript dictionary.
my name jeff
  • 89
  • 1
  • 9
1
vote
0 answers

Generate bivariate random numbers from a joint probability distribution in Python

I have two distributions over two parameters h and t. h is Weibull distributed while t is conditioned on h and it is log-normal distributed: f_H = np.exp(-(h / alpha) ** beta) * (beta / alpha) * (h / alpha) ** (beta - 1) f_TIH = np.exp(-(np.log(t) -…
Trying
  • 21
  • 4
1
vote
1 answer

Generate secure random password in PHP

I've made a php function which generate random password. But, sometimes, password length is different that I want (I fixed it to 10) and I don't understand why ? I wish password don't start by special char if it possible. Can you help me please…
Lokomass
  • 41
  • 6
1
vote
1 answer

How can I generate a dynamic series in Power BI, for which the first value depends on a measure, and then plot on a visual?

Looking to generate a series of dates and values on Power BI for which the first value and the increments depend on measures. (Dynamic series generation and then applying to visuals). Tried do to this through a calculated column, however this was…
GDB007
  • 11
  • 1
1
vote
1 answer

Is it possible to generate flutter .ipa file in flutlab?

I am new in flutter. I am able to generate .apk file from android studio. I have already searched from google but can not find a suitable solution except on flutlab. I am able to build ios debug from flutlab but can not generate .IPA file. can…
Noyon
  • 97
  • 8
1
vote
1 answer

Typed google test, combine types, c++

I am using google test for testing my c++ lib that does pixel conversions and other things. Now consider I have these models participating in the test. using Models = testing::Types
Hrant Nurijanyan
  • 789
  • 2
  • 9
  • 26