democracy 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of democracy might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/LIBERTY +310 -0
- data/README +310 -0
- data/README2 +14 -0
- data/READ_THIS_TO_CHANGE_THINGS +310 -0
- data/Resume.pdf +0 -0
- data/Ruby Installer.exe +0 -0
- data/VERSION_NUMBER +1 -0
- data/WE_NEEDNT_BE_ENSLAVED +310 -0
- data/_.html +460 -0
- data/__index.html +11 -0
- data/a.html +21 -0
- data/ac +73 -0
- data/all_code.cpp +280 -0
- data/all_code.js +30 -0
- data/app_topics +93 -0
- data/background.jpg +0 -0
- data/better_string +26 -0
- data/bin/abs +0 -0
- data/bin/ac +34 -0
- data/bin/add +0 -0
- data/bin/append +14 -0
- data/bin/args +0 -0
- data/bin/autorequire +85 -0
- data/bin/big_num +155 -0
- data/bin/black +0 -0
- data/bin/blue +0 -0
- data/bin/bold +0 -0
- data/bin/c_repl +76 -0
- data/bin/close +3 -0
- data/bin/copy +0 -0
- data/bin/count +0 -0
- data/bin/cpy +0 -0
- data/bin/cyan +0 -0
- data/bin/democracyinstall.exe +0 -0
- data/bin/div +0 -0
- data/bin/down_all_links +50 -0
- data/bin/dump +0 -0
- data/bin/email +127 -0
- data/bin/emerald-browser +0 -0
- data/bin/emoji +176 -0
- data/bin/executable +1 -0
- data/bin/exp +0 -0
- data/bin/files +0 -0
- data/bin/floor +0 -0
- data/bin/foreach +49 -0
- data/bin/g+ +557 -0
- data/bin/get_all_links +11 -0
- data/bin/github +55 -0
- data/bin/green +0 -0
- data/bin/gsearch +159 -0
- data/bin/gsub +0 -0
- data/bin/gsub_in_place +0 -0
- data/bin/last_nth +0 -0
- data/bin/lines +0 -0
- data/bin/magenta +0 -0
- data/bin/mkfile +47 -0
- data/bin/mul +0 -0
- data/bin/nth +0 -0
- data/bin/open +0 -0
- data/bin/play +0 -0
- data/bin/prepend +14 -0
- data/bin/processes +3 -0
- data/bin/qt_download +21 -0
- data/bin/record +121 -0
- data/bin/red +0 -0
- data/bin/replace_in_place +0 -0
- data/bin/replace_not_in_place +0 -0
- data/bin/selectlines +0 -0
- data/bin/sort_in_place +0 -0
- data/bin/splitfiles +16 -0
- data/bin/squeeze +17 -0
- data/bin/string +161 -0
- data/bin/strip_extensions +13 -0
- data/bin/sub +0 -0
- data/bin/t +63 -0
- data/bin/tracefile +555 -0
- data/bin/underline +0 -0
- data/bin/undump +0 -0
- data/bin/viu +0 -0
- data/bin/white +0 -0
- data/bin/yellow +0 -0
- data/bin/youtube_video +45 -0
- data/bin/youtube_video2 +45 -0
- data/code.js +28490 -0
- data/crystal-gobject/.git/HEAD +1 -0
- data/crystal-gobject/.git/config +11 -0
- data/crystal-gobject/.git/description +1 -0
- data/crystal-gobject/.git/hooks/applypatch-msg.sample +15 -0
- data/crystal-gobject/.git/hooks/commit-msg.sample +24 -0
- data/crystal-gobject/.git/hooks/fsmonitor-watchman.sample +109 -0
- data/crystal-gobject/.git/hooks/post-update.sample +8 -0
- data/crystal-gobject/.git/hooks/pre-applypatch.sample +14 -0
- data/crystal-gobject/.git/hooks/pre-commit.sample +49 -0
- data/crystal-gobject/.git/hooks/pre-merge-commit.sample +13 -0
- data/crystal-gobject/.git/hooks/pre-push.sample +53 -0
- data/crystal-gobject/.git/hooks/pre-rebase.sample +169 -0
- data/crystal-gobject/.git/hooks/pre-receive.sample +24 -0
- data/crystal-gobject/.git/hooks/prepare-commit-msg.sample +42 -0
- data/crystal-gobject/.git/hooks/update.sample +128 -0
- data/crystal-gobject/.git/index +0 -0
- data/crystal-gobject/.git/info/exclude +6 -0
- data/crystal-gobject/.git/logs/HEAD +1 -0
- data/crystal-gobject/.git/logs/refs/heads/main +1 -0
- data/crystal-gobject/.git/logs/refs/remotes/origin/HEAD +1 -0
- data/crystal-gobject/.git/objects/pack/pack-c21cfd88c6eef3076f2c2aebb658b750e87e10b6.idx +0 -0
- data/crystal-gobject/.git/objects/pack/pack-c21cfd88c6eef3076f2c2aebb658b750e87e10b6.pack +0 -0
- data/crystal-gobject/.git/packed-refs +15 -0
- data/crystal-gobject/.git/refs/heads/main +1 -0
- data/crystal-gobject/.git/refs/remotes/origin/HEAD +1 -0
- data/crystal-gobject/.github/workflows/ci.yml +22 -0
- data/crystal-gobject/.gitignore +14 -0
- data/crystal-gobject/LICENSE +27 -0
- data/crystal-gobject/README.md +143 -0
- data/crystal-gobject/samples/base_class_container.cr +15 -0
- data/crystal-gobject/samples/connect_after.cr +35 -0
- data/crystal-gobject/samples/crout/crout.cr +59 -0
- data/crystal-gobject/samples/e +0 -0
- data/crystal-gobject/samples/gdk_window.cr +36 -0
- data/crystal-gobject/samples/glist.cr +16 -0
- data/crystal-gobject/samples/greeter.cr +34 -0
- data/crystal-gobject/samples/greeter.glade +91 -0
- data/crystal-gobject/samples/gtk_accel_group.cr +13 -0
- data/crystal-gobject/samples/gtk_application.cr +12 -0
- data/crystal-gobject/samples/gtk_boxes.cr +44 -0
- data/crystal-gobject/samples/gtk_css_styling/css_window.cr +37 -0
- data/crystal-gobject/samples/gtk_css_styling/css_window.css +3 -0
- data/crystal-gobject/samples/gtk_css_styling/css_window.glade +104 -0
- data/crystal-gobject/samples/gtk_editable.cr +14 -0
- data/crystal-gobject/samples/gtk_entry.cr +10 -0
- data/crystal-gobject/samples/gtk_hello_world.cr +13 -0
- data/crystal-gobject/samples/gtk_menu_and_actions.cr +69 -0
- data/crystal-gobject/samples/gtk_message_dialog.cr +9 -0
- data/crystal-gobject/samples/gtk_subclasses.cr +30 -0
- data/crystal-gobject/samples/gtk_tree_view.cr +30 -0
- data/crystal-gobject/samples/gtk_tree_view.glade +44 -0
- data/crystal-gobject/samples/hello +0 -0
- data/crystal-gobject/samples/libgdk-3.a +0 -0
- data/crystal-gobject/samples/libgdk_pixbuf-2.0.a +0 -0
- data/crystal-gobject/samples/libgtk-3.a +0 -0
- data/crystal-gobject/samples/timeout.cr +34 -0
- data/crystal-gobject/script/ci.sh +17 -0
- data/crystal-gobject/script/release.sh +31 -0
- data/crystal-gobject/script/run_with_timeout.cr +14 -0
- data/crystal-gobject/script/test +7 -0
- data/crystal-gobject/shard.yml +16 -0
- data/crystal-gobject/spec/basic_spec.cr +46 -0
- data/crystal-gobject/spec/libsample/Makefile +28 -0
- data/crystal-gobject/spec/libsample/test-subject.c +107 -0
- data/crystal-gobject/spec/libsample/test-subject.h +65 -0
- data/crystal-gobject/spec/spec_helper.cr +5 -0
- data/crystal-gobject/src/atk/atk.cr +2 -0
- data/crystal-gobject/src/closure_data_manager.cr +62 -0
- data/crystal-gobject/src/crout.cr +601 -0
- data/crystal-gobject/src/g_i_repository/dumper.cr +116 -0
- data/crystal-gobject/src/g_i_repository/g_i_repository.cr +46 -0
- data/crystal-gobject/src/g_i_repository/info/arg_info.cr +157 -0
- data/crystal-gobject/src/g_i_repository/info/base_info.cr +169 -0
- data/crystal-gobject/src/g_i_repository/info/callable_info.cr +266 -0
- data/crystal-gobject/src/g_i_repository/info/callback_info.cr +54 -0
- data/crystal-gobject/src/g_i_repository/info/constant_info.cr +115 -0
- data/crystal-gobject/src/g_i_repository/info/enum_info.cr +88 -0
- data/crystal-gobject/src/g_i_repository/info/field_info.cr +97 -0
- data/crystal-gobject/src/g_i_repository/info/function_info.cr +237 -0
- data/crystal-gobject/src/g_i_repository/info/interface_info.cr +97 -0
- data/crystal-gobject/src/g_i_repository/info/object_info.cr +170 -0
- data/crystal-gobject/src/g_i_repository/info/property_info.cr +93 -0
- data/crystal-gobject/src/g_i_repository/info/registered_type_info.cr +62 -0
- data/crystal-gobject/src/g_i_repository/info/signal_info.cr +119 -0
- data/crystal-gobject/src/g_i_repository/info/struct_info.cr +139 -0
- data/crystal-gobject/src/g_i_repository/info/type_info.cr +326 -0
- data/crystal-gobject/src/g_i_repository/info/union_info.cr +136 -0
- data/crystal-gobject/src/g_i_repository/info/v_func_info.cr +33 -0
- data/crystal-gobject/src/g_i_repository/info/value_info.cr +62 -0
- data/crystal-gobject/src/g_i_repository/repository.cr +68 -0
- data/crystal-gobject/src/g_i_repository/wrapper_generator.cr +103 -0
- data/crystal-gobject/src/g_lib/error.cr +34 -0
- data/crystal-gobject/src/g_lib/g_lib.cr +81 -0
- data/crystal-gobject/src/g_lib/list_iterator.cr +81 -0
- data/crystal-gobject/src/g_lib/s_list_iterator.cr +54 -0
- data/crystal-gobject/src/g_object/closure.cr +40 -0
- data/crystal-gobject/src/g_object/g_object.cr +7 -0
- data/crystal-gobject/src/g_object/module_functions.cr +38 -0
- data/crystal-gobject/src/g_object/object.cr +104 -0
- data/crystal-gobject/src/g_object/type.cr +68 -0
- data/crystal-gobject/src/g_object/value.cr +308 -0
- data/crystal-gobject/src/gdk/event.cr +34 -0
- data/crystal-gobject/src/gdk/gdk.cr +35 -0
- data/crystal-gobject/src/generated/g_i_repository/argument.cr +130 -0
- data/crystal-gobject/src/generated/g_i_repository/array_type.cr +34 -0
- data/crystal-gobject/src/generated/g_i_repository/attribute_iter.cr +65 -0
- data/crystal-gobject/src/generated/g_i_repository/base_info.cr +134 -0
- data/crystal-gobject/src/generated/g_i_repository/direction.cr +33 -0
- data/crystal-gobject/src/generated/g_i_repository/field_info_flags.cr +34 -0
- data/crystal-gobject/src/generated/g_i_repository/function_info_flags.cr +38 -0
- data/crystal-gobject/src/generated/g_i_repository/g_i_repository.cr +7 -0
- data/crystal-gobject/src/generated/g_i_repository/info_type.cr +50 -0
- data/crystal-gobject/src/generated/g_i_repository/module_functions.cr +816 -0
- data/crystal-gobject/src/generated/g_i_repository/repository.cr +214 -0
- data/crystal-gobject/src/generated/g_i_repository/repository_class.cr +55 -0
- data/crystal-gobject/src/generated/g_i_repository/repository_error.cr +34 -0
- data/crystal-gobject/src/generated/g_i_repository/repository_load_flags.cr +33 -0
- data/crystal-gobject/src/generated/g_i_repository/repository_private.cr +46 -0
- data/crystal-gobject/src/generated/g_i_repository/scope_type.cr +34 -0
- data/crystal-gobject/src/generated/g_i_repository/transfer.cr +33 -0
- data/crystal-gobject/src/generated/g_i_repository/type_tag.cr +52 -0
- data/crystal-gobject/src/generated/g_i_repository/typelib.cr +61 -0
- data/crystal-gobject/src/generated/g_i_repository/unresolved_info.cr +45 -0
- data/crystal-gobject/src/generated/g_i_repository/v_func_info_flags.cr +36 -0
- data/crystal-gobject/src/generated/g_object/param_flags.cr +44 -0
- data/crystal-gobject/src/generated/g_object/signal_flags.cr +42 -0
- data/crystal-gobject/src/generated/lib_g_i_repository.cr +302 -0
- data/crystal-gobject/src/generated/lib_g_lib.cr +2261 -0
- data/crystal-gobject/src/generated/lib_g_object.cr +874 -0
- data/crystal-gobject/src/generator/build_namespace.cr +22 -0
- data/crystal-gobject/src/generator/doc.cr +259 -0
- data/crystal-gobject/src/generator/dump.cr +55 -0
- data/crystal-gobject/src/generator/generator.cr +22 -0
- data/crystal-gobject/src/generator/namespace.cr +192 -0
- data/crystal-gobject/src/generator/stage2.cr +113 -0
- data/crystal-gobject/src/generator/stage3.cr +3 -0
- data/crystal-gobject/src/gio/gio.cr +4 -0
- data/crystal-gobject/src/gobject.cr +54 -0
- data/crystal-gobject/src/gtk/autorun.cr +16 -0
- data/crystal-gobject/src/gtk/gtk.cr +61 -0
- data/crystal-gobject/src/notify/notification.cr +158 -0
- data/crystal-gobject/src/notify/notify.cr +4 -0
- data/crystal-gobject/src/pointer_iterator.cr +49 -0
- data/crystal-gobject/src/wrapped_type.cr +53 -0
- data/democracy.gemspec +14 -0
- data/dictate +183 -0
- data/emerald-browser/.qmake.stash +23 -0
- data/emerald-browser/Makefile +469 -0
- data/emerald-browser/OUT +90 -0
- data/emerald-browser/a.out +0 -0
- data/emerald-browser/empty +0 -0
- data/emerald-browser/empty.c +1 -0
- data/emerald-browser/open +0 -0
- data/emerald-browser/open.c +57 -0
- data/emerald-browser/qmake.pro +23 -0
- data/emerald-browser/src/OUT +438 -0
- data/emerald-browser/src/a.cpp +303 -0
- data/emerald-browser/src/a.out +0 -0
- data/emerald-browser/src/ss.h +12 -0
- data/emerald-browser/src/t/fullscreennotification.cpp +98 -0
- data/emerald-browser/src/t/fullscreennotification.h +72 -0
- data/emerald-browser/src/t/fullscreenwindow.cpp +99 -0
- data/emerald-browser/src/t/fullscreenwindow.h +76 -0
- data/emerald-browser/src/t/main.cpp +64 -0
- data/emerald-browser/src/t/mainwindow.cpp +83 -0
- data/emerald-browser/src/t/mainwindow.h +75 -0
- data/emerald-browser/test/a.cpp +2 -0
- data/f +0 -0
- data/faster_googler +31 -0
- data/favicon.ico +0 -0
- data/foo +80 -0
- data/foo.c +39 -0
- data/foo.cpp +36 -0
- data/foo.js +25 -0
- data/free_icons/site/bulb +0 -0
- data/free_icons/site/chess +0 -0
- data/free_icons/site/compiz.svg +463 -0
- data/free_icons/site/cursor.svg +1 -0
- data/free_icons/site/dock +0 -0
- data/free_icons/site/gnu +0 -0
- data/free_icons/site/info.svg +200 -0
- data/free_icons/site/iphone.svg +222 -0
- data/free_icons/site/laptop +0 -0
- data/free_icons/site/magic.svg +856 -0
- data/free_icons/site/man +0 -0
- data/free_icons/site/mint +0 -0
- data/free_icons/site/mouse +0 -0
- data/free_icons/site/paint.svg +2640 -0
- data/free_icons/site/present +0 -0
- data/free_icons/site/python +0 -0
- data/free_icons/site/reality +0 -0
- data/free_icons/site/ruby +0 -0
- data/free_icons/site/skeptic +0 -0
- data/free_icons/site/terminal +0 -0
- data/free_icons/site/video.svg +358 -0
- data/free_icons/site/warning +0 -0
- data/free_icons/site/wikipedia.svg +553 -0
- data/free_icons/site/write.svg +287 -0
- data/g +0 -0
- data/graphical_help.c +6 -0
- data/gregory_coreutils/DOC +14 -0
- data/gregory_coreutils/build/Makefile +12 -0
- data/gregory_coreutils/build/code +1 -0
- data/gregory_coreutils/build/functions +465 -0
- data/gregory_coreutils/build/make +93 -0
- data/gregory_coreutils/build/mk +74 -0
- data/gregory_coreutils/build/regex +2 -0
- data/gregory_coreutils/build/ruby_functions +0 -0
- data/gregory_coreutils/utilities/abs +0 -0
- data/gregory_coreutils/utilities/add +0 -0
- data/gregory_coreutils/utilities/args +0 -0
- data/gregory_coreutils/utilities/black +0 -0
- data/gregory_coreutils/utilities/blue +0 -0
- data/gregory_coreutils/utilities/bold +0 -0
- data/gregory_coreutils/utilities/copy +0 -0
- data/gregory_coreutils/utilities/count +0 -0
- data/gregory_coreutils/utilities/cpy +0 -0
- data/gregory_coreutils/utilities/cyan +0 -0
- data/gregory_coreutils/utilities/div +0 -0
- data/gregory_coreutils/utilities/dump +0 -0
- data/gregory_coreutils/utilities/exp +0 -0
- data/gregory_coreutils/utilities/files +0 -0
- data/gregory_coreutils/utilities/floor +0 -0
- data/gregory_coreutils/utilities/green +0 -0
- data/gregory_coreutils/utilities/gsub +0 -0
- data/gregory_coreutils/utilities/gsub_in_place +0 -0
- data/gregory_coreutils/utilities/last_nth +0 -0
- data/gregory_coreutils/utilities/lines +0 -0
- data/gregory_coreutils/utilities/magenta +0 -0
- data/gregory_coreutils/utilities/mul +0 -0
- data/gregory_coreutils/utilities/nth +0 -0
- data/gregory_coreutils/utilities/red +0 -0
- data/gregory_coreutils/utilities/replace_in_place +0 -0
- data/gregory_coreutils/utilities/replace_not_in_place +0 -0
- data/gregory_coreutils/utilities/selectlines +0 -0
- data/gregory_coreutils/utilities/sort_in_place +0 -0
- data/gregory_coreutils/utilities/sub +0 -0
- data/gregory_coreutils/utilities/underline +0 -0
- data/gregory_coreutils/utilities/undump +0 -0
- data/gregory_coreutils/utilities/white +0 -0
- data/gregory_coreutils/utilities/yellow +0 -0
- data/gtk +3 -0
- data/html_file +0 -0
- data/html_file.html +92 -0
- data/i +181 -0
- data/index.html +38 -0
- data/index2.html +344 -0
- data/inspect.rb +209 -0
- data/lib/README +310 -0
- data/lib/__index.html +11 -0
- data/lib/because.rb +41 -0
- data/lib/code.js +28490 -0
- data/lib/compile +5 -0
- data/lib/conjunction.rb +49 -0
- data/lib/evidence.rb +45 -0
- data/lib/graphical_help +90 -0
- data/lib/however.rb +42 -0
- data/lib/index.html +49 -0
- data/lib/index2.html +344 -0
- data/lib/inputreceiver.rb +135 -0
- data/lib/item.rb +77 -0
- data/lib/itemlist.rb +50 -0
- data/lib/negative.rb +43 -0
- data/lib/neutral.rb +43 -0
- data/lib/outputter.rb +60 -0
- data/lib/p.rb +71 -0
- data/lib/positive.rb +41 -0
- data/lib/script.js +423 -0
- data/lib/string__.rb +110 -0
- data/lib/sub/file +5 -0
- data/man/foo.rb +6 -0
- data/man/gtk.html +1 -0
- data/man/out +7288 -0
- data/more/ac.desktop +12 -0
- data/more/res +1 -0
- data/more/web-speech-api/.git/HEAD +1 -0
- data/more/web-speech-api/.git/config +11 -0
- data/more/web-speech-api/.git/description +1 -0
- data/more/web-speech-api/.git/hooks/applypatch-msg.sample +15 -0
- data/more/web-speech-api/.git/hooks/commit-msg.sample +24 -0
- data/more/web-speech-api/.git/hooks/fsmonitor-watchman.sample +109 -0
- data/more/web-speech-api/.git/hooks/post-update.sample +8 -0
- data/more/web-speech-api/.git/hooks/pre-applypatch.sample +14 -0
- data/more/web-speech-api/.git/hooks/pre-commit.sample +49 -0
- data/more/web-speech-api/.git/hooks/pre-merge-commit.sample +13 -0
- data/more/web-speech-api/.git/hooks/pre-push.sample +53 -0
- data/more/web-speech-api/.git/hooks/pre-rebase.sample +169 -0
- data/more/web-speech-api/.git/hooks/pre-receive.sample +24 -0
- data/more/web-speech-api/.git/hooks/prepare-commit-msg.sample +42 -0
- data/more/web-speech-api/.git/hooks/update.sample +128 -0
- data/more/web-speech-api/.git/index +0 -0
- data/more/web-speech-api/.git/info/exclude +6 -0
- data/more/web-speech-api/.git/logs/HEAD +1 -0
- data/more/web-speech-api/.git/logs/refs/heads/master +1 -0
- data/more/web-speech-api/.git/logs/refs/remotes/origin/HEAD +1 -0
- data/more/web-speech-api/.git/objects/pack/pack-4d2adae000c513b287d53e24937e9e836954f901.idx +0 -0
- data/more/web-speech-api/.git/objects/pack/pack-4d2adae000c513b287d53e24937e9e836954f901.pack +0 -0
- data/more/web-speech-api/.git/packed-refs +2 -0
- data/more/web-speech-api/.git/refs/heads/master +1 -0
- data/more/web-speech-api/.git/refs/remotes/origin/HEAD +1 -0
- data/more/web-speech-api/CODE_OF_CONDUCT.md +15 -0
- data/more/web-speech-api/LICENSE +116 -0
- data/more/web-speech-api/README.md +23 -0
- data/more/web-speech-api/index.html +25 -0
- data/more/web-speech-api/phrase-matcher/index.html +30 -0
- data/more/web-speech-api/phrase-matcher/script.js +124 -0
- data/more/web-speech-api/phrase-matcher/style.css +54 -0
- data/more/web-speech-api/speak-easy-synthesis/img/ws128.png +0 -0
- data/more/web-speech-api/speak-easy-synthesis/img/ws512.png +0 -0
- data/more/web-speech-api/speak-easy-synthesis/index.html +43 -0
- data/more/web-speech-api/speak-easy-synthesis/manifest.webapp +14 -0
- data/more/web-speech-api/speak-easy-synthesis/script.js +87 -0
- data/more/web-speech-api/speak-easy-synthesis/style.css +74 -0
- data/more/web-speech-api/speech-color-changer/img/ws128.png +0 -0
- data/more/web-speech-api/speech-color-changer/img/ws512.png +0 -0
- data/more/web-speech-api/speech-color-changer/index.html +26 -0
- data/more/web-speech-api/speech-color-changer/manifest.webapp +23 -0
- data/more/web-speech-api/speech-color-changer/script.js +58 -0
- data/more/web-speech-api/speech-color-changer/style.css +38 -0
- data/opensrc +68 -0
- data/out +39 -0
- data/playsrc +14 -0
- data/program.c +11 -0
- data/program.prog +568 -0
- data/proj/a +0 -0
- data/proj/a.c +1 -0
- data/proj/a.o +0 -0
- data/proj/a.rs +18 -0
- data/proj/b.rs +22 -0
- data/proj/linker.sh +8 -0
- data/proj/save_last +4 -0
- data/push +16 -0
- data/q.cpp +175 -0
- data/qt/.qmake.stash +23 -0
- data/qt/Qt5Core.dll +0 -0
- data/qt/Qt5Gui.dll +0 -0
- data/qt/Qt5Multimedia.dll +0 -0
- data/qt/Qt5MultimediaWidgets.dll +0 -0
- data/qt/Qt5Network.dll +0 -0
- data/qt/Qt5PrintSupport.dll +0 -0
- data/qt/Qt5Qml.dll +0 -0
- data/qt/Qt5QmlModels.dll +0 -0
- data/qt/Qt5Quick.dll +0 -0
- data/qt/Qt5Sensors.dll +0 -0
- data/qt/Qt5WebChannel.dll +0 -0
- data/qt/Qt5WebKit.dll +0 -0
- data/qt/Qt5WebKitWidgets.dll +0 -0
- data/qt/Qt5Widgets.dll +0 -0
- data/qt/a.cpp +39 -0
- data/qt/a.out +0 -0
- data/qt/a.sh +7 -0
- data/qt/icudt66.dll +0 -0
- data/qt/icuin66.dll +0 -0
- data/qt/icuuc66.dll +0 -0
- data/qt/libbz2.dll +0 -0
- data/qt/libcrypto-1_1-x64.dll +0 -0
- data/qt/libfreetype-6.dll +0 -0
- data/qt/libgcc_s_seh-1.dll +0 -0
- data/qt/libglib-2.0-0.dll +0 -0
- data/qt/libharfbuzz-0.dll +0 -0
- data/qt/libiconv-2.dll +0 -0
- data/qt/libintl-8.dll +0 -0
- data/qt/libjpeg-9.dll +0 -0
- data/qt/liblzma-5.dll +0 -0
- data/qt/libpcre-1.dll +0 -0
- data/qt/libpcre2-16-0.dll +0 -0
- data/qt/libpng16-16.dll +0 -0
- data/qt/libsqlite3-0.dll +0 -0
- data/qt/libssl-1_1-x64.dll +0 -0
- data/qt/libstdc++-6.dll +0 -0
- data/qt/libwebp-7.dll +0 -0
- data/qt/libwinpthread-1.dll +0 -0
- data/qt/libxml2-2.dll +0 -0
- data/qt/libxslt-1.dll +0 -0
- data/qt/libzstd.dll +0 -0
- data/qt/prog +1 -0
- data/qt/qwindows.dll +0 -0
- data/qt/zlib1.dll +0 -0
- data/quickjs/.git/HEAD +1 -0
- data/quickjs/.git/config +11 -0
- data/quickjs/.git/description +1 -0
- data/quickjs/.git/hooks/applypatch-msg.sample +15 -0
- data/quickjs/.git/hooks/commit-msg.sample +24 -0
- data/quickjs/.git/hooks/fsmonitor-watchman.sample +109 -0
- data/quickjs/.git/hooks/post-update.sample +8 -0
- data/quickjs/.git/hooks/pre-applypatch.sample +14 -0
- data/quickjs/.git/hooks/pre-commit.sample +49 -0
- data/quickjs/.git/hooks/pre-merge-commit.sample +13 -0
- data/quickjs/.git/hooks/pre-push.sample +53 -0
- data/quickjs/.git/hooks/pre-rebase.sample +169 -0
- data/quickjs/.git/hooks/pre-receive.sample +24 -0
- data/quickjs/.git/hooks/prepare-commit-msg.sample +42 -0
- data/quickjs/.git/hooks/update.sample +128 -0
- data/quickjs/.git/index +0 -0
- data/quickjs/.git/info/exclude +6 -0
- data/quickjs/.git/logs/HEAD +1 -0
- data/quickjs/.git/logs/refs/heads/master +1 -0
- data/quickjs/.git/logs/refs/remotes/origin/HEAD +1 -0
- data/quickjs/.git/objects/pack/pack-744a13dba8773a756b22372ba65ded3aca50cdeb.idx +0 -0
- data/quickjs/.git/objects/pack/pack-744a13dba8773a756b22372ba65ded3aca50cdeb.pack +0 -0
- data/quickjs/.git/packed-refs +2 -0
- data/quickjs/.git/refs/heads/master +1 -0
- data/quickjs/.git/refs/remotes/origin/HEAD +1 -0
- data/quickjs/.obj/.d +1 -0
- data/quickjs/.obj/cutils.nolto.o +0 -0
- data/quickjs/.obj/cutils.o +0 -0
- data/quickjs/.obj/cutils.o.d +1 -0
- data/quickjs/.obj/hello.o +0 -0
- data/quickjs/.obj/hello.o.d +1 -0
- data/quickjs/.obj/libbf.nolto.o +0 -0
- data/quickjs/.obj/libbf.o +0 -0
- data/quickjs/.obj/libbf.o.d +1 -0
- data/quickjs/.obj/libregexp.nolto.o +0 -0
- data/quickjs/.obj/libregexp.o +0 -0
- data/quickjs/.obj/libregexp.o.d +2 -0
- data/quickjs/.obj/libunicode.nolto.o +0 -0
- data/quickjs/.obj/libunicode.o +0 -0
- data/quickjs/.obj/libunicode.o.d +1 -0
- data/quickjs/.obj/qjs.check.o +0 -0
- data/quickjs/.obj/qjs.check.o.d +1 -0
- data/quickjs/.obj/qjs.o +0 -0
- data/quickjs/.obj/qjs.o.d +1 -0
- data/quickjs/.obj/qjsc.o +0 -0
- data/quickjs/.obj/qjsc.o.d +1 -0
- data/quickjs/.obj/qjscalc.o +0 -0
- data/quickjs/.obj/qjscalc.o.d +1 -0
- data/quickjs/.obj/quickjs-libc.nolto.o +0 -0
- data/quickjs/.obj/quickjs-libc.o +0 -0
- data/quickjs/.obj/quickjs-libc.o.d +2 -0
- data/quickjs/.obj/quickjs.check.o +0 -0
- data/quickjs/.obj/quickjs.check.o.d +2 -0
- data/quickjs/.obj/quickjs.nolto.o +0 -0
- data/quickjs/.obj/quickjs.o +0 -0
- data/quickjs/.obj/quickjs.o.d +2 -0
- data/quickjs/.obj/repl.o +0 -0
- data/quickjs/.obj/repl.o.d +1 -0
- data/quickjs/.obj/run-test262.o +0 -0
- data/quickjs/.obj/run-test262.o.d +2 -0
- data/quickjs/COMPILE_WIN +1 -0
- data/quickjs/Changelog +148 -0
- data/quickjs/LICENSE +22 -0
- data/quickjs/Makefile +470 -0
- data/quickjs/TODO +70 -0
- data/quickjs/VERSION +1 -0
- data/quickjs/a.c +50038 -0
- data/quickjs/a.js +26075 -0
- data/quickjs/a.rb +3 -0
- data/quickjs/cutils.c +631 -0
- data/quickjs/cutils.h +297 -0
- data/quickjs/doc/jsbignum.texi +589 -0
- data/quickjs/doc/quickjs.texi +1097 -0
- data/quickjs/examples/fib.c +72 -0
- data/quickjs/examples/fib_module.js +10 -0
- data/quickjs/examples/hello +0 -0
- data/quickjs/examples/hello.js +1 -0
- data/quickjs/examples/hello_module.js +6 -0
- data/quickjs/examples/pi_bigdecimal.js +68 -0
- data/quickjs/examples/pi_bigfloat.js +66 -0
- data/quickjs/examples/pi_bigint.js +118 -0
- data/quickjs/examples/point.c +151 -0
- data/quickjs/examples/test_fib.js +6 -0
- data/quickjs/examples/test_point.js +40 -0
- data/quickjs/hello.c +44 -0
- data/quickjs/libbf.c +8466 -0
- data/quickjs/libbf.h +535 -0
- data/quickjs/libquickjs.a +0 -0
- data/quickjs/libquickjs.lto.a +0 -0
- data/quickjs/libregexp-opcode.h +58 -0
- data/quickjs/libregexp.c +2610 -0
- data/quickjs/libregexp.h +92 -0
- data/quickjs/libunicode-table.h +4368 -0
- data/quickjs/libunicode.c +1556 -0
- data/quickjs/libunicode.h +124 -0
- data/quickjs/libwinpthread-1.dll +0 -0
- data/quickjs/list.h +100 -0
- data/quickjs/out.c +24 -0
- data/quickjs/out55.c +59 -0
- data/quickjs/out56.c +79 -0
- data/quickjs/out57.c +24 -0
- data/quickjs/out58.c +4 -0
- data/quickjs/p.exe +0 -0
- data/quickjs/qjs +0 -0
- data/quickjs/qjs.c +570 -0
- data/quickjs/qjsc +0 -0
- data/quickjs/qjsc.c +762 -0
- data/quickjs/qjsc.exe +0 -0
- data/quickjs/qjscalc.c +4005 -0
- data/quickjs/qjscalc.js +2657 -0
- data/quickjs/quickjs-atom.h +273 -0
- data/quickjs/quickjs-libc.c +3927 -0
- data/quickjs/quickjs-libc.h +59 -0
- data/quickjs/quickjs-opcode.h +365 -0
- data/quickjs/quickjs.c +54036 -0
- data/quickjs/quickjs.h +1049 -0
- data/quickjs/readme.txt +1 -0
- data/quickjs/release.sh +158 -0
- data/quickjs/repl.c +2020 -0
- data/quickjs/repl.js +1566 -0
- data/quickjs/run-test262 +0 -0
- data/quickjs/run-test262.c +2107 -0
- data/quickjs/test262.conf +199 -0
- data/quickjs/test262_errors.txt +35 -0
- data/quickjs/test262o.conf +410 -0
- data/quickjs/test262o_errors.txt +0 -0
- data/quickjs/tests/bjson.c +96 -0
- data/quickjs/tests/microbench.js +1065 -0
- data/quickjs/tests/test262.patch +71 -0
- data/quickjs/tests/test_bignum.js +326 -0
- data/quickjs/tests/test_bjson.js +191 -0
- data/quickjs/tests/test_builtin.js +685 -0
- data/quickjs/tests/test_closure.js +221 -0
- data/quickjs/tests/test_language.js +547 -0
- data/quickjs/tests/test_loop.js +368 -0
- data/quickjs/tests/test_op_overloading.js +207 -0
- data/quickjs/tests/test_qjscalc.js +256 -0
- data/quickjs/tests/test_std.js +281 -0
- data/quickjs/tests/test_worker.js +62 -0
- data/quickjs/tests/test_worker_module.js +31 -0
- data/quickjs/unicode_download.sh +19 -0
- data/quickjs/unicode_gen.c +3057 -0
- data/quickjs/unicode_gen_def.h +284 -0
- data/readline +3 -0
- data/rm_com +1 -0
- data/run.sh +13 -0
- data/scaling +6 -0
- data/script.js +572 -0
- data/server_creator/__ +307 -0
- data/server_creator/a/a (1).tar.gz +0 -0
- data/server_creator/a/a.out +0 -0
- data/server_creator/a/hello_world +0 -0
- data/server_creator/a/help +57 -0
- data/server_creator/a/main_v1.cpp +83 -0
- data/server_creator/a/my_libs_gregory/.deps +0 -0
- data/server_creator/a/my_libs_gregory/.libs/mod_my_libs_gregory.lai +41 -0
- data/server_creator/a/my_libs_gregory/.libs/mod_my_libs_gregory.o +0 -0
- data/server_creator/a/my_libs_gregory/.libs/mod_my_libs_gregory.so +0 -0
- data/server_creator/a/my_libs_gregory/mod_my_libs_gregory.c +72 -0
- data/server_creator/a/my_libs_gregory/mod_my_libs_gregory.la +41 -0
- data/server_creator/a/my_libs_gregory/mod_my_libs_gregory.lo +12 -0
- data/server_creator/a/my_libs_gregory/mod_my_libs_gregory.slo +0 -0
- data/server_creator/a/nginx.conf +32 -0
- data/server_creator/a/six +1 -0
- data/server_creator/a.out +0 -0
- data/server_creator/all_code.cpp +448 -0
- data/server_creator/all_code.js +27 -0
- data/server_creator/code +510 -0
- data/server_creator/make_application +64 -0
- data/server_creator/prog.cpp +33 -0
- data/server_creator/prog.js +22 -0
- data/server_creator/program.js +745 -0
- data/server_creator/rm_com +1 -0
- data/server_creator/test.sh +82 -0
- data/speakcat.rb +9 -0
- data/string +48 -0
- data/super_trans +83 -0
- data/test.sh +21 -0
- data/todo +8 -0
- data/version_decrement +3 -0
- data/viu_license +21 -0
- data/windows/program.c +21 -0
- data/windows/program.exe +0 -0
- metadata +759 -0
data/lib/script.js
ADDED
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
var __inputs = undefined;
|
|
2
|
+
//var cancel_all = false;
|
|
3
|
+
get_democracy_bar_input = function() {
|
|
4
|
+
if (!__inputs ||(__inputs.length&&__inputs.length==0))
|
|
5
|
+
__inputs = get_inputs().$reverse();
|
|
6
|
+
return (__inputs.length ? __inputs.$pop().value : "");
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
get_inputs = () => {
|
|
10
|
+
var new_list = [];
|
|
11
|
+
var w = document.querySelectorAll("sensibleness input");
|
|
12
|
+
for (i = 0; i < w.length; ++i) {
|
|
13
|
+
new_list[i] = w[i];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return new_list;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
ask = function () {
|
|
20
|
+
setup_window();
|
|
21
|
+
|
|
22
|
+
var q = 0;
|
|
23
|
+
var num = 0;
|
|
24
|
+
var t = "";
|
|
25
|
+
t = get_inputs()
|
|
26
|
+
.map((a) => {
|
|
27
|
+
if (a.value.trim().length) {
|
|
28
|
+
num++;
|
|
29
|
+
a.style.color = "lightblue";
|
|
30
|
+
a.style.fontSize = "40px";
|
|
31
|
+
a.style.letterSpacing = "10px";
|
|
32
|
+
a.style.textShadow = "5px 5px 5px black";
|
|
33
|
+
} else if (q == 0) {
|
|
34
|
+
q = num;
|
|
35
|
+
// console.log(q);
|
|
36
|
+
}
|
|
37
|
+
return a.value;
|
|
38
|
+
})
|
|
39
|
+
.join(" ");
|
|
40
|
+
if (q != NUM) t = list[num];
|
|
41
|
+
var utter = "";
|
|
42
|
+
|
|
43
|
+
try {
|
|
44
|
+
utter = new SpeechSynthesisUtterance(result ?(ack()+" " + t) : "");
|
|
45
|
+
} catch (e) {}
|
|
46
|
+
utter.pitch = 1;
|
|
47
|
+
utter.rate = 1;
|
|
48
|
+
|
|
49
|
+
if (q < NUM) {
|
|
50
|
+
utter.onend = function () {
|
|
51
|
+
// console.log("End");
|
|
52
|
+
testSpeech();
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// console.log(utter);
|
|
56
|
+
if (window.speechSynthesis) {
|
|
57
|
+
for (var i = 0; i < 50; ++i) {
|
|
58
|
+
window.speechSynthesis.cancel();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
clear__();
|
|
62
|
+
recognition.stop();
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
window.speechSynthesis.speak(utter);
|
|
67
|
+
{}
|
|
68
|
+
}
|
|
69
|
+
} else {
|
|
70
|
+
clearInterval(interval);
|
|
71
|
+
recognition.stop();
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var clicked_X = false;
|
|
75
|
+
|
|
76
|
+
function not_filled(a) {
|
|
77
|
+
var new_text = a.value.replace(/[^\sa-zA-Z0-9]/g, "").replace(/\s\s/, "");
|
|
78
|
+
new_text =
|
|
79
|
+
new_text.charAt(0).toUpperCase() + new_text.substring(1, new_text.length);
|
|
80
|
+
a.value = new_text;
|
|
81
|
+
return a.value.length == 0;
|
|
82
|
+
}
|
|
83
|
+
function ack() {
|
|
84
|
+
var list = ["Thank you.", "Alright.", "Good.", "Very well."];
|
|
85
|
+
return list[Math.floor(Math.random() * 4)];
|
|
86
|
+
}
|
|
87
|
+
window.list = [
|
|
88
|
+
"What is your negative feeling?",
|
|
89
|
+
"What is your negative reason?",
|
|
90
|
+
"What is your negative evidence?",
|
|
91
|
+
"What is your positive feeling?",
|
|
92
|
+
"What is your positive reason?",
|
|
93
|
+
"What is your positive evidence?",
|
|
94
|
+
"What is your neutral feeling?",
|
|
95
|
+
"What is your neutral reason?",
|
|
96
|
+
"What is your neutral evidence?",
|
|
97
|
+
];
|
|
98
|
+
//var result;
|
|
99
|
+
try {
|
|
100
|
+
var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
|
|
101
|
+
} catch (e) {
|
|
102
|
+
SpeechRecognition = function () {
|
|
103
|
+
var a = {start: ()=>{}, stop: ()=>{}};
|
|
104
|
+
return a;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
var recognition = new SpeechRecognition();
|
|
109
|
+
|
|
110
|
+
function setup_window() {
|
|
111
|
+
clicked_X = false;
|
|
112
|
+
var _list = document.getElementsByTagName("sensibleness");
|
|
113
|
+
|
|
114
|
+
var _list = document.getElementsByTagName("sensibleness");
|
|
115
|
+
var new_list = [];
|
|
116
|
+
for (var i = 0; i < _list.length; ++i) {
|
|
117
|
+
new_list[i] = _list[i];
|
|
118
|
+
|
|
119
|
+
}
|
|
120
|
+
new_list.forEach((i) => { i.style.opacity = "1"; });
|
|
121
|
+
|
|
122
|
+
if (window.setup_lib) return;
|
|
123
|
+
new_list.forEach((i) => {
|
|
124
|
+
if (!i.getElementsByTagName("input").length)
|
|
125
|
+
for (a = 0; a < NUM; ++a) {
|
|
126
|
+
var l = document.createElement("label");
|
|
127
|
+
l.innerText = list[a];
|
|
128
|
+
i.appendChild(l);
|
|
129
|
+
var e = document.createElement("input");
|
|
130
|
+
e.style.width = "50%";
|
|
131
|
+
e.value = "";
|
|
132
|
+
i.appendChild(e);
|
|
133
|
+
var e = document.createElement("br");
|
|
134
|
+
e.value = "";
|
|
135
|
+
i.appendChild(e);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
var div=document.createElement("div");
|
|
139
|
+
// div.id = "c
|
|
140
|
+
div.id = "ct";
|
|
141
|
+
// div.innerHTML
|
|
142
|
+
/*
|
|
143
|
+
/&*
|
|
144
|
+
document.body.addEventListener(
|
|
145
|
+
document.body.addEventListeng
|
|
146
|
+
*/document.body.addEventListener("keyup", function(key) {
|
|
147
|
+
switch (key.key) {
|
|
148
|
+
case "Escape":
|
|
149
|
+
document.querySelectorAll("#close_button").forEach(function(a) { a.click(); });
|
|
150
|
+
document.body.click();
|
|
151
|
+
break;
|
|
152
|
+
case "Enter":
|
|
153
|
+
document.activeElement.nextSibling.focus(); break; }
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
div.innerHTML = `
|
|
157
|
+
<div id="ct">
|
|
158
|
+
<img id="close_button" src="/home/a/Desktop/close.png" alt="X" onclick="var e = document.querySelector('sensibleness'); e.style.animationName = 'fade-in'; e.style.animationDuration = '1.4s'; e.style.opacity = 0; cancel_all();"/>
|
|
159
|
+
|
|
160
|
+
<button onclick="Opal.MainClass.MainClass.$new()">Generate comment to clipboard</button>
|
|
161
|
+
|
|
162
|
+
<div id="help">
|
|
163
|
+
Sensible, modern, democratic
|
|
164
|
+
</div></div>`;
|
|
165
|
+
// </div>`;
|
|
166
|
+
i.appendChild(div);
|
|
167
|
+
});
|
|
168
|
+
window.setup_lib = true;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
var NUM = 9;
|
|
172
|
+
var result = " ";
|
|
173
|
+
|
|
174
|
+
function testSpeech() {
|
|
175
|
+
recognition = new SpeechRecognition();
|
|
176
|
+
recognition.interimResults = false;
|
|
177
|
+
recognition.lang = "en-US";
|
|
178
|
+
recognition.continuous = false;
|
|
179
|
+
recognition.maxAlternatives = 1;
|
|
180
|
+
|
|
181
|
+
recognition.onend = function (event) {
|
|
182
|
+
// speechResult = undefined;
|
|
183
|
+
// console.log("onend");
|
|
184
|
+
// console.log("RESULT" + result);
|
|
185
|
+
// The SpeechRecognitionEvent results property returns a SpeechRecognitionResultList object
|
|
186
|
+
// The SpeechRecognitionResultList object contains SpeechRecognitionResult objects.
|
|
187
|
+
// It has a getter so it can be accessed like an array
|
|
188
|
+
// The first [0] returns the SpeechRecognitionResult at position 0.
|
|
189
|
+
// Each SpeechRecognitionResult object contains SpeechRecognitionAlternative objects that contain individual results.
|
|
190
|
+
// These also have getters so they can be accessed like arrays.
|
|
191
|
+
// The second [0] returns the SpeechRecognitionAlternative at position 0.
|
|
192
|
+
// We then return the transcript property of the SpeechRecognitionAlternative object
|
|
193
|
+
for (i of document.querySelectorAll("sensibleness input")) {
|
|
194
|
+
if (not_filled(i)) { i.value = result; break; }
|
|
195
|
+
}
|
|
196
|
+
if (clicked_X) {
|
|
197
|
+
// clicked_X = false;
|
|
198
|
+
} else {
|
|
199
|
+
ask();
|
|
200
|
+
}
|
|
201
|
+
result = "";
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
recognition.onspeechend = function (event) {
|
|
206
|
+
clear__();
|
|
207
|
+
event.preventDefault();
|
|
208
|
+
recognition.stop();
|
|
209
|
+
// testSpeech();
|
|
210
|
+
// recognition.stop();
|
|
211
|
+
// testBtn.disabled = false;
|
|
212
|
+
// testBtn.textContent = 'Start new test';
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
recognition.onerror = function (event) {
|
|
216
|
+
clear__();
|
|
217
|
+
recognition.stop();
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
recognition.onaudiostart = function (event) {
|
|
221
|
+
clear__();
|
|
222
|
+
//Fired when the user agent has started to capture audio.
|
|
223
|
+
// console.log("SpeechRecognition.onaudiostart");
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
recognition.onaudioend = function (event) {
|
|
227
|
+
clear__();
|
|
228
|
+
recognition.stop();
|
|
229
|
+
//Fired when the user agent has finished capturing audio.
|
|
230
|
+
console.log("SpeechRecognition.onaudioend");
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
recognition.onresult = function (event) {
|
|
234
|
+
clear__();
|
|
235
|
+
recognition.stop();
|
|
236
|
+
result = event.results[event.results.length - 1][0].transcript;
|
|
237
|
+
console.log(result);
|
|
238
|
+
//Fired when the speech recognition service has disconnected.
|
|
239
|
+
// console.log('SpeechRecognition.onend');
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
recognition.onnomatch = function (event) {
|
|
243
|
+
clear__();
|
|
244
|
+
recognition.stop();
|
|
245
|
+
//Fired when the speech recognition service returns a final result with no significant recognition. This may involve some degree of recognition, which doesn't meet or exceed the confidence threshold.
|
|
246
|
+
console.log("SpeechRecognition.onnomatch");
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
recognition.onsoundstart = function (event) {
|
|
250
|
+
clear__();
|
|
251
|
+
//Fired when any sound — recognisable speech or not — has been detected.
|
|
252
|
+
// console.log("SpeechRecognition.onsoundstart");
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
recognition.onsoundend = function (event) {
|
|
256
|
+
clear__();
|
|
257
|
+
recognition.stop();
|
|
258
|
+
//Fired when any sound — recognisable speech or not — has stopped being detected.
|
|
259
|
+
// console.log("SpeechRecognition.onsoundend");
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
recognition.onspeechstart = function (event) {
|
|
263
|
+
clear__();
|
|
264
|
+
//Fired when sound that is recognised by the speech recognition service as speech has been detected.
|
|
265
|
+
// console.log("SpeechRecognition.onspeechstart");
|
|
266
|
+
};
|
|
267
|
+
recognition.onstart = function (event) {
|
|
268
|
+
clear__();
|
|
269
|
+
//Fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition.
|
|
270
|
+
// console.log("SpeechRecognition.onstart");
|
|
271
|
+
};
|
|
272
|
+
started = true;
|
|
273
|
+
recognition.start();
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
function clear__() {
|
|
279
|
+
clearTimeout(timeout);
|
|
280
|
+
timeout = undefined;
|
|
281
|
+
add_timeout(timeout);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
var timeout = undefined;
|
|
285
|
+
add_timeout = function () {
|
|
286
|
+
clearTimeout(timeout);
|
|
287
|
+
timeout = setTimeout(function () {
|
|
288
|
+
// console.log("Timeout");
|
|
289
|
+
started = false;
|
|
290
|
+
recognition.stop();
|
|
291
|
+
}, 2000);
|
|
292
|
+
};
|
|
293
|
+
//resu
|
|
294
|
+
function fallbackCopyTextToClipboard(text) {
|
|
295
|
+
var textArea = document.createElement("textarea");
|
|
296
|
+
textArea.value = text;
|
|
297
|
+
|
|
298
|
+
// Avoid scrolling to bottom
|
|
299
|
+
textArea.style.top = "0";
|
|
300
|
+
textArea.style.left = "0";
|
|
301
|
+
textArea.style.position = "fixed";
|
|
302
|
+
|
|
303
|
+
document.body.appendChild(textArea);
|
|
304
|
+
textArea.focus();
|
|
305
|
+
textArea.select();
|
|
306
|
+
|
|
307
|
+
try {
|
|
308
|
+
var successful = document.execCommand('copy');
|
|
309
|
+
var msg = successful ? 'successful' : 'unsuccessful';
|
|
310
|
+
console.log('Fallback: Copying text command was ' + msg);
|
|
311
|
+
} catch (err) {
|
|
312
|
+
console.error('Fallback: Oops, unable to copy', err);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
document.body.removeChild(textArea);
|
|
316
|
+
}
|
|
317
|
+
function copyTextToClipboard(text) {
|
|
318
|
+
if (!navigator.clipboard) {
|
|
319
|
+
fallbackCopyTextToClipboard(text);
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
navigator.clipboard.writeText(text).then(function() {
|
|
323
|
+
console.log('Async: Copying to clipboard was successful!');
|
|
324
|
+
}, function(err) {
|
|
325
|
+
console.error('Async: Could not copy text: ', err);
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
var new_css = document.createElement("style");
|
|
330
|
+
new_css.setAttribute("type", "text/css");
|
|
331
|
+
new_css.innerText = `
|
|
332
|
+
@keyframes fade-in {
|
|
333
|
+
from {opacity: 0.5; transform: scale(1, 1) rotate(30deg); position: relative; left: 0px; top: 0px; }
|
|
334
|
+
to {opacity: 0; transform: scale(300, 300) rotate(30deg); position: relative; left: 0px; top: 600px; }
|
|
335
|
+
}
|
|
336
|
+
body {
|
|
337
|
+
display: inline-block;
|
|
338
|
+
animation-timing-function: ease-in-out;
|
|
339
|
+
text-align: center;
|
|
340
|
+
|
|
341
|
+
background-color: white;
|
|
342
|
+
// background-image: url("https://cdn.pixabay.com/photo/2019/11/20/20/02/couple-4641033_960_720.jpg");
|
|
343
|
+
|
|
344
|
+
font-family: -apple-system, BlinkMacSystemFont,
|
|
345
|
+
“Segoe UI”, “Roboto”, “Oxygen”, “Ubuntu”, “Cantarell”,
|
|
346
|
+
“Fira Sans”, “Droid Sans”, “Helvetica Neue”,
|
|
347
|
+
sans-serif;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
em {
|
|
351
|
+
color: #0000CC;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
sensibleness input {
|
|
355
|
+
border-radius: 10px;
|
|
356
|
+
padding: 10px;
|
|
357
|
+
// font-family: Times New Roman;
|
|
358
|
+
border: 1px solid white;
|
|
359
|
+
background-color: lightblue;
|
|
360
|
+
width: 300px;
|
|
361
|
+
/*text-align: center;*/
|
|
362
|
+
}
|
|
363
|
+
sensibleness {
|
|
364
|
+
// background-image: url("https://cdn.pixabay.com/photo/2013/12/17/20/10/bubbles-230014_960_720.jpg");
|
|
365
|
+
background: rgb(170,0,0);
|
|
366
|
+
background: -moz-linear-gradient(90deg, rgba(170,0,0,1) 0%, rgba(255,255,255,1) 100%);
|
|
367
|
+
background: -webkit-linear-gradient(90deg, rgba(170,0,0,1) 0%, rgba(255,255,255,1) 100%);
|
|
368
|
+
background: linear-gradient(90deg, rgba(170,0,0,1) 0%, rgba(255,255,255,1) 100%);
|
|
369
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aa0000",endColorstr="#ffffff",GradientType=1);
|
|
370
|
+
position: absolute;
|
|
371
|
+
z-index: 1000;
|
|
372
|
+
background-color: white;
|
|
373
|
+
top: 0px;
|
|
374
|
+
left: 0px;
|
|
375
|
+
box-shadow: 0px 0px 30px black;
|
|
376
|
+
border-bottom-left-radius: 30px;
|
|
377
|
+
border-bottom-right-radius: 30px;
|
|
378
|
+
width: 100%;
|
|
379
|
+
text-align: center;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
sensibleness #help {
|
|
383
|
+
float: right;
|
|
384
|
+
padding: 30px;
|
|
385
|
+
font-size:11px;
|
|
386
|
+
font-style: italic;
|
|
387
|
+
display: inline-block;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
ct {
|
|
391
|
+
padding: 30px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
button {
|
|
395
|
+
background-color:lightblue;
|
|
396
|
+
border-radius: 30px;
|
|
397
|
+
// posot
|
|
398
|
+
color: white;
|
|
399
|
+
text-shadow: 0px 0px 10px black;
|
|
400
|
+
box-shadow: 3px 3px 3px black;
|
|
401
|
+
position: absolute;
|
|
402
|
+
bottom: 0px;
|
|
403
|
+
border: 0px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
sensibleness img {
|
|
407
|
+
position: absolute;
|
|
408
|
+
top: 0px;
|
|
409
|
+
left: 0px;
|
|
410
|
+
padding: 30px;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
`;
|
|
414
|
+
|
|
415
|
+
document.head.appendChild(new_css);
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
function cancel_all() {
|
|
419
|
+
window.speechSynthesis.cancel();
|
|
420
|
+
recognition.stop();
|
|
421
|
+
clearTimeout(timeout);
|
|
422
|
+
clicked_X = true;
|
|
423
|
+
}
|
data/lib/string__.rb
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
#
|
|
3
|
+
# Democracy software compilation VERSION 0.0., created on 2021-11-14 17:41:34 -0500
|
|
4
|
+
# Get all of this code, and all of these files, with
|
|
5
|
+
# gem install democracy
|
|
6
|
+
# Linux ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
|
|
7
|
+
#
|
|
8
|
+
# Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
|
|
9
|
+
#
|
|
10
|
+
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# 76 of 16 source files
|
|
17
|
+
module Assert
|
|
18
|
+
require_relative "string__"
|
|
19
|
+
def assert(*args)
|
|
20
|
+
raise if args.empty? && !self
|
|
21
|
+
|
|
22
|
+
args.each { |i| raise i unless i; }
|
|
23
|
+
end; end
|
|
24
|
+
|
|
25
|
+
include Assert
|
|
26
|
+
|
|
27
|
+
class TrueClass
|
|
28
|
+
include Assert
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class FalseClass
|
|
32
|
+
include Assert
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
class Object
|
|
36
|
+
def in?(_array)
|
|
37
|
+
false
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def shellescape
|
|
41
|
+
to_s.shellescape
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
if RUBY_ENGINE != 'opal'
|
|
46
|
+
eval "require 'shellwords'" # ; end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
#end
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class String
|
|
53
|
+
|
|
54
|
+
def puts
|
|
55
|
+
Kernel.puts self
|
|
56
|
+
self
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def print
|
|
60
|
+
Kernel.print self
|
|
61
|
+
self
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def in?(a)
|
|
65
|
+
a.include? self
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def ends_with?(a)
|
|
69
|
+
end_with? a
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def add_period
|
|
73
|
+
if self[-1] == '.'
|
|
74
|
+
self
|
|
75
|
+
else
|
|
76
|
+
"#{self}."; end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
class Array
|
|
81
|
+
def which
|
|
82
|
+
each do |cmd|
|
|
83
|
+
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
|
|
84
|
+
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
|
|
85
|
+
exts.each do |ext|
|
|
86
|
+
exe = File.join(path, "#{cmd}#{ext}")
|
|
87
|
+
return exe if File.executable?(exe) && !File.directory?(exe)
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
nil
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
class String
|
|
96
|
+
def uppercase
|
|
97
|
+
return '' if self[0].nil?
|
|
98
|
+
|
|
99
|
+
self[0].capitalize + slice(1, length)
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# Feedback and donation to gregorycohen2@gmail.com (money transfer or Paypal)
|