This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # make sure you have python and pip installed on your local machine! | |
| $ pip install blockspring |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # in your command line, install this helper library to your working directory or globally (with -g flag). | |
| # make sure you have node installed on your local machine! | |
| $ npm install blockspring |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # in your command line, pull this helper library to your function's local directory or install globally to your php path. | |
| # make sure you have php installed on your local machine! | |
| $ curl -o ./blockspring.php https://raw.githubusercontent.com/blockspring/blockspring-php/master/blockspring.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run these commands from within R. | |
| # make sure you have R >= 3.1.0 installed on your local machine! | |
| install.packages("devtools") | |
| library("devtools") | |
| install_github("blockspring/blockspring.R") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # type "irb" in your command line to open an interactive ruby shell. | |
| require "blockspring" | |
| result = Blockspring.run("pkpp1233/110c49f4690420f82d47ffc4f82d5d13", { "url" => "http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg", "numcolors" => 3}) | |
| puts result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # type "python" in your command line to open an interactive python shell. | |
| import blockspring | |
| result = blockspring.run("pkpp1233/110c49f4690420f82d47ffc4f82d5d13", { "url": "http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg", "numcolors": 3}) | |
| print result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // type "node" in your command line to open an interactive node shell. | |
| var blockspring = require("blockspring"); | |
| blockspring.run("pkpp1233/110c49f4690420f82d47ffc4f82d5d13", { "url": "http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg", "numcolors": 3}, function(result){ | |
| console.log(result); | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| # type "php -a" in your command line to open an interactive php shell. | |
| require('blockspring.php'); | |
| $result = Blockspring::run("pkpp1233/110c49f4690420f82d47ffc4f82d5d13", array("url" => "http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg", "numcolors" => 3 )); | |
| print_r($result); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # type "R" in your command line to open an interactive R shell. | |
| library("blockspring") | |
| result = blockspringRun("pkpp1233/110c49f4690420f82d47ffc4f82d5d13", list("url" = "http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg", "numcolors" = 3)) | |
| print(result) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create a new R function based on the sample template. | |
| $ blockspring new R "My new R block" | |
| # enter into our new function's directory. | |
| $ cd my-new-r-block |