Skip to content

Instantly share code, notes, and snippets.

View stereobooster's full-sized avatar
🇺🇦
stand with Ukraine

stereobooster

🇺🇦
stand with Ukraine
View GitHub Profile
@stereobooster
stereobooster / gist:4170081
Created November 29, 2012 16:15
therubyracer Segmentation fault
D:/tools/ruby192/bin/ruby.exe -S rspec ./spec/c/array_spec.rb ./spec/c/constants_spec.rb ./spec/c/exception_spec.rb ./spec/c/external_spec.rb ./spec/c/function_spec.rb ./spec/c/handles_spec.rb ./spec/c/locker_spec.rb ./spec/c/object_spec.rb ./spec/c/script_spec.rb ./spec/c/string_spec.rb ./spec/c/template_spec.rb ./spec/c/trycatch_spec.rb ./spec/mem/blunt_spec.rb ./spec/redjs_spec.rb ./spec/threading_spec.rb ./spec/v8/context_spec.rb ./spec/v8/conversion_spec.rb ./spec/v8/error_spec.rb ./spec/v8/function_spec.rb ./spec/v8/object_spec.rb --tag ~memory --tag ~threads
Run options: exclude {:memory=>true, :threads=>true}
d:/projects/therubyracer/spec/c/array_spec.rb:8: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
-- control frame ----------
c:0031 p:---- s:0107 b:0107 l:000106 d:000106 CFUNC :Set
c:0030 p:0087 s:0102 b:0102 l:002514 d:000101 BLOCK d:/projects/therubyracer/spec/c/array_spec.rb:8
c:0029 p:---- s:0098 b:0098 l:000097 d:000097 FINISH
c:0028 p:---- s:0096 b:0096 l:000095 d:00
@stereobooster
stereobooster / gist:a032678dc798c017d232
Last active August 29, 2015 14:11
ruby command line
http://www.jstorimer.com/blogs/workingwithcode/7766125-writing-ruby-scripts-that-respect-pipelines
http://unix.stackexchange.com/questions/9957/how-to-check-if-bash-can-print-colors
http://unix.stackexchange.com/questions/23763/checking-how-many-colors-my-terminal-emulator-supports
https://code.google.com/p/rubyroute/source/browse/trunk/rubyroute.rb
http://richonrails.com/articles/ip-geolocation-in-ruby-on-rails
@stereobooster
stereobooster / 0-react-maps.md
Last active August 16, 2023 12:19
React Maps
[Raster tiles][rt] [Vector tiles][vt] GeoJSON virtual-dom offline map quality React component React Native
google maps + + good [4 unsupported][gm-react] [+][gm-native]
leaflet * + [+][ll-vt] + [+/-][ll-offline] depends [+][ll-rect]
d3 * + [+/-][d3-vdom] +/- depends [+][d3-react]
MapboxGL + + depends [+][mb-react] [+][mb-native]
Yandex Maps +
bundle exec ruby bench/memory.rb
Total allocated: 105993 bytes (652 objects)
Total retained: 34771 bytes (94 objects)
allocated memory by gem
-----------------------------------
54772 other
28709 mini_mime/lib
21448 micro_mime-f65a961c47c4
1064 extensions
@stereobooster
stereobooster / Gemfile
Last active May 26, 2023 15:00
Sinatra namespace example
# frozen_string_literal: true
source "https://rubygems.org"
gem "sinatra", "~> 1.4"
gem "thin"
gem "sinatra-router"
gem "sinatra-contrib"
@stereobooster
stereobooster / Readme.md
Last active December 4, 2018 03:28
setTimeout, setImmediate, requestAnimationFrame, PostMessage, MutationObserver, etc