Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have ubuntu. I saved my file as untitled.rb print "hello"
If I build this, I see nothing in build results.
Build system is Ruby.
I believe he means running ruby code in the Sublime Text console. To do this, all you have to do is have your file (with the code) saved then press CMD + SHIFT + B and you will get something like this:
It didn't work because system's language was Russian.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
This is how I am changing the directory path to the download folder.
Dir.chdir("C:/Users/abcd/Downloads/")
But this specific to a user. Is there is any way to make it more general?
Use home method for Dir
Dir.chdir(Dir.home + '/Downloads')
The "C:/Users/abcd/Downloads/" looks like the user directory for user abcd on windows. So I think this is a windows related question.
The Dir.home on my Windows-PC is U:/, not the user-directory.
But you can make use of ENV:
Dir.chdir(File.join(ENV['USERPROFILE'], 'Downloads'))
Just to be aware of: This changes the directory for the rest of your script. There is also a block-version of Dir.chdir.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm writing a simple console app, but instead of distributing it as a script (somefile.rb), I want it as a binary file, like an executable.
Any idea?
Embedded Ruby (or better mruby) into C or C++
Simple one file with script as text.
Here is example for mruby mruby.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I had experienced Windows command line as well as Linux based. I curious how to build my own instructions for windows.
two possibilities come to my mind: batch files somewhere in the path and doskey
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I use windows 8 and have source codes of a software in English version.
I translated it and want to create a patch file of it. It's my first time doing it..
And.. can I use diff which I believe can be used in Linux?
winmerge can create patches is you are looking for a gui way. they have some hints for doing it scripted as well: http://manual.winmerge.org/Faq.html#d0e10357
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I like to write some scripts for Winamp. How might I do this?
You can also use gen_scripting plugin which uses JSpript or VB which might be of use to you.
And a few words to the wise: Just add the plugin to the winamp plugins directory and remember to register it with regsvr32 from the command prompt. Scripting only works with Winamp running :)