<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| - (NSString *)grabData:(NSString *)searchTerm { | |
| // Setup an error to catch stuff in | |
| NSError *error = NULL; | |
| //Create the regular expression to match against | |
| NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"\\s" options:NSRegularExpressionCaseInsensitive error:&error]; | |
| // create the new string by replacing the matching of the regex pattern with the template pattern(whitespace) | |
| NSString *newSearchString = [regex stringByReplacingMatchesInString:searchTerm options:0 range:NSMakeRange(0, [searchTerm length]) withTemplate:@"%20"]; | |
| NSLog(@"New string: %@",newSearchString); | |
| return newSearchString; | |
| } |
| // | |
| // NSObject+setValuesForKeysWithJSONDictionary.h | |
| // SafeSetDemo | |
| // | |
| // Created by Tom Harrington on 12/29/11. | |
| // Copyright (c) 2011 Atomic Bird, LLC. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
| app.use(express.methodOverride()); | |
| // ## CORS middleware | |
| // | |
| // see: http://stackoverflow.com/questions/7067966/how-to-allow-cors-in-express-nodejs | |
| var allowCrossDomain = function(req, res, next) { | |
| res.header('Access-Control-Allow-Origin', '*'); | |
| res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); | |
| res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization'); | |
| <script type="text/javascript" | |
| src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> | |
| </script> | |
| <script type="text/javascript">MathJax.Hub.Config({tex2jax: {processEscapes: true, | |
| processEnvironments: false, inlineMath: [ ['$','$'] ], | |
| displayMath: [ ['$$','$$'] ] }, | |
| asciimath2jax: {delimiters: [ ['$','$'] ] }, | |
| "HTML-CSS": {minScaleAdjust: 125 } }); | |
| </script> |
| This post examines the features of [R Markdown](http://www.rstudio.org/docs/authoring/using_markdown) | |
| using [knitr](http://yihui.name/knitr/) in Rstudio 0.96. | |
| This combination of tools provides an exciting improvement in usability for | |
| [reproducible analysis](http://stats.stackexchange.com/a/15006/183). | |
| Specifically, this post | |
| (1) discusses getting started with R Markdown and `knitr` in Rstudio 0.96; | |
| (2) provides a basic example of producing console output and plots using R Markdown; | |
| (3) highlights several code chunk options such as caching and controlling how input and output is displayed; | |
| (4) demonstrates use of standard Markdown notation as well as the extended features of formulas and tables; and | |
| (5) discusses the implications of R Markdown. |
| http { | |
| proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m; | |
| proxy_temp_path /var/tmp; | |
| include mime.types; | |
| default_type application/octet-stream; | |
| sendfile on; | |
| keepalive_timeout 65; | |
| gzip on; | |
| gzip_comp_level 6; |
| #! /path/to/node | |
| var haibu = require('/path/to/haibu'); | |
| var client = new haibu.drone.Client(); | |
| process.stdin.resume(); | |
| process.stdin.on('data', function(data){ | |
| var package = JSON.parse(data.toString()); |
| package main | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo" | |
| "labix.org/v2/mgo/bson" | |
| "time" | |
| ) | |
| type Person struct { |
| .globl main | |
| .data | |
| msgprompt: .word msgprompt_data | |
| msgres1: .word msgres1_data | |
| msgres2: .word msgres2_data | |
| msgprompt_data: .asciiz "Positive integer: " | |
| msgres1_data: .asciiz "The value of factorial(" | |
| msgres2_data: .asciiz ") is " |