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
| extern mod extra; | |
| use extra::arc::Arc; | |
| fn main() { | |
| let x = ~5; | |
| let y = Arc::new(x); // x is no longer pointer to ~5, and y points to the pointer x was that is not to the value but the | |
| // but the pointer x held. | |
| let z = y.clone(); // same semantics, the clone produces a pointer to the pointer x was. | |
| println!("{}", **(y.get())); // see we have that double reference we have to deref twice. |
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
| { | |
| "filterBy": [ | |
| { "property": "id", "type": "num" }, | |
| { "property": "name", "type": "string"} | |
| ], | |
| "data": [ | |
| { | |
| "id": 1, | |
| "name": "tphilyaw", | |
| "firstName": "tommy", |
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
| var express = require('express'), | |
| request = require('request'), | |
| url = require('url'); | |
| var port = 8080; | |
| var app = express(); | |
| app.use(function(req, res, next) { | |
| var proxyUrl = req.path.match(/^\/api(.*)$/); | |
| if (proxyUrl) { |
NewerOlder