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
| # released under the public domain | |
| # I have sort of gotten this to work last year, but I'm in a hurry now. I think it doesn't completely work with GTK... | |
| require 'gtk3' | |
| #require 'vlc' | |
| require_relative 'vlc' | |
| require 'ffi' | |
| module User32 |
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
| bundle exec rbwasm --log-level debug build --ruby-version 3.3 --target wasm32-unknown-wasi --build-profile full -o ruby.wasm --save_temps | |
| ==> tar -C /tmp/d20240201-102438-7rub7v/usr -xzf /home/andi/workspace/learn/wasiKoans/test/rubies/ruby-3.3-wasm32-unknown-wasi-full-2c45fb4d6600cf1586515950a8000c70.tar.gz --strip-components\=2 | |
| INFO: Packaging gem: js-2.5.0 | |
| INFO: Packaging gem: rainbow-3.1.1 | |
| DEBUG: Packaging gem file: bundle/gems/js-2.5.0/ext/js/extconf.rb | |
| DEBUG: Packaging gem file: bundle/gems/js-2.5.0/ext/witapi/extconf.rb | |
| DEBUG: Packaging gem file: bundle/gems/rainbow-3.1.1/Changelog.md | |
| DEBUG: Packaging gem file: bundle/gems/rainbow-3.1.1/LICENSE | |
| DEBUG: Packaging gem file: bundle/gems/rainbow-3.1.1/README.markdown |
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
| require 'capybara' | |
| require 'capybara/dsl' | |
| require 'selenium-webdriver' | |
| require 'open-uri' | |
| require 'combine_pdf' | |
| require 'net/http' | |
| require 'uri' | |
| Capybara.default_driver = :selenium_chrome_headless # remove headless if want to see chrome |
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
| # config/initializers/render_with_debug.rb | |
| if Rails.env.development? | |
| ActionView::Base.class_eval do | |
| alias_method :original_render, :render | |
| def render(options = {}, locals = {}, &block) | |
| if self.respond_to?(:render_with_debug) | |
| self.render_with_debug(options, locals, &block) | |
| else | |
| original_render(options, locals, &block) |
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
| config.before do | |
| global_variables.each { |v| puts v } | |
| $initial_globals = global_variables.map { |v| | |
| $v = v | |
| [v, eval(v.to_s)] | |
| } - [[:$initial_globals, $initial_globals]] | |
| rescue Exception => e | |
| puts $v | |
| puts "error in before block" | |
| raise e |
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
| # configure wifi first using ncli | |
| require 'spi' | |
| require 'gpio' | |
| require 'net/http' | |
| class Epaper | |
| BUSY = 1 | |
| WS_20_30 = [ | |
| 0x80,0x66,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00, |
OlderNewer