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
0
votes
1 answer

go generate stdout piped to gofmt to file

What is the syntax so go generate can pipe stdout from go run to gofmt and ultimately to a file? Below is simple example of what I have tried. Its in the file main.go. I can't find any examples of this after searching. Thank you. Edit:…
user2133814
  • 2,431
  • 1
  • 24
  • 34
0
votes
3 answers

Rename with random numbers

I was trying to make smth like this... Basically im trying to shuffle music by their names. Everything works nicely, but i was wondering if theres a way for tihs random funcion not to repeat same numbers? private void…
0
votes
1 answer

Generated begin-end blocks must be named

I am compiling an SNN simulator named "ODIN" in Xilinx. for Generate block I get this error but I think there is nothing wrong with this block. Can you help me with this? ''' genvar i; generate for (i=0; i<8; i=i+1) begin …
dreamer1375
  • 53
  • 1
  • 10
0
votes
0 answers

Generating Snowflake scripts that would grant the privileges to all the appropriate roles in an account

I'm trying to write SELECT statements that would generate 'grant' scripts that would grant all the privs to the appropriate roles in the entire account. This is needed to migrate a Snowflake account from one region to another. Has anyone come up…
0
votes
1 answer

JGraphT create a random graph from pre existing vertices

I need to create a random graph from a few pre existing vertices. I didn't find a way to do this yet. Each tutorial is using the "VertexFactory" (which btw cannot be resolved even though importing org.jgraph.generate.*) to make up vertices while…
ICEBERG
  • 13
  • 6
0
votes
2 answers

Is the code correct to discover x while using the hash?

I am writing a basic code using python to find what x is with the given hash. However, it is not printing out x when I run it which I believe is because there is not a number in the range 000000-1000000 with the rest of the string to get the hash. I…
dawnura
  • 3
  • 4
0
votes
1 answer

How i can generate QR code with logo on Unity3D?

I want to generate QR code with logo like this: Environment: Unity3D C# I try to write code by examples from Internet. private Texture2D GenerateBarcode(string data, BarcodeFormat format, int width, int height) { var encodeOptions = new…
HardCoder
  • 59
  • 1
  • 7
0
votes
3 answers

Python random string/text/code generator with fixed length and some characters

So, a few years ago I have found an exploit in the giftcard system at McDonalds. The basic point is by combining about 15-20 cards, and their codes, I got a point that 3rd and the 7th characters are the same while the others are completely random. I…
Vusal Ismayilov
  • 111
  • 2
  • 9
0
votes
1 answer

Sweave, Shiny : can't generate a PDF on the server

I'm working on R Sweave to generate a report in PDF in a shiny application on a server. Everything works perfectly in my computer, locally, I can generate my PDF in the application. It also works in the server. But, when I wanted to add an image…
Alice
  • 54
  • 6
0
votes
0 answers

How can I pass values from View to a .doc template?

I have a view (edit.cshtml) that contains textboxes with values. I want user be able to click a button in the page, and the values passed to a .doc template, then user will be prompted where they want to save the .doc file (with the values already…
Waller
  • 433
  • 1
  • 6
  • 20
0
votes
2 answers

Python - How to always generate valid Luhn numbers?

I'm trying to generate valid Luhn numbers using random library (without using other libraries like fast_luhn) I generated a random number, then the last digit is iterated from 0 to 9, each iteration being a new case to check in the function…
Y4RD13
  • 937
  • 1
  • 16
  • 42
0
votes
1 answer

Creating Java POJOs from Mongo collections

I have a existing MongoDB and I need to write Java POJOs for all the collections. Is there any tool which can auto-generate the POJOs from the mongo collections? I am able to find tools to convert Mongo collections to JSON, but could not find a…
0
votes
1 answer

Generate PNG from from table in dita-file

I have many .dita files containing tables like the one shown below. I am trying to generate png images from these tables, preferably using python, but I can not seem to find any information or packages to do so. Is there something I am…
0
votes
1 answer

How to build a pseudo number generator to have same result in JS and C#

After I build a JS function that generates pseudo numbers from initial seed I created the same function in C# expecting to get the same results. After 6 iterations the results where different... Can someone help me to build such a function that…
Gabriel Luca
  • 207
  • 2
  • 10
0
votes
1 answer

Script for downloading XML and generating new one with XPath

I have an xml file which is updated every few hours by an e-commerce platform. I would like to generate a separate xml file with xpath filter. XPath code is one line. Which language should I use to generate that xml? Where can I find any template…
Fenixq
  • 3
  • 2