- Get a single resource:
GET /posts/1
{
"id": 1,
"body": "...",
"author": {
"id": 2,
"name": "Lucy",
"_links": { "self": "/authors/2" }
},| Results: | |
| json_encode: 14.230s | 392 Ko | |
| serialize: 50.383s | 540 Ko | |
| json_decode: 36.503s | |
| unserialize: 40.666s |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <display_options> | |
| <platform name="*"> | |
| <option name="specified-fonts">true</option> | |
| </platform> | |
| </display_options> |
| source 'https://rubygems.org' | |
| gem "json" | |
| gem 'sinatra', "~> 1.3.5" | |
| gem "octokit", "~> 3.0" |
GET /posts/1{
"id": 1,
"body": "...",
"author": {
"id": 2,
"name": "Lucy",
"_links": { "self": "/authors/2" }
},| // Fixes the height of an element to be at least the height of the current | |
| // screen, minus it's current offset (so it fills the screen vertically). | |
| powell.directive('jsScreenHeight', function () { | |
| var $window = angular.element(window); | |
| return { | |
| restrict: 'C', | |
| link: function (scope, element) { | |
| var resize = function () { | |
| // TODO: don't require jquery just for computing the offset |
| FXHEADER:100 | |
| DATA:OFXSGML | |
| VERSION:102 | |
| SECURITY:NONE | |
| ENCODING:USASCII | |
| CHARSET:1252 | |
| COMPRESSION:NONE | |
| OLDFILEUID:NONE | |
| NEWFILEUID:NONE |
| Program received signal SIGPIPE, Broken pipe. | |
| Program received signal SIGSEGV, Segmentation fault. | |
| [Switching to Thread 0x7fffcd7f2700 (LWP 9702)] | |
| 0x0000000000000001 in ?? () | |
| (gdb) bt | |
| #1 0x0000000000418491 in *Signal::handler<Int32>:(Nil | Void) () at /home/github/crystal/src/signal.cr:57 | |
| #2 <signal handler called> | |
| #3 0x00007ffff772135d in write () at ../sysdeps/unix/syscall-template.S:81 |
| diff --git a/src/thread/lib_pthread.cr b/src/thread/lib_pthread.cr | |
| index 5094260..96f2530 100644 | |
| --- a/src/thread/lib_pthread.cr | |
| +++ b/src/thread/lib_pthread.cr | |
| @@ -17,6 +17,7 @@ lib LibPThread | |
| fun create = pthread_create(thread : Thread*, attr : Void*, start : Void* ->, arg : Void*) : Int32 | |
| fun exit = pthread_exit(value : Void*) | |
| + fun yield = pthread_yield() : Int32 | |
| fun join = pthread_join(thread : Thread, value : Void**) : Int32 |
| abandoned | |
| able | |
| absolute | |
| adorable | |
| adventurous | |
| academic | |
| acceptable | |
| acclaimed | |
| accomplished | |
| accurate |
| # Benchmark run with Crystal 0.17.3 (LLVM 3.6) on "Intel Core i7-4712HQ CPU @ 2.30GHz" CPU | |
| Brooklin (block) | |
| haversine: 0.144098 | |
| sqrt: 0.19007 (+31.904%) | |
| spheroid: 0.144098 (+1.59146e-09%) | |
| ellipsoid: 0.188279 (+30.6604%) | |
| Paris -> Marseille | |
| haversine: 660.815 |