btakita / run Goto Github PK
View Code? Open in Web Editor NEWs/run/the-correct-program/ $@
s/run/the-correct-program/ $@
run s/run/the-correct-program/ $@ run dispatches command line arguments to a program, based on the files #!, then based your configuration in your .runrc file(s). I find this useful for running a number of different types of scripts with the same command in my IDE/Text editor. For example, I program in Ruby and Node.js. I want to use the same command to run my scripts, despite having to switch between two languages. All I need to do now is run: run my_spec.rb In my .runrc file, I have a mapping between files with the extension .rb and ruby. Here is my ~/.runrc file. #!/bin/bash file=$1 if [[ $file =~ .rb$ ]]; then exec ruby $@; fi if [[ $file =~ .js$ ]]; then exec node $@; fi run also allows you to configure a separate .runrc file in a directory-specific basis. For example, I'm working on my fork (http://github.com/btakita/jasmine-node) of the jasmine-node project. In order to run specs, I need it to go through the specs.sh script within that project. To accomplish that, I add the following to the top line of each spec: #!/usr/bin/env jasmine-node --forceexit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.