This file contains 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
require 'bigdecimal' | |
n = 5_000 | |
sum = BigDecimal.new('0') | |
dx = BigDecimal.new('1') / n | |
1.upto(n) { |i| sum += dx * (dx * i) ** 2 } | |
puts sum | |
puts sum.to_s | |
puts sum.to_f |
This file contains 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
* root servers | |
- no hassle with finding a good location with clean, cool air and stable electicity | |
- broken hard disk? we exchange it within 1 hour | |
* virtualization | |
- choose what you need, no less and no more | |
- super fast deployment | |
* special linux distribution | |
- compatible to everything | |
- super efficient | |
- rock stable |
This file contains 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
NVIM v0.1.0-81-g1fbb567 (compiled Nov 20 2015 22:56:23) | |
Commit: 1fbb56795d16783f9a97e25e3b71ab3ac2a644dc | |
Build type: Dev | |
Compilation: /usr/local/Library/ENV/4.3/clang -Wconversion -O2 -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/tmp/neovim20151120-26550-uosd0i/build/config -I/tmp/neovim20151120-26550-uosd0i/src -I/tmp/neovim20151120-26550-uosd0i/deps-build/usr/include -I/tmp/neovim20151120-26550-uosd0i/deps-build/usr/include -I/tmp/neovim20151120-26550-uosd0i/deps-build/usr/include/luajit-2.0 -I/tmp/neovim20151120-26550-uosd0i/deps-build/usr/include -I/tmp/neovim20151120-26550-uosd0i/deps-build/usr/include -I/tmp/neovim20151120-26550-uosd0i/deps-build/usr/include -I/tmp/neovim20151120-26550-uosd0i/deps-build/usr/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim20151120-26550-uosd0i/build/src/nvim/auto -I/tmp/neovim20151120-26550-uosd0i/build/include |
This file contains 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
diff --git a/include/zarmour.h b/include/zarmour.h | |
index 12dbd10..8aff6af 100644 | |
--- a/include/zarmour.h | |
+++ b/include/zarmour.h | |
@@ -18,26 +18,24 @@ | |
extern "C" { | |
#endif | |
+// @warning THE FOLLOWING @INTERFACE BLOCK IS AUTO-GENERATED BY ZPROJECT! | |
+// @warning Please edit the model at "api/zarmour.xml" to make changes. |
This file contains 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
#! /usr/bin/env ruby | |
require 'benchmark/ips' | |
require 'ffi' | |
module CZMQ | |
module FFI | |
module LibC | |
extend ::FFI::Library | |
ffi_lib ::FFI::Platform::LIBC |
This file contains 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
$ ./zactor_issue.rb | |
CZMQ::FFI::Zactor | |
new Zactor | |
main thread: #<Thread:0x007fb5208bc3b0 run> | |
zactor thread: #<Thread:0x007fb52087e678 run> | |
nil: processing messages | |
nil: waiting for next message ... | |
#<FFI::Pointer address=0x007fb52059e860>: zactor created. | |
instanciates |
This file contains 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
libcallback_bug.dylib: callback_bug.h callback_bug.c | |
clang -dynamiclib -std=gnu99 callback_bug.c -o $@ |
This file contains 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
libcallback.dylib: callback.h callback.c | |
clang -dynamiclib -std=gnu99 callback.c -o $@ |
This file contains 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
libcallback.dylib: callback.c | |
clang -dynamiclib -std=gnu99 callback.c -o $@ |
This file contains 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
libcallback.dylib: callback.c | |
clang -dynamiclib -std=gnu99 callback.c -o $@ |