elonmusk 1.0.53 → 1.0.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +14 -9
- data/PP.rb +217 -66
- data/README +1 -1
- data/README.md +76 -117
- data/SONG +156 -0
- data/UCA_cli +0 -0
- data/ULTIMATE_CHAT_APPLICATION.exe +0 -0
- data/ULTIMATE_CHAT_APPLICATION_(LINUX) +0 -0
- data/VERSION_NUMBER +1 -1
- data/bin/DISCOURSE_GENERATOR.exe +0 -0
- data/bin/UCA_cli +0 -0
- data/bin/ULTIMATE_CHAT_APPLICATION.exe +0 -0
- data/bin/ULTIMATE_CHAT_APPLICATION_(LINUX) +0 -0
- data/bin/abs +0 -0
- data/bin/add +0 -0
- data/bin/append +0 -0
- data/bin/args +0 -0
- data/bin/black +0 -0
- data/bin/black_bold +0 -0
- data/bin/black_bold_underline +0 -0
- data/bin/black_underline +0 -0
- data/bin/blue +0 -0
- data/bin/blue_bold +0 -0
- data/bin/blue_bold_underline +0 -0
- data/bin/blue_underline +0 -0
- data/bin/bold +0 -0
- data/bin/clock +0 -0
- data/bin/copy +0 -0
- data/bin/cyan +0 -0
- data/bin/cyan_bold +0 -0
- data/bin/cyan_bold_underline +0 -0
- data/bin/cyan_underline +0 -0
- data/bin/div +0 -0
- data/bin/dump +0 -0
- data/bin/exp +0 -0
- data/bin/floor +0 -0
- data/bin/green +0 -0
- data/bin/green_bold +0 -0
- data/bin/green_bold_underline +0 -0
- data/bin/green_underline +0 -0
- data/bin/gsub +0 -0
- data/bin/gsubip +0 -0
- data/bin/lines +0 -0
- data/bin/magenta +0 -0
- data/bin/magenta_bold +0 -0
- data/bin/magenta_bold_underline +0 -0
- data/bin/magenta_underline +0 -0
- data/bin/mul +0 -0
- data/bin/news +0 -0
- data/bin/nth +0 -0
- data/bin/prepend +0 -0
- data/bin/red +0 -0
- data/bin/red_bold +0 -0
- data/bin/red_bold_underline +0 -0
- data/bin/red_underline +0 -0
- data/bin/rgsub +0 -0
- data/bin/rip +0 -0
- data/bin/rnip +0 -0
- data/bin/selectlines +0 -0
- data/bin/sub +0 -0
- data/bin/swap +0 -0
- data/bin/underline +0 -0
- data/bin/undump +0 -0
- data/bin/white +0 -0
- data/bin/white_bold +0 -0
- data/bin/white_bold_underline +0 -0
- data/bin/white_underline +0 -0
- data/bin/yellow +0 -0
- data/bin/yellow_bold +0 -0
- data/bin/yellow_bold_underline +0 -0
- data/bin/yellow_underline +0 -0
- data/documentation/doc.rb +1 -1
- data/documentation/gsubip +2 -12
- data/documentation/page +61 -54
- data/documentation/rgsub +22 -1
- data/documentation/t +4 -0
- data/gem_data/README +10 -0
- data/gem_data/VERSION_NUMBER +1 -0
- data/gem_data/democracy.gemspec +12 -0
- data/gem_data/push +14 -0
- data/gem_data/version_decrement +1 -0
- data/images/1.png +0 -0
- data/index.html +104 -110
- data/install.sh +4 -3
- data/non_compiled_programs/find_housing +15 -39
- data/other/discourse_generator_desktop_widget/a.sh +18 -0
- data/other/experimental_code/merge +7 -0
- data/other/old_compiler/my_make/my_make.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/get_length_of_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/add_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/add_or_sub_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/add_or_sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/add_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/add_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/call_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/call_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/dac_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/dac_reg32_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/dac_reg64_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fadd_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/faddp.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fchs.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fcomi.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fcomip.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/ffree.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fld_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fstp_deref_register_as_qword_plus_signed_byte_offset.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fstp_fpu_register.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fsubp.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/fxch.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/get_length_of_add_or_sub_reg32_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/get_length_of_add_or_sub_reg64_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/int.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/int3.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/ja_short.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jae_short.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jb_short.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jbe.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/je.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jmp_reg.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jmp_short.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/jne_short.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_dword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_dword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_dword_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_qword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_qword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_reg32_deref_register_as_dword.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/mov_reg64_lit64_ten_byte_encoding.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/pop.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/push.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/ret.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/syscall.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/x86_instructions.h +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/instructions/x86_instructions_globals.h +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/put_instructions_into_code_section.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/translate_mid_level_instructions_into_cpu_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp/arch/x86/x86_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp/global_headers/assert_comparison.h +1 -1
- data/other/old_compiler/shiltiumcomp/global_headers/deref.h +1 -1
- data/other/old_compiler/shiltiumcomp/global_headers/globals.h +1 -1
- data/other/old_compiler/shiltiumcomp/global_headers/headers.h +1 -1
- data/other/old_compiler/shiltiumcomp/global_headers/os_detection.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/constant_folding.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/dac_init.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/ensure_type_is_valid_otherwise_give_type_error.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/ensure_type_is_valid_otherwise_give_type_error.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/free_list.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/get_variable.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/get_variable.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/input.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/insert_variable_into_scope.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/insert_variable_into_scope.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/is_valid_identifier.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/lex_statement_string.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/libs/hash_table.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/libs/hash_table.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/line_number.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/line_number.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/list.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/literal_conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/memory.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/output.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_block.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_block_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_block_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_expression.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parse_statement_string_into_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parser.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/parser_dot_c_static_functions.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/process_command_line_options.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/read_and_parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/read_and_parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/resize_statement_buffer_if_necessary.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/resize_statement_buffer_if_necessary.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/shiltiumcomp.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/show_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/string_comparison.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/subroutine_value_deletion_function.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/subroutine_value_deletion_function.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/tokens_del.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/tokens_del.h +1 -1
- data/other/old_compiler/shiltiumcomp/portable/translate_expression_into_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/utf8.c +1 -1
- data/other/old_compiler/shiltiumcomp/portable/utf8.h +1 -1
- data/other/old_compiler/shiltiumcomp/program2.sl +1 -1
- data/other/old_compiler/shiltiumcomp/test/create_large_file.py +1 -1
- data/other/old_compiler/shiltiumcomp/test/test.py +1 -1
- data/other/old_compiler/shiltiumcomp/ui.cpp +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/get_length_of_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/add_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/add_or_sub_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/add_or_sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/add_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/add_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/append_mov_reg64_lit64_ten_byte_encoding.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/call_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/call_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/dac_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/dac_reg32_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/dac_reg64_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/faddp.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/fchs.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/fcomi.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/fcomip.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/ffree.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/fsubp.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/get_length_of_add_or_sub_reg32_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/get_length_of_add_or_sub_reg64_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/int.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/int3.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/ja_short.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/jb_short.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/je_short.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/jmp_reg.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/jmp_short.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/jne_short.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_dword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_dword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_dword_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_qword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_qword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/mov_reg32_deref_register_as_dword.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/output_short_branch_instruction.h +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/pop.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/push.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/ret.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/syscall.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/x86_instructions.h +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/instructions/x86_instructions_globals.h +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/put_instructions_into_code_section.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/translate_mid_level_instructions_into_cpu_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp58/arch/x86/x86_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp58/global_headers/assert_comparison.h +1 -1
- data/other/old_compiler/shiltiumcomp58/global_headers/deref.h +1 -1
- data/other/old_compiler/shiltiumcomp58/global_headers/globals.h +1 -1
- data/other/old_compiler/shiltiumcomp58/global_headers/headers.h +1 -1
- data/other/old_compiler/shiltiumcomp58/global_headers/os_detection.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/constant_folding.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/dac_init.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/ensure_type_is_valid_otherwise_give_type_error.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/ensure_type_is_valid_otherwise_give_type_error.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/free_list.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/insert_variable_into_scope.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/insert_variable_into_scope.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/is_valid_identifier.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/lex_statement_string.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/libs/hash_table.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/line_number.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/line_number.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/linked_list.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/literal_conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/memory.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/output.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_block.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_block_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_block_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_expression.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parse_statement_string_into_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parser.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/parser_dot_c_static_functions.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/process_command_line_options.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/read_and_parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/read_and_parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/read_char.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/shiltiumcomp.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/show_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/string_comparison.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/subroutine_value_deletion_function.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/subroutine_value_deletion_function.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/tokens_del.c +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/tokens_del.h +1 -1
- data/other/old_compiler/shiltiumcomp58/portable/translate_expression_into_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp58/program.sl +1 -1
- data/other/old_compiler/shiltiumcomp58/program2.sl +1 -1
- data/other/old_compiler/shiltiumcomp58/test/create_large_file.py +1 -1
- data/other/old_compiler/shiltiumcomp58/test/test.py +1 -1
- data/other/old_compiler/shiltiumcomp58/ui.cpp +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/get_length_of_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/add_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/add_or_sub_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/add_or_sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/add_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/add_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/append_mov_reg64_lit64_ten_byte_encoding.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/call_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/call_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/dac_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/dac_reg32_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/dac_reg64_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/faddp.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/fchs.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/fcomi.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/fcomip.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/ffree.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/fsubp.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/get_length_of_add_or_sub_reg32_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/get_length_of_add_or_sub_reg64_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/int.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/int3.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/ja_short.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/jb_short.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/je_short.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/jmp_reg.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/jmp_short.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/jne_short.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_dword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_dword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_dword_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_qword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_qword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/mov_reg32_deref_register_as_dword.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/output_short_branch_instruction.h +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/pop.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/push.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/ret.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/syscall.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/x86_instructions.h +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/instructions/x86_instructions_globals.h +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/put_instructions_into_code_section.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/translate_mid_level_instructions_into_cpu_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp59/arch/x86/x86_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp59/global_headers/assert_comparison.h +1 -1
- data/other/old_compiler/shiltiumcomp59/global_headers/deref.h +1 -1
- data/other/old_compiler/shiltiumcomp59/global_headers/globals.h +1 -1
- data/other/old_compiler/shiltiumcomp59/global_headers/headers.h +1 -1
- data/other/old_compiler/shiltiumcomp59/global_headers/os_detection.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/constant_folding.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/dac_init.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/ensure_type_is_valid_otherwise_give_type_error.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/ensure_type_is_valid_otherwise_give_type_error.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/free_list.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/get_variable.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/get_variable.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/insert_variable_into_scope.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/insert_variable_into_scope.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/is_valid_identifier.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/lex_statement_string.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/libs/hash_table.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/line_number.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/line_number.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/linked_list.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/literal_conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/memory.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/output.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_block.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_block_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_block_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_expression.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parse_statement_string_into_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parser.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/parser_dot_c_static_functions.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/process_command_line_options.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/read_and_parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/read_and_parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/read_char.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/shiltiumcomp.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/show_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/string_comparison.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/subroutine_value_deletion_function.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/subroutine_value_deletion_function.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/tokens_del.c +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/tokens_del.h +1 -1
- data/other/old_compiler/shiltiumcomp59/portable/translate_expression_into_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp59/program.sl +1 -1
- data/other/old_compiler/shiltiumcomp59/program2.sl +1 -1
- data/other/old_compiler/shiltiumcomp59/test/create_large_file.py +1 -1
- data/other/old_compiler/shiltiumcomp59/test/test.py +1 -1
- data/other/old_compiler/shiltiumcomp59/ui.cpp +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/get_length_of_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/add_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/add_or_sub_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/add_or_sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/add_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/add_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/call_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/call_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/dac_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/dac_reg32_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/dac_reg64_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fadd_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/faddp.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fchs.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fcomi.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fcomip.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/ffree.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fld_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fstp_deref_register_as_qword_plus_signed_byte_offset.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fstp_fpu_register.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fsubp.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/fxch.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/get_length_of_add_or_sub_reg32_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/get_length_of_add_or_sub_reg64_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/int.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/int3.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/ja_short.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jae_short.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jb_short.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jbe.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/je.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jmp_reg.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jmp_short.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/jne_short.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_dword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_dword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_dword_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_qword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_qword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_reg32_deref_register_as_dword.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/mov_reg64_lit64_ten_byte_encoding.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/pop.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/push.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/ret.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/syscall.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/x86_instructions.h +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/instructions/x86_instructions_globals.h +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/put_instructions_into_code_section.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/translate_mid_level_instructions_into_cpu_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp76/arch/x86/x86_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp76/global_headers/assert_comparison.h +1 -1
- data/other/old_compiler/shiltiumcomp76/global_headers/deref.h +1 -1
- data/other/old_compiler/shiltiumcomp76/global_headers/globals.h +1 -1
- data/other/old_compiler/shiltiumcomp76/global_headers/headers.h +1 -1
- data/other/old_compiler/shiltiumcomp76/global_headers/os_detection.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/constant_folding.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/dac_init.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/ensure_type_is_valid_otherwise_give_type_error.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/ensure_type_is_valid_otherwise_give_type_error.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/free_list.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/get_variable.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/get_variable.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/input.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/insert_variable_into_scope.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/insert_variable_into_scope.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/is_valid_identifier.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/lex_statement_string.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/libs/hash_table.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/libs/hash_table.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/line_number.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/line_number.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/list.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/literal_conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/memory.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/output.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_block.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_block_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_block_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_expression.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parse_statement_string_into_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parser.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/parser_dot_c_static_functions.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/process_command_line_options.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/read_and_parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/read_and_parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/resize_statement_buffer_if_necessary.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/resize_statement_buffer_if_necessary.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/shiltiumcomp.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/show_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/string_comparison.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/subroutine_value_deletion_function.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/subroutine_value_deletion_function.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/tokens_del.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/tokens_del.h +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/translate_expression_into_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/utf8.c +1 -1
- data/other/old_compiler/shiltiumcomp76/portable/utf8.h +1 -1
- data/other/old_compiler/shiltiumcomp76/program2.sl +1 -1
- data/other/old_compiler/shiltiumcomp76/test/create_large_file.py +1 -1
- data/other/old_compiler/shiltiumcomp76/test/test.py +1 -1
- data/other/old_compiler/shiltiumcomp76/ui.cpp +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/get_length_of_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/add_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/add_or_sub_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/add_or_sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/add_reg32_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/add_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/call_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/call_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/dac_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/dac_reg32_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/dac_reg64_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fadd_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/faddp.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fchs.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fcomi.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fcomip.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/ffree.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fld_qword_address.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fstp_deref_register_as_qword_plus_signed_byte_offset.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fstp_fpu_register.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fsubp.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/fxch.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/get_length_of_add_or_sub_reg32_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/get_length_of_add_or_sub_reg64_lit32.h +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/int.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/int3.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/ja_short.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jae_short.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jb_short.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jbe.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/je.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jmp_reg.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jmp_short.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/jne_short.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_dword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_dword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_dword_reg32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_qword_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_qword_plus_signed_byte_offset_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_deref_register_as_qword_reg64.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_reg32_deref_register_as_dword.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/mov_reg64_lit64_ten_byte_encoding.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/pop.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/push.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/ret.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/sub_reg64_lit32.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/syscall.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/x86_instructions.h +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/instructions/x86_instructions_globals.h +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/put_instructions_into_code_section.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/translate_mid_level_instructions_into_cpu_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp78/arch/x86/x86_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp78/global_headers/assert_comparison.h +1 -1
- data/other/old_compiler/shiltiumcomp78/global_headers/deref.h +1 -1
- data/other/old_compiler/shiltiumcomp78/global_headers/globals.h +1 -1
- data/other/old_compiler/shiltiumcomp78/global_headers/headers.h +1 -1
- data/other/old_compiler/shiltiumcomp78/global_headers/os_detection.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/constant_folding.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/dac_init.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/ensure_type_is_valid_otherwise_give_type_error.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/ensure_type_is_valid_otherwise_give_type_error.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/free_list.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/get_variable.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/get_variable.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/input.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/insert_variable_into_scope.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/insert_variable_into_scope.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/is_valid_identifier.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/lex_statement_string.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/libs/hash_table.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/libs/hash_table.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/line_number.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/line_number.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/list.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/literal_conversion.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/memory.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/output.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_block.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_block_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_block_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_expression.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parse_statement_string_into_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parser.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/parser_dot_c_static_functions.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/process_command_line_options.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/read_and_parse_statement.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/read_and_parse_statement.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/resize_statement_buffer_if_necessary.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/resize_statement_buffer_if_necessary.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/shiltiumcomp.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/show_tokens.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/string_comparison.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/subroutine_value_deletion_function.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/subroutine_value_deletion_function.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/tokens_del.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/tokens_del.h +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/translate_expression_into_mid_level_instructions.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/utf8.c +1 -1
- data/other/old_compiler/shiltiumcomp78/portable/utf8.h +1 -1
- data/other/old_compiler/shiltiumcomp78/program2.sl +1 -1
- data/other/old_compiler/shiltiumcomp78/test/create_large_file.py +1 -1
- data/other/old_compiler/shiltiumcomp78/test/test.py +1 -1
- data/other/old_compiler/shiltiumcomp78/ui.cpp +1 -1
- data/other/upload.rb +27 -0
- data/output_data +2 -2
- data/physics +5 -7
- data/push +1 -1
- data/src/- +1 -0
- data/src/--file +0 -0
- data/src/clock +0 -0
- data/src/color_tools/black +0 -0
- data/src/color_tools/black.c +78 -0
- data/src/color_tools/black_bold +0 -0
- data/src/color_tools/black_bold.c +78 -0
- data/src/color_tools/black_bold_underline +0 -0
- data/src/color_tools/black_bold_underline.c +78 -0
- data/src/color_tools/black_underline +0 -0
- data/src/color_tools/black_underline.c +78 -0
- data/src/color_tools/blue +0 -0
- data/src/color_tools/blue.c +78 -0
- data/src/color_tools/blue_bold +0 -0
- data/src/color_tools/blue_bold.c +78 -0
- data/src/color_tools/blue_bold_underline +0 -0
- data/src/color_tools/blue_bold_underline.c +78 -0
- data/src/color_tools/blue_underline +0 -0
- data/src/color_tools/blue_underline.c +78 -0
- data/src/color_tools/bold +0 -0
- data/src/color_tools/bold.c +78 -0
- data/src/color_tools/colors.rb +192 -0
- data/src/color_tools/cyan +0 -0
- data/src/color_tools/cyan.c +78 -0
- data/src/color_tools/cyan_bold +0 -0
- data/src/color_tools/cyan_bold.c +78 -0
- data/src/color_tools/cyan_bold_underline +0 -0
- data/src/color_tools/cyan_bold_underline.c +78 -0
- data/src/color_tools/cyan_underline +0 -0
- data/src/color_tools/cyan_underline.c +78 -0
- data/src/color_tools/green +0 -0
- data/src/color_tools/green.c +78 -0
- data/src/color_tools/green_bold +0 -0
- data/src/color_tools/green_bold.c +78 -0
- data/src/color_tools/green_bold_underline +0 -0
- data/src/color_tools/green_bold_underline.c +78 -0
- data/src/color_tools/green_underline +0 -0
- data/src/color_tools/green_underline.c +78 -0
- data/src/color_tools/magenta +0 -0
- data/src/color_tools/magenta.c +78 -0
- data/src/color_tools/magenta_bold +0 -0
- data/src/color_tools/magenta_bold.c +78 -0
- data/src/color_tools/magenta_bold_underline +0 -0
- data/src/color_tools/magenta_bold_underline.c +78 -0
- data/src/color_tools/magenta_underline +0 -0
- data/src/color_tools/magenta_underline.c +78 -0
- data/src/color_tools/red +0 -0
- data/src/color_tools/red.c +78 -0
- data/src/color_tools/red_bold +0 -0
- data/src/color_tools/red_bold.c +78 -0
- data/src/color_tools/red_bold_underline +0 -0
- data/src/color_tools/red_bold_underline.c +78 -0
- data/src/color_tools/red_underline +0 -0
- data/src/color_tools/red_underline.c +78 -0
- data/src/color_tools/underline +0 -0
- data/src/color_tools/underline.c +78 -0
- data/src/color_tools/white +0 -0
- data/src/color_tools/white.c +78 -0
- data/src/color_tools/white_bold +0 -0
- data/src/color_tools/white_bold.c +78 -0
- data/src/color_tools/white_bold_underline +0 -0
- data/src/color_tools/white_bold_underline.c +78 -0
- data/src/color_tools/white_underline +0 -0
- data/src/color_tools/white_underline.c +78 -0
- data/src/color_tools/yellow +0 -0
- data/src/color_tools/yellow.c +78 -0
- data/src/color_tools/yellow_bold +0 -0
- data/src/color_tools/yellow_bold.c +78 -0
- data/src/color_tools/yellow_bold_underline +0 -0
- data/src/color_tools/yellow_bold_underline.c +78 -0
- data/src/color_tools/yellow_underline +0 -0
- data/src/color_tools/yellow_underline.c +78 -0
- data/src/compilation/abs +286 -0
- data/src/compilation/add +286 -0
- data/src/compilation/append +286 -0
- data/src/compilation/args +286 -0
- data/src/compilation/copy +286 -0
- data/src/compilation/div +286 -0
- data/src/compilation/dump +286 -0
- data/src/compilation/exp +286 -0
- data/src/compilation/floor +286 -0
- data/src/compilation/gsub +286 -0
- data/src/compilation/gsubip +286 -0
- data/src/compilation/last_nth +286 -0
- data/src/compilation/lines +286 -0
- data/src/compilation/mul +286 -0
- data/src/compilation/nth +286 -0
- data/src/compilation/prepend +286 -0
- data/src/compilation/rip +286 -0
- data/src/compilation/rnip +286 -0
- data/src/compilation/selectlines +286 -0
- data/src/compilation/sub +286 -0
- data/src/compilation/swap +286 -0
- data/src/compilation/undump +286 -0
- data/src/compile_all +36 -0
- data/src/gsubip +0 -0
- data/src/news +0 -0
- data/src/programs/abs +0 -0
- data/src/programs/add +0 -0
- data/src/programs/append +0 -0
- data/src/programs/args +0 -0
- data/src/programs/copy +0 -0
- data/src/programs/div +0 -0
- data/src/programs/dump +0 -0
- data/src/programs/exp +0 -0
- data/src/programs/floor +0 -0
- data/src/programs/gsub +0 -0
- data/src/programs/gsubip +0 -0
- data/src/programs/last_nth +0 -0
- data/src/programs/lines +0 -0
- data/src/programs/mul +0 -0
- data/src/programs/news +0 -0
- data/src/programs/nth +0 -0
- data/src/programs/prepend +0 -0
- data/src/programs/rip +0 -0
- data/src/programs/rnip +0 -0
- data/src/programs/selectlines +0 -0
- data/src/programs/sub +0 -0
- data/src/programs/swap +0 -0
- data/src/programs/undump +0 -0
- data/src/rgsub +0 -0
- data/src/rgsub.c +404 -0
- data/src/src/code2 +57 -0
- data/src/src/functions.cr +274 -0
- data/src/src/mk +43 -0
- data/src/test/cat +0 -0
- data/src/test/foo/dog +0 -0
- data/thoughts_on_SIMULATIONS +149 -1
- metadata +172 -114
- data/NOTE +0 -2
- data/YOUTUBE_CHANNEL +0 -1
- data/bin/YOUTUBE_CHANNEL.txt +0 -1
- data/bin/communicate +0 -88
- data/bin/executable +0 -1
- data/bin/foreach +0 -71
- data/documentation/communicate +0 -18
- data/documentation/executable +0 -1
- data/documentation/foreach +0 -24
- data/documentation/inspire +0 -12
- data/documentation/quotes +0 -2
- data/documentation/translate +0 -23
- data/non_compiled_programs/YOUTUBE_CHANNEL.txt +0 -1
- data/non_compiled_programs/communicate +0 -88
- data/non_compiled_programs/executable +0 -1
- data/non_compiled_programs/foreach +0 -71
- data/other/dg_desktop_widget/a.sh +0 -7
- data/source_code/compile_all +0 -15
- data/source_code/programs/abs +0 -0
- data/source_code/programs/add +0 -0
- data/source_code/programs/append +0 -0
- data/source_code/programs/args +0 -0
- data/source_code/programs/black +0 -0
- data/source_code/programs/black_bold +0 -0
- data/source_code/programs/black_bold_underline +0 -0
- data/source_code/programs/black_underline +0 -0
- data/source_code/programs/blue +0 -0
- data/source_code/programs/blue_bold +0 -0
- data/source_code/programs/blue_bold_underline +0 -0
- data/source_code/programs/blue_underline +0 -0
- data/source_code/programs/bold +0 -0
- data/source_code/programs/copy +0 -0
- data/source_code/programs/cyan +0 -0
- data/source_code/programs/cyan_bold +0 -0
- data/source_code/programs/cyan_bold_underline +0 -0
- data/source_code/programs/cyan_underline +0 -0
- data/source_code/programs/div +0 -0
- data/source_code/programs/dump +0 -0
- data/source_code/programs/exp +0 -0
- data/source_code/programs/floor +0 -0
- data/source_code/programs/green +0 -0
- data/source_code/programs/green_bold +0 -0
- data/source_code/programs/green_bold_underline +0 -0
- data/source_code/programs/green_underline +0 -0
- data/source_code/programs/gsub +0 -0
- data/source_code/programs/gsubip +0 -0
- data/source_code/programs/last_nth +0 -0
- data/source_code/programs/lines +0 -0
- data/source_code/programs/magenta +0 -0
- data/source_code/programs/magenta_bold +0 -0
- data/source_code/programs/magenta_bold_underline +0 -0
- data/source_code/programs/magenta_underline +0 -0
- data/source_code/programs/mul +0 -0
- data/source_code/programs/nth +0 -0
- data/source_code/programs/prepend +0 -0
- data/source_code/programs/red +0 -0
- data/source_code/programs/red_bold +0 -0
- data/source_code/programs/red_bold_underline +0 -0
- data/source_code/programs/red_underline +0 -0
- data/source_code/programs/rgsub +0 -0
- data/source_code/programs/rip +0 -0
- data/source_code/programs/rnip +0 -0
- data/source_code/programs/selectlines +0 -0
- data/source_code/programs/sub +0 -0
- data/source_code/programs/swap +0 -0
- data/source_code/programs/underline +0 -0
- data/source_code/programs/undump +0 -0
- data/source_code/programs/white +0 -0
- data/source_code/programs/white_bold +0 -0
- data/source_code/programs/white_bold_underline +0 -0
- data/source_code/programs/white_underline +0 -0
- data/source_code/programs/yellow +0 -0
- data/source_code/programs/yellow_bold +0 -0
- data/source_code/programs/yellow_bold_underline +0 -0
- data/source_code/programs/yellow_underline +0 -0
- data/source_code/source_code/code +0 -1
- data/source_code/source_code/functions.cr +0 -1074
- data/source_code/source_code/mk +0 -66
- /data/documentation/{DISCOURSE_GENERATOR → DISCOURSE_GENERATOR.exe} +0 -0
- /data/documentation/{ULTIMATE_CHAT_APPLICATION → ULTIMATE_CHAT_APPLICATION.exe} +0 -0
- /data/other/{dg_desktop_widget → discourse_generator_desktop_widget}/.qmake.stash +0 -0
- /data/other/{dg_desktop_widget → discourse_generator_desktop_widget}/a.cpp +0 -0
- /data/other/{dg_desktop_widget → discourse_generator_desktop_widget}/a.out +0 -0
- /data/other/{dg_desktop_widget → discourse_generator_desktop_widget}/dep_win +0 -0
- /data/other/{dg_desktop_widget → discourse_generator_desktop_widget}/prog +0 -0
- /data/other/{github_project → semantic_metadata}/AI +0 -0
- /data/other/{github_project → semantic_metadata}/APIS +0 -0
- /data/other/{github_project → semantic_metadata}/Dwn_dot_sh +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/GOOD +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/amazing_output +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/amazing_output_keys +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/amazing_output_length_of_keys +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/amazing_output_values +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/dddddddddd +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/json +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/keys_GOOD +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/upwards.rb +0 -0
- /data/other/{github_project → semantic_metadata}/Existential Auto-Sort of Anything At All In Life/values_GOOD +0 -0
- /data/other/{github_project → semantic_metadata}/LICENSE +0 -0
- /data/other/{github_project → semantic_metadata}/description +0 -0
- /data/other/{github_project → semantic_metadata}/hash +0 -0
- /data/other/{github_project → semantic_metadata}/hash.d +0 -0
- /data/other/{github_project → semantic_metadata}/program.cr +0 -0
- /data/other/{github_project → semantic_metadata}/program.rb +0 -0
- /data/other/{github_project → semantic_metadata}/programold +0 -0
- /data/other/{github_project → semantic_metadata}/run.sh +0 -0
- /data/{source_code → src}/clock.cr +0 -0
- /data/{source_code → src}/news.cr +0 -0
- /data/{source_code/source_code → src/src}/Makefile +0 -0
- /data/{source_code/source_code → src/src}/QQ +0 -0
- /data/{source_code/source_code → src/src}/format_so_it_works +0 -0
@@ -1,1074 +0,0 @@
|
|
1
|
-
#!/usr/bin/crystal
|
2
|
-
|
3
|
-
# ruby -e 'require "colored"; puts "".colors' | t '([i, i + "_bold", i + "_underline", i + "_bold_underline"].each do |i| warn "# It is really handy to have utilities like these.\ndef " + i + "()\n\ttty = STDOUT.tty?\n\n\tSTDIN.each_char do |character|\n\t\tif character.whitespace?\n\t\t\tprint character\n\t\telse\n\t\t\tif tty\n\t\t\t\tprint character.colorize(:#{t})#{(i.split("_").length >= 2) ? ("" + i.gsub(q, "").gsub("_", ".")):";else;print character\n end\n\n; if 1\n " }\n\t\t\telse\n\t\t\t#{case i; when /bold|underline/; tags = ""; if i.match /bold/; tags += "<b>"; end; if i.match /underline/; tags += "<u>";end;"\tprint \"#{tags}\#{character}#{tags.gsub("<", "</") }\""; end}\n\t\t\tend\n\t\tend\n\tend\n\n\texit 0\nend" + "\n" * 2; end )' > /dev/null 2>function ; cat function()
|
4
|
-
|
5
|
-
# ruby -e 'require "colored"; puts "".colors' | t '([i, i + "_bold", i + "_underline", i + "_bold_underline"].each do |i| warn "# It is really handy to have utilities like these.\ndef " + i + "()\n\ttty = STDIN.tty?\n\n\tSTDIN.each_char do |character|\n\t\tif character.whitespace?\n\t\t\tprint character\n\t\telse\n\t\t\tif tty\n\t\t\t\tprint character.colorize(:#{t})#{(i.split("_").length >= 2) ? ("" + i.gsub(q, "").gsub("_", ".")) : "" }\n\t\t\telse\n\t\t\t#{case i; when /bold|underline/; tags = ""; if i.match /bold/; tags += "<b>"; end; if i.match /underline/; tags += "<u>";end;"\tprint \"#{tags}\#{character}#{tags.gsub("<", "</") }\""; end}\n\t\t\tend\n\t\tend\n\tend\n\n\texit 0\nend" + "\n" * 2; end )' > /dev/null 2>>function ; cat function()
|
6
|
-
# For colors ruby -e 'require "colored"; puts "".colors' | t '([i, i + "_bold", i + "_underline", i + "_bold_underline"].each do |i| warn "# It is really handy to have utilities like these.\ndef " + i + "()\n\ttty = STDIN.tty?\n\n\n\tSTDIN.each_char do |character|\n\t\tif character.whitespace?\n\t\t\tprint character\n\t\telse\n\t\t\tif tty\n\t\t\t\tprint character.colorize(:#{t})#{(i.split("_").length >= 2) ? ("" + i.gsub(q, "").gsub("_", ".")) : "" }\n\t\t\telse\n\t\t\t#{case i; when /bold|underline/; tags = ""; if i.match /bold/; tags += "<b>"; end; if i.match /underline/; tags += "<u>";end;"\tprint \"#{tags}\#{character}#{tags.gsub("<", "</") }\""; end}\n\t\t\tend\n\t\tend\n\tend\nend" + "\n" * 2; end )' > /dev/null 2>>functions()
|
7
|
-
|
8
|
-
require "file_utils"
|
9
|
-
require "json"
|
10
|
-
|
11
|
-
include FileUtils
|
12
|
-
require "colorize"
|
13
|
-
|
14
|
-
def rgsub(one, two)
|
15
|
-
one_d = one.dump
|
16
|
-
two_d = two.dump
|
17
|
-
|
18
|
-
tot_changes = 0
|
19
|
-
|
20
|
-
`find . -type f`.strip.each_line do |line|
|
21
|
-
if line.starts_with? "./"
|
22
|
-
line = line[2..]
|
23
|
-
end
|
24
|
-
next if line.starts_with?('.')
|
25
|
-
|
26
|
-
line = line.chomp
|
27
|
-
|
28
|
-
tot_changes += 1
|
29
|
-
matches = 0
|
30
|
-
text = File.read(line)
|
31
|
-
|
32
|
-
if text.valid_encoding?
|
33
|
-
# puts "VALID #{line}"
|
34
|
-
else
|
35
|
-
# puts "SKIP #{line}"
|
36
|
-
next
|
37
|
-
end
|
38
|
-
|
39
|
-
# next
|
40
|
-
|
41
|
-
text = text.gsub(one) do
|
42
|
-
matches += 1
|
43
|
-
two
|
44
|
-
end
|
45
|
-
next if matches.zero?
|
46
|
-
|
47
|
-
puts "#{tot_changes}. #{matches} rep for #{line} #{one_d} => #{two_d}"
|
48
|
-
File.write line, text
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
def lines()
|
53
|
-
if !STDIN.tty?
|
54
|
-
puts STDIN.gets_to_end.count("\n")
|
55
|
-
else
|
56
|
-
res = `find .`.count("\n") - 1
|
57
|
-
puts res
|
58
|
-
end
|
59
|
-
|
60
|
-
exit 0
|
61
|
-
end
|
62
|
-
|
63
|
-
def args(arg1)
|
64
|
-
sections = Process.parse_arguments(arg1)
|
65
|
-
program, args = sections[0], sections[1..]
|
66
|
-
|
67
|
-
sections = Process.parse_arguments(arg1)
|
68
|
-
|
69
|
-
program = Process.find_executable(program)
|
70
|
-
if program.nil?
|
71
|
-
puts "Can't find program #{arg1}"
|
72
|
-
raise "Error"
|
73
|
-
end
|
74
|
-
|
75
|
-
lines = STDIN.gets_to_end.strip
|
76
|
-
lines = lines.split "\n"
|
77
|
-
times = (lines.size % 2000000 == 0) ? 2 : 1
|
78
|
-
|
79
|
-
times += lines.size // 2000000
|
80
|
-
n = 0
|
81
|
-
times.times do
|
82
|
-
prog_args = args
|
83
|
-
|
84
|
-
prog_args += lines[n..(n + 2000000 - 1)]; n += 2000000
|
85
|
-
|
86
|
-
if (p = Process.fork).nil?
|
87
|
-
Process.exec(
|
88
|
-
program,
|
89
|
-
prog_args
|
90
|
-
)
|
91
|
-
else
|
92
|
-
p.wait
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
exit 0
|
97
|
-
end
|
98
|
-
|
99
|
-
def copy()
|
100
|
-
command = "/usr/bin/xclip"
|
101
|
-
args = ["-selection", "c"]
|
102
|
-
Process.run(command, args, output: STDOUT) do |file|
|
103
|
-
file.input.print STDIN.gets_to_end
|
104
|
-
end
|
105
|
-
exit 0
|
106
|
-
end
|
107
|
-
|
108
|
-
def mul()
|
109
|
-
t = STDIN.read_line.to_f64
|
110
|
-
|
111
|
-
i = 0f64; STDIN.each_line do |line|
|
112
|
-
t *= line.to_f64
|
113
|
-
end
|
114
|
-
|
115
|
-
puts t
|
116
|
-
|
117
|
-
exit 0
|
118
|
-
end
|
119
|
-
|
120
|
-
def add()
|
121
|
-
t = STDIN.read_line.to_f64
|
122
|
-
|
123
|
-
i = 0f64; STDIN.each_line do |line|
|
124
|
-
t += line.to_f64
|
125
|
-
end
|
126
|
-
|
127
|
-
puts t
|
128
|
-
|
129
|
-
exit 0
|
130
|
-
end
|
131
|
-
|
132
|
-
def div()
|
133
|
-
t = STDIN.read_line.to_f64
|
134
|
-
|
135
|
-
i = 0f64; STDIN.each_line do |line|
|
136
|
-
t /= line.to_f64
|
137
|
-
end
|
138
|
-
|
139
|
-
puts t
|
140
|
-
|
141
|
-
exit 0
|
142
|
-
end
|
143
|
-
|
144
|
-
def sub()
|
145
|
-
t = STDIN.read_line.to_f64
|
146
|
-
|
147
|
-
i = 0f64; STDIN.each_line do |line|
|
148
|
-
t -= line.to_f64
|
149
|
-
end
|
150
|
-
|
151
|
-
puts t
|
152
|
-
|
153
|
-
exit 0
|
154
|
-
end
|
155
|
-
|
156
|
-
def floor()
|
157
|
-
puts STDIN.read_line.to_f64.to_i64
|
158
|
-
|
159
|
-
exit 0
|
160
|
-
end
|
161
|
-
|
162
|
-
def abs()
|
163
|
-
STDIN.each_line do |l|
|
164
|
-
l = l.to_f64.abs
|
165
|
-
puts l
|
166
|
-
end; exit 0
|
167
|
-
end
|
168
|
-
|
169
|
-
def dump()
|
170
|
-
puts STDIN.gets_to_end.dump
|
171
|
-
exit 0
|
172
|
-
end
|
173
|
-
|
174
|
-
def undump()
|
175
|
-
puts JSON.parse(STDIN.gets_to_end)
|
176
|
-
|
177
|
-
exit 0
|
178
|
-
end
|
179
|
-
|
180
|
-
def exp()
|
181
|
-
t = STDIN.read_line.to_f64
|
182
|
-
|
183
|
-
STDIN.each_line do |line|
|
184
|
-
t **= line.to_f64
|
185
|
-
end
|
186
|
-
|
187
|
-
puts t; exit 0
|
188
|
-
end
|
189
|
-
|
190
|
-
def nth(arg1)
|
191
|
-
end_ = arg1.to_u64
|
192
|
-
i = 0u64; STDIN.each_line do |line|
|
193
|
-
i += 1
|
194
|
-
if i == end_
|
195
|
-
puts line
|
196
|
-
break
|
197
|
-
end
|
198
|
-
end
|
199
|
-
exit 0
|
200
|
-
end
|
201
|
-
|
202
|
-
def last_nth(arg1)
|
203
|
-
end_ = arg1.to_u64
|
204
|
-
i = 0u64; STDIN.gets_to_end.split("\n").reverse_each do |line|
|
205
|
-
i += 1
|
206
|
-
if i == end_
|
207
|
-
puts line
|
208
|
-
break
|
209
|
-
end
|
210
|
-
end
|
211
|
-
exit 0
|
212
|
-
end
|
213
|
-
|
214
|
-
def gsubip(arg1, arg2, arg3)
|
215
|
-
regex = Regex.new(arg1)
|
216
|
-
text = File.read(arg3).gsub(/#{arg1}/m, arg2)
|
217
|
-
File.open(t = File.tempname("coreutils", "_tmp"), "w", File.info(arg3).permissions) do |h|
|
218
|
-
h.print text
|
219
|
-
end
|
220
|
-
begin
|
221
|
-
mv t, arg3
|
222
|
-
rescue
|
223
|
-
rm t
|
224
|
-
end
|
225
|
-
exit 0
|
226
|
-
end
|
227
|
-
|
228
|
-
def rip(arg1, arg2, arg3)
|
229
|
-
text = File.read(arg3).gsub(arg1, arg2)
|
230
|
-
File.open(t = File.tempname("coreutils", "_tmp"), "w", File.info(arg3).permissions) do |h|
|
231
|
-
h.print text
|
232
|
-
end
|
233
|
-
begin
|
234
|
-
mv t, arg3
|
235
|
-
rescue
|
236
|
-
rm t
|
237
|
-
end
|
238
|
-
exit 0
|
239
|
-
end
|
240
|
-
|
241
|
-
def gsub(arg1, arg2)
|
242
|
-
print STDIN.gets_to_end.gsub(/#{arg1}/m, arg2)
|
243
|
-
exit 0
|
244
|
-
end
|
245
|
-
|
246
|
-
def rnip(arg1, arg2)
|
247
|
-
print STDIN.gets_to_end.gsub arg1, arg2
|
248
|
-
exit 0
|
249
|
-
end
|
250
|
-
|
251
|
-
def selectlines()
|
252
|
-
STDIN.each_line do |line|
|
253
|
-
if line.strip.size > 0
|
254
|
-
puts line
|
255
|
-
end
|
256
|
-
end
|
257
|
-
end
|
258
|
-
|
259
|
-
# It is really handy to have utilities like these.
|
260
|
-
def black()
|
261
|
-
tty = STDOUT.tty?
|
262
|
-
|
263
|
-
STDIN.each_char do |character|
|
264
|
-
if character.whitespace?
|
265
|
-
print character
|
266
|
-
else
|
267
|
-
if tty
|
268
|
-
print character.colorize(:black)
|
269
|
-
else
|
270
|
-
print character
|
271
|
-
end
|
272
|
-
end
|
273
|
-
end
|
274
|
-
|
275
|
-
exit 0
|
276
|
-
end
|
277
|
-
|
278
|
-
# It is really handy to have utilities like these.
|
279
|
-
def underline()
|
280
|
-
tty = STDOUT.tty?
|
281
|
-
|
282
|
-
STDIN.each_char do |character|
|
283
|
-
if character.whitespace?
|
284
|
-
print character
|
285
|
-
else
|
286
|
-
if tty
|
287
|
-
print character.colorize.mode(:underline)
|
288
|
-
else
|
289
|
-
print "<u>#{character}</u>"
|
290
|
-
end
|
291
|
-
end
|
292
|
-
end
|
293
|
-
|
294
|
-
exit 0
|
295
|
-
end
|
296
|
-
|
297
|
-
def bold()
|
298
|
-
tty = STDOUT.tty?
|
299
|
-
|
300
|
-
STDIN.each_char do |character|
|
301
|
-
if character.whitespace?
|
302
|
-
print character
|
303
|
-
else
|
304
|
-
if tty
|
305
|
-
print character.colorize.mode(:bold)
|
306
|
-
else
|
307
|
-
print "<b>#{character}</b>"
|
308
|
-
end
|
309
|
-
end
|
310
|
-
end
|
311
|
-
|
312
|
-
exit 0
|
313
|
-
end
|
314
|
-
|
315
|
-
# It is really handy to have utilities like these.
|
316
|
-
def black_bold()
|
317
|
-
tty = STDOUT.tty?
|
318
|
-
|
319
|
-
STDIN.each_char do |character|
|
320
|
-
if character.whitespace?
|
321
|
-
print character
|
322
|
-
else
|
323
|
-
if tty
|
324
|
-
print character.colorize(:black).bold
|
325
|
-
else
|
326
|
-
print "<b>#{character}</b>"
|
327
|
-
end
|
328
|
-
end
|
329
|
-
end
|
330
|
-
|
331
|
-
exit 0
|
332
|
-
end
|
333
|
-
|
334
|
-
# It is really handy to have utilities like these.
|
335
|
-
def black_underline()
|
336
|
-
tty = STDOUT.tty?
|
337
|
-
|
338
|
-
STDIN.each_char do |character|
|
339
|
-
if character.whitespace?
|
340
|
-
print character
|
341
|
-
else
|
342
|
-
if tty
|
343
|
-
print character.colorize(:black).underline
|
344
|
-
else
|
345
|
-
print "<u>#{character}</u>"
|
346
|
-
end
|
347
|
-
end
|
348
|
-
end
|
349
|
-
|
350
|
-
exit 0
|
351
|
-
end
|
352
|
-
|
353
|
-
# It is really handy to have utilities like these.
|
354
|
-
def black_bold_underline()
|
355
|
-
tty = STDOUT.tty?
|
356
|
-
|
357
|
-
STDIN.each_char do |character|
|
358
|
-
if character.whitespace?
|
359
|
-
print character
|
360
|
-
else
|
361
|
-
if tty
|
362
|
-
print character.colorize(:black).bold.underline
|
363
|
-
else
|
364
|
-
print "<b><u>#{character}</b></u>"
|
365
|
-
end
|
366
|
-
end
|
367
|
-
end
|
368
|
-
|
369
|
-
exit 0
|
370
|
-
end
|
371
|
-
|
372
|
-
# It is really handy to have utilities like these.
|
373
|
-
def cyan()
|
374
|
-
tty = STDOUT.tty?
|
375
|
-
|
376
|
-
STDIN.each_char do |character|
|
377
|
-
if character.whitespace?
|
378
|
-
print character
|
379
|
-
else
|
380
|
-
if tty
|
381
|
-
print character.colorize(:cyan)
|
382
|
-
else
|
383
|
-
print character
|
384
|
-
end
|
385
|
-
end
|
386
|
-
end
|
387
|
-
|
388
|
-
exit 0
|
389
|
-
end
|
390
|
-
|
391
|
-
# It is really handy to have utilities like these.
|
392
|
-
def cyan_bold()
|
393
|
-
tty = STDOUT.tty?
|
394
|
-
|
395
|
-
STDIN.each_char do |character|
|
396
|
-
if character.whitespace?
|
397
|
-
print character
|
398
|
-
else
|
399
|
-
if tty
|
400
|
-
print character.colorize(:cyan).bold
|
401
|
-
else
|
402
|
-
print "<b>#{character}</b>"
|
403
|
-
end
|
404
|
-
end
|
405
|
-
end
|
406
|
-
|
407
|
-
exit 0
|
408
|
-
end
|
409
|
-
|
410
|
-
# It is really handy to have utilities like these.
|
411
|
-
def cyan_underline()
|
412
|
-
tty = STDOUT.tty?
|
413
|
-
|
414
|
-
STDIN.each_char do |character|
|
415
|
-
if character.whitespace?
|
416
|
-
print character
|
417
|
-
else
|
418
|
-
if tty
|
419
|
-
print character.colorize(:cyan).underline
|
420
|
-
else
|
421
|
-
print "<u>#{character}</u>"
|
422
|
-
end
|
423
|
-
end
|
424
|
-
end
|
425
|
-
|
426
|
-
exit 0
|
427
|
-
end
|
428
|
-
|
429
|
-
# It is really handy to have utilities like these.
|
430
|
-
def cyan_bold_underline()
|
431
|
-
tty = STDOUT.tty?
|
432
|
-
|
433
|
-
STDIN.each_char do |character|
|
434
|
-
if character.whitespace?
|
435
|
-
print character
|
436
|
-
else
|
437
|
-
if tty
|
438
|
-
print character.colorize(:cyan).bold.underline
|
439
|
-
else
|
440
|
-
print "<b><u>#{character}</b></u>"
|
441
|
-
end
|
442
|
-
end
|
443
|
-
end
|
444
|
-
|
445
|
-
exit 0
|
446
|
-
end
|
447
|
-
|
448
|
-
# It is really handy to have utilities like these.
|
449
|
-
def cyan()
|
450
|
-
tty = STDOUT.tty?
|
451
|
-
|
452
|
-
STDIN.each_char do |character|
|
453
|
-
if character.whitespace?
|
454
|
-
print character
|
455
|
-
else
|
456
|
-
if tty
|
457
|
-
print character.colorize(:cyan)
|
458
|
-
else
|
459
|
-
print character
|
460
|
-
end
|
461
|
-
end
|
462
|
-
end
|
463
|
-
|
464
|
-
exit 0
|
465
|
-
end
|
466
|
-
|
467
|
-
# It is really handy to have utilities like these.
|
468
|
-
def cyan_bold()
|
469
|
-
tty = STDOUT.tty?
|
470
|
-
|
471
|
-
STDIN.each_char do |character|
|
472
|
-
if character.whitespace?
|
473
|
-
print character
|
474
|
-
else
|
475
|
-
if tty
|
476
|
-
print character.colorize(:cyan).bold
|
477
|
-
else
|
478
|
-
print "<b>#{character}</b>"
|
479
|
-
end
|
480
|
-
end
|
481
|
-
end
|
482
|
-
|
483
|
-
exit 0
|
484
|
-
end
|
485
|
-
|
486
|
-
# It is really handy to have utilities like these.
|
487
|
-
def cyan_underline()
|
488
|
-
tty = STDOUT.tty?
|
489
|
-
|
490
|
-
STDIN.each_char do |character|
|
491
|
-
if character.whitespace?
|
492
|
-
print character
|
493
|
-
else
|
494
|
-
if tty
|
495
|
-
print character.colorize(:cyan).underline
|
496
|
-
else
|
497
|
-
print "<u>#{character}</u>"
|
498
|
-
end
|
499
|
-
end
|
500
|
-
end
|
501
|
-
|
502
|
-
exit 0
|
503
|
-
end
|
504
|
-
|
505
|
-
# It is really handy to have utilities like these.
|
506
|
-
def cyan_bold_underline()
|
507
|
-
tty = STDOUT.tty?
|
508
|
-
|
509
|
-
STDIN.each_char do |character|
|
510
|
-
if character.whitespace?
|
511
|
-
print character
|
512
|
-
else
|
513
|
-
if tty
|
514
|
-
print character.colorize(:cyan).bold.underline
|
515
|
-
else
|
516
|
-
print "<b><u>#{character}</b></u>"
|
517
|
-
end
|
518
|
-
end
|
519
|
-
end
|
520
|
-
|
521
|
-
exit 0
|
522
|
-
end
|
523
|
-
|
524
|
-
# It is really handy to have utilities like these.
|
525
|
-
def cyan()
|
526
|
-
tty = STDOUT.tty?
|
527
|
-
|
528
|
-
STDIN.each_char do |character|
|
529
|
-
if character.whitespace?
|
530
|
-
print character
|
531
|
-
else
|
532
|
-
if tty
|
533
|
-
print character.colorize(:cyan)
|
534
|
-
else
|
535
|
-
print character
|
536
|
-
end
|
537
|
-
end
|
538
|
-
end
|
539
|
-
|
540
|
-
exit 0
|
541
|
-
end
|
542
|
-
|
543
|
-
# It is really handy to have utilities like these.
|
544
|
-
def cyan_bold()
|
545
|
-
tty = STDOUT.tty?
|
546
|
-
|
547
|
-
STDIN.each_char do |character|
|
548
|
-
if character.whitespace?
|
549
|
-
print character
|
550
|
-
else
|
551
|
-
if tty
|
552
|
-
print character.colorize(:cyan).bold
|
553
|
-
else
|
554
|
-
print "<b>#{character}</b>"
|
555
|
-
end
|
556
|
-
end
|
557
|
-
end
|
558
|
-
|
559
|
-
exit 0
|
560
|
-
end
|
561
|
-
|
562
|
-
# It is really handy to have utilities like these.
|
563
|
-
def cyan_underline()
|
564
|
-
tty = STDOUT.tty?
|
565
|
-
|
566
|
-
STDIN.each_char do |character|
|
567
|
-
if character.whitespace?
|
568
|
-
print character
|
569
|
-
else
|
570
|
-
if tty
|
571
|
-
print character.colorize(:cyan).underline
|
572
|
-
else
|
573
|
-
print "<u>#{character}</u>"
|
574
|
-
end
|
575
|
-
end
|
576
|
-
end
|
577
|
-
|
578
|
-
exit 0
|
579
|
-
end
|
580
|
-
|
581
|
-
# It is really handy to have utilities like these.
|
582
|
-
def cyan_bold_underline()
|
583
|
-
tty = STDOUT.tty?
|
584
|
-
|
585
|
-
STDIN.each_char do |character|
|
586
|
-
if character.whitespace?
|
587
|
-
print character
|
588
|
-
else
|
589
|
-
if tty
|
590
|
-
print character.colorize(:cyan).bold.underline
|
591
|
-
else
|
592
|
-
print "<b><u>#{character}</b></u>"
|
593
|
-
end
|
594
|
-
end
|
595
|
-
end
|
596
|
-
|
597
|
-
exit 0
|
598
|
-
end
|
599
|
-
|
600
|
-
# It is really handy to have utilities like these.
|
601
|
-
def magenta()
|
602
|
-
tty = STDOUT.tty?
|
603
|
-
|
604
|
-
STDIN.each_char do |character|
|
605
|
-
if character.whitespace?
|
606
|
-
print character
|
607
|
-
else
|
608
|
-
if tty
|
609
|
-
print character.colorize(:magenta)
|
610
|
-
else
|
611
|
-
print character
|
612
|
-
end
|
613
|
-
end
|
614
|
-
end
|
615
|
-
|
616
|
-
exit 0
|
617
|
-
end
|
618
|
-
|
619
|
-
# It is really handy to have utilities like these.
|
620
|
-
def magenta_bold()
|
621
|
-
tty = STDOUT.tty?
|
622
|
-
|
623
|
-
STDIN.each_char do |character|
|
624
|
-
if character.whitespace?
|
625
|
-
print character
|
626
|
-
else
|
627
|
-
if tty
|
628
|
-
print character.colorize(:magenta).bold
|
629
|
-
else
|
630
|
-
print "<b>#{character}</b>"
|
631
|
-
end
|
632
|
-
end
|
633
|
-
end
|
634
|
-
|
635
|
-
exit 0
|
636
|
-
end
|
637
|
-
|
638
|
-
# It is really handy to have utilities like these.
|
639
|
-
def magenta_underline()
|
640
|
-
tty = STDOUT.tty?
|
641
|
-
|
642
|
-
STDIN.each_char do |character|
|
643
|
-
if character.whitespace?
|
644
|
-
print character
|
645
|
-
else
|
646
|
-
if tty
|
647
|
-
print character.colorize(:magenta).underline
|
648
|
-
else
|
649
|
-
print "<u>#{character}</u>"
|
650
|
-
end
|
651
|
-
end
|
652
|
-
end
|
653
|
-
|
654
|
-
exit 0
|
655
|
-
end
|
656
|
-
|
657
|
-
# It is really handy to have utilities like these.
|
658
|
-
def magenta_bold_underline()
|
659
|
-
tty = STDOUT.tty?
|
660
|
-
|
661
|
-
STDIN.each_char do |character|
|
662
|
-
if character.whitespace?
|
663
|
-
print character
|
664
|
-
else
|
665
|
-
if tty
|
666
|
-
print character.colorize(:magenta).bold.underline
|
667
|
-
else
|
668
|
-
print "<b><u>#{character}</b></u>"
|
669
|
-
end
|
670
|
-
end
|
671
|
-
end
|
672
|
-
|
673
|
-
exit 0
|
674
|
-
end
|
675
|
-
|
676
|
-
# It is really handy to have utilities like these.
|
677
|
-
def red()
|
678
|
-
tty = STDOUT.tty?
|
679
|
-
|
680
|
-
STDIN.each_char do |character|
|
681
|
-
if character.whitespace?
|
682
|
-
print character
|
683
|
-
else
|
684
|
-
if tty
|
685
|
-
print character.colorize(:red)
|
686
|
-
else
|
687
|
-
print character
|
688
|
-
end
|
689
|
-
end
|
690
|
-
end
|
691
|
-
|
692
|
-
exit 0
|
693
|
-
end
|
694
|
-
|
695
|
-
# It is really handy to have utilities like these.
|
696
|
-
def red_bold()
|
697
|
-
tty = STDOUT.tty?
|
698
|
-
|
699
|
-
STDIN.each_char do |character|
|
700
|
-
if character.whitespace?
|
701
|
-
print character
|
702
|
-
else
|
703
|
-
if tty
|
704
|
-
print character.colorize(:red).bold
|
705
|
-
else
|
706
|
-
print "<b>#{character}</b>"
|
707
|
-
end
|
708
|
-
end
|
709
|
-
end
|
710
|
-
|
711
|
-
exit 0
|
712
|
-
end
|
713
|
-
|
714
|
-
# It is really handy to have utilities like these.
|
715
|
-
def red_underline()
|
716
|
-
tty = STDOUT.tty?
|
717
|
-
|
718
|
-
STDIN.each_char do |character|
|
719
|
-
if character.whitespace?
|
720
|
-
print character
|
721
|
-
else
|
722
|
-
if tty
|
723
|
-
print character.colorize(:red).underline
|
724
|
-
else
|
725
|
-
print "<u>#{character}</u>"
|
726
|
-
end
|
727
|
-
end
|
728
|
-
end
|
729
|
-
|
730
|
-
exit 0
|
731
|
-
end
|
732
|
-
|
733
|
-
# It is really handy to have utilities like these.
|
734
|
-
def red_bold_underline()
|
735
|
-
tty = STDOUT.tty?
|
736
|
-
|
737
|
-
STDIN.each_char do |character|
|
738
|
-
if character.whitespace?
|
739
|
-
print character
|
740
|
-
else
|
741
|
-
if tty
|
742
|
-
print character.colorize(:red).bold.underline
|
743
|
-
else
|
744
|
-
print "<b><u>#{character}</b></u>"
|
745
|
-
end
|
746
|
-
end
|
747
|
-
end
|
748
|
-
|
749
|
-
exit 0
|
750
|
-
end
|
751
|
-
|
752
|
-
# It is really handy to have utilities like these.
|
753
|
-
def white()
|
754
|
-
tty = STDOUT.tty?
|
755
|
-
|
756
|
-
STDIN.each_char do |character|
|
757
|
-
if character.whitespace?
|
758
|
-
print character
|
759
|
-
else
|
760
|
-
if tty
|
761
|
-
print character.colorize(:white)
|
762
|
-
else
|
763
|
-
print character
|
764
|
-
end
|
765
|
-
end
|
766
|
-
end
|
767
|
-
|
768
|
-
exit 0
|
769
|
-
end
|
770
|
-
|
771
|
-
# It is really handy to have utilities like these.
|
772
|
-
def white_bold()
|
773
|
-
tty = STDOUT.tty?
|
774
|
-
|
775
|
-
STDIN.each_char do |character|
|
776
|
-
if character.whitespace?
|
777
|
-
print character
|
778
|
-
else
|
779
|
-
if tty
|
780
|
-
print character.colorize(:white).bold
|
781
|
-
else
|
782
|
-
print "<b>#{character}</b>"
|
783
|
-
end
|
784
|
-
end
|
785
|
-
end
|
786
|
-
|
787
|
-
exit 0
|
788
|
-
end
|
789
|
-
|
790
|
-
# It is really handy to have utilities like these.
|
791
|
-
def white_underline()
|
792
|
-
tty = STDOUT.tty?
|
793
|
-
|
794
|
-
STDIN.each_char do |character|
|
795
|
-
if character.whitespace?
|
796
|
-
print character
|
797
|
-
else
|
798
|
-
if tty
|
799
|
-
print character.colorize(:white).underline
|
800
|
-
else
|
801
|
-
print "<u>#{character}</u>"
|
802
|
-
end
|
803
|
-
end
|
804
|
-
end
|
805
|
-
|
806
|
-
exit 0
|
807
|
-
end
|
808
|
-
|
809
|
-
# It is really handy to have utilities like these.
|
810
|
-
def white_bold_underline()
|
811
|
-
tty = STDOUT.tty?
|
812
|
-
|
813
|
-
STDIN.each_char do |character|
|
814
|
-
if character.whitespace?
|
815
|
-
print character
|
816
|
-
else
|
817
|
-
if tty
|
818
|
-
print character.colorize(:white).bold.underline
|
819
|
-
else
|
820
|
-
print "<b><u>#{character}</b></u>"
|
821
|
-
end
|
822
|
-
end
|
823
|
-
end
|
824
|
-
|
825
|
-
exit 0
|
826
|
-
end
|
827
|
-
|
828
|
-
# It is really handy to have utilities like these.
|
829
|
-
def yellow()
|
830
|
-
tty = STDOUT.tty?
|
831
|
-
|
832
|
-
STDIN.each_char do |character|
|
833
|
-
if character.whitespace?
|
834
|
-
print character
|
835
|
-
else
|
836
|
-
if tty
|
837
|
-
print character.colorize(:yellow)
|
838
|
-
else
|
839
|
-
print character
|
840
|
-
end
|
841
|
-
end
|
842
|
-
end
|
843
|
-
|
844
|
-
exit 0
|
845
|
-
end
|
846
|
-
|
847
|
-
# It is really handy to have utilities like these.
|
848
|
-
def yellow_bold()
|
849
|
-
tty = STDOUT.tty?
|
850
|
-
|
851
|
-
STDIN.each_char do |character|
|
852
|
-
if character.whitespace?
|
853
|
-
print character
|
854
|
-
else
|
855
|
-
if tty
|
856
|
-
print character.colorize(:yellow).bold
|
857
|
-
else
|
858
|
-
print "<b>#{character}</b>"
|
859
|
-
end
|
860
|
-
end
|
861
|
-
end
|
862
|
-
|
863
|
-
exit 0
|
864
|
-
end
|
865
|
-
|
866
|
-
# It is really handy to have utilities like these.
|
867
|
-
def yellow_underline()
|
868
|
-
tty = STDOUT.tty?
|
869
|
-
|
870
|
-
STDIN.each_char do |character|
|
871
|
-
if character.whitespace?
|
872
|
-
print character
|
873
|
-
else
|
874
|
-
if tty
|
875
|
-
print character.colorize(:yellow).underline
|
876
|
-
else
|
877
|
-
print "<u>#{character}</u>"
|
878
|
-
end
|
879
|
-
end
|
880
|
-
end
|
881
|
-
|
882
|
-
exit 0
|
883
|
-
end
|
884
|
-
|
885
|
-
# It is really handy to have utilities like these.
|
886
|
-
def yellow_bold_underline()
|
887
|
-
tty = STDOUT.tty?
|
888
|
-
|
889
|
-
STDIN.each_char do |character|
|
890
|
-
if character.whitespace?
|
891
|
-
print character
|
892
|
-
else
|
893
|
-
if tty
|
894
|
-
print character.colorize(:yellow).bold.underline
|
895
|
-
else
|
896
|
-
print "<b><u>#{character}</b></u>"
|
897
|
-
end
|
898
|
-
end
|
899
|
-
end
|
900
|
-
|
901
|
-
exit 0
|
902
|
-
end
|
903
|
-
|
904
|
-
def swap(file1, file2)
|
905
|
-
[file1, file2].each do |f|
|
906
|
-
File.exists?(f) || abort("No file named #{f.dump}".colorize(:red))
|
907
|
-
end
|
908
|
-
t = File.tempname("coreutils", "_tmp")
|
909
|
-
|
910
|
-
mv file1, t
|
911
|
-
mv file2, file1
|
912
|
-
mv t, file2
|
913
|
-
end
|
914
|
-
|
915
|
-
def prepend(file)
|
916
|
-
file_data = File.read(file)
|
917
|
-
new_data = STDIN.gets_to_end
|
918
|
-
File.open(t = File.tempname("coreutils", "_tmp"), "w", File.info(file).permissions) do |h|
|
919
|
-
h << new_data + file_data
|
920
|
-
end
|
921
|
-
|
922
|
-
begin
|
923
|
-
mv t, file
|
924
|
-
rescue
|
925
|
-
rm t
|
926
|
-
end
|
927
|
-
end
|
928
|
-
|
929
|
-
def append(file)
|
930
|
-
file_data = File.read(file)
|
931
|
-
new_data = STDIN.gets_to_end
|
932
|
-
File.open(t = File.tempname("coreutils", "_tmp"), "w", File.info(file).permissions) do |h|
|
933
|
-
h << file_data + new_data
|
934
|
-
end
|
935
|
-
begin
|
936
|
-
mv t, file
|
937
|
-
rescue
|
938
|
-
rm t
|
939
|
-
end
|
940
|
-
end
|
941
|
-
|
942
|
-
class Funcs
|
943
|
-
def self.bold_(text)
|
944
|
-
text = text.to_s
|
945
|
-
# text += two.to_s
|
946
|
-
|
947
|
-
if STDOUT.tty?
|
948
|
-
return text.colorize.bold.to_s
|
949
|
-
else
|
950
|
-
return "<b>" + text + "</b>"
|
951
|
-
end
|
952
|
-
end
|
953
|
-
|
954
|
-
def self.argument_data_(program)
|
955
|
-
if STDOUT.tty? == false
|
956
|
-
text = "<!-- Generated by the functions file --><div style='border-radius: 50px; border: 10px dotted cyan'>\n"
|
957
|
-
else
|
958
|
-
text = ""
|
959
|
-
end
|
960
|
-
|
961
|
-
array = {
|
962
|
-
"close" => ["program", "[program] [arguments]", "\u201CClose\u201D is a simple program that closes \u201CEmerald Browser,\u201D a new web browser based on the same engine as Chrome. Currently, Emerald Browser only works on Linux and Mac (Or Windows with Windows Subsystem for Linux or a Virtual Machine, but getting it to work might be tricky).\n\u201Cclose\u201D closes the Web Browser, which is normally full-screen.\nMore accurately, it kills the browser, and all other copies of Emerald Browser.\nSince they are normally full screen, presumably the user would only have one instance of the browser open.\nThe browser can have multiple panes (kind of like tabs) open, depending on how the browser is compiled.\nThe browser can also be transparent, depending on how it is compiled.\n\u201CClose\u201D is supposed to be used in tandem with \u201Copen,\u201D which is a command line tool to open the browser.\nopen [query] ----> [query] gets searched in google, and then opened\nWhen you are done, you can do\nclose\nWhich closes the browser. It is a simple command.\nCurrently, Emerald Browser is incomplete. A program exists in this software project that allows you to open up multiple browser tabs (one or more tabs) simply by speaking.\nVoice recognition would google the multiple sites that you say in your query (separated by \u201Cand\u201D)\n\u201Cfacebook and youtube and google\u201D\nIt's hard to get more direct than that!\nEmerald browser has a built in the top. The terminal is the navigation bar.\nSome more work needs to be put into the browser.\nCurrently, new tabs can't be opened, which might be a dealbreaker for some people.\nCurrently, content, like YouTube videos, can't be made fullscreen.\n\nIf anyone wants to contribute, feel free to! \u{1F642}"],
|
963
|
-
"magenta_bold" => ["program", "[program] [arguments]", ""],
|
964
|
-
"t" => ["program", "[program] [arguments]", "\u201Ct\u201D is incredibly useful.\n\nIt can be used many, many times every day by computer power users.\n\n\nIt is kind of like \u201Csed\u201D, or perl, python or ruby.\n\nIt's the ULTIMATE shell \u201Cglue\u201D tool.\n\nt reads every line from the standard input, and for every line, it evaluates a ruby expression\n\nt a + 2\n\nwould add 2 to every line\n\nNumber automatically get converted to numbers in Ruby.\n\nSo one doesn't have to worry about that.\n\nThe \u201Cvalue\u201D of the line of STDIN is any letter of the alphabet.\n\nSo choose any letter to do operations on and it will work.\n\nYou can also do\n\nt a + 2 if a % 2 == 0\n\nAnd you get a Python list comprehension sort of thing from the command line\n\nIt is a lot simpler and easier than using awk, Ruby, Perl or Python\n\n\nYou could also have loops\n\necho \u201COne line\u201D | t a while true\n\nThe second line, again is a Ruby expression.\n\nYou can have really complex expressions on the second line.\n\nYou can even import modules.\n\n\ncat /usr/share/dict/words | t 'a + \u201C is a good word.\u201D' \n\nThat processes every word in the dictionary, and says that every word \u201Cis a good word.\u201D\n\n\nThere are other programs in this software project like \u201Ct\u201D.\n\n\n\n\n\nBut if you do command line text filtering, t might be the best tool that you will find.\n\n\nSee also\n\ngsub\n\ngsubip"],
|
965
|
-
"google_speak" => ["program", "[program] [arguments]", "Google speak is really useful. It speaks a statement using the Google Translate voice, which is probably the most authoritative and high-quality text-to-speech voice that exists.\n\nIt's kind of like \u201Cespeak\u201D or similar tools, but it is much better.\n\nYou need an internet connection for it to work.\n\nIt is probably limited at 100 characters.\n\n\n\nThere is a \u201Csinging program\u201D, not really a tool, in this software project that gets around that.\n\n\nTODO\n\nMake the alarm clock program in this software project use this voice.\n\n\n\nIt is quite reliable.\n\nIt is probably \u201Cunlimited\u201D.\n\nI haven't had Google block me from using it ever.\n\n\nWhich is a good thing."],
|
966
|
-
"cyan_bold_underline" => ["program", "[program] [arguments]", ""],
|
967
|
-
"red_underline" => ["program", "[program] [arguments]", ""],
|
968
|
-
"red_bold_underline" => ["program", "[program] [arguments]", ""],
|
969
|
-
"swap" => ["program", "[program] [arguments]", "Swaps two files\n\n\nExample\n\n\nswap text1 text2"],
|
970
|
-
"open" => ["program", "[program] [arguments]", "\u201Copen\u201D is a very efficient program that searches a query from google, and then opens it in Emerald Browser.\n\n\nIf you ever want something to \u201Cjust open\u201D, you can use it.\n\n\n\nExample\n\nopen \u201Ccats\u201D\n\n\n\nAn earlier version of open worked like this\n\nopen [site1] [site2] [site3] N\n\n\n\nsite1, site2, and site3 would all be opened, and the top N queries were all shown in different panes\n\n\n\nAn even earlier version of this program used Chrome to open the sites.\n\n\n\n\n\n The current version can open one or more sites.\n\n\nExample\n\n\nopen \u201Ccats\u201D \u201Cdogs\u201D \u201Cfrogs\u201D\n\n\nAll of those queries would open in Emerald Browser.\n\nJust make sure it is compiled in multipane mode if you want to open multiple new sites at the same time.\n\n\nSee also\n\n\n\nemerald-browser\n\nclose"],
|
971
|
-
"sub" => ["program", "[program] [arguments]", "Sub is a simple command line program that subtracts integers.\n\nFor some reason, no simple program did this.\n\nWhich is weird\n\nExample\n\nsub\n(Input)\n10\n3\n1\n\nResult =>\n\n6\n\nExample\n\n (echo 5; echo 2) | sub\n\nResult =>\n\n\n3"],
|
972
|
-
"white" => ["program", "[program] [arguments]", ""],
|
973
|
-
"magenta_underline" => ["program", "[program] [arguments]", ""],
|
974
|
-
"inspire" => ["program", "[program] [arguments]", "Inspire is an inspirational program that can give advice, etc.\n\nNot many programs like it exist.\n\n\n\nIt is graphical."],
|
975
|
-
"quot" => ["program", "[program] [arguments]", "Turns quotes in text into good text and makes text presentable.\n\nExample\n\n$ echo 'Joe said, \"One two three\".' | quot\nJoe said, \u201COne two three.\u201D\n\n\nExample 2\n\nquot < essay\n\n\nExample 3\n\n(Quote the file and output it)\n\nquot text_file"],
|
976
|
-
"speakcat" => ["program", "[program] [arguments]", "Speak cat is a tool like \u201Ccat\u201D, which shows the content of files (technically, it combines the content of files).\n\nBut speak cat also speaks the text.\n\nWhich could be useful in some circumstances.\n\nIt's kind of like \u201Ctee\u201D to your ear."],
|
977
|
-
"gsubip" => ["program", "[program] [arguments]", "gsubip is like gsub, which replaces all instances of a regular expression globally\n\n\n[regular expression 1] [regular expression 2] => result\n\n\nExample\n\n\ngsubip . FOO file\n\n\n\n\nWould make all characters in \u201Cfile\u201D become \u201CFOO\u201D.\n\ngsubip cat dog file\n\nWould make all instances of \u201Ccat\u201D \u201Cdog\u201D\n\n\nIt is much cleaner than \u201Csed\u201D.\n\nYou don't need to have \u201Csed\u201D installed to run this program.\n\n\nIt doesn't read from the standard input\n\nIt takes exactly 3 arguments, no more, no fewer.\n\n\nSee Also\n\n\n\ngsub"],
|
978
|
-
"cyan_underline" => ["program", "[program] [arguments]", ""],
|
979
|
-
"red" => ["program", "[program] [arguments]", ""],
|
980
|
-
"add" => ["program", "[program] [arguments]", "See the sub example\n\n\n\nadd adds integers from the standard input\n\n(echo 1; echo 2; echo 3) | add\n\n\n\nThe result would be 6"],
|
981
|
-
"yellow_underline" => ["program", "[program] [arguments]", ""],
|
982
|
-
"chat_rb" => ["program", "[program] [arguments]", "This program is excellent.\n\nIt's essentially a mix of ChatGPT and a shell, such as bash or ZSH.\n\n\n\n\n\nIt has a bunch of features.\n\n\nIt can display a file or change to a folder just by mentioning it.\n\nIt outputs chatgpt data to an output folder in home folder and copies it to clipboard\n\nTo run a shell command, prefix things with \u201Cc\u201D, such as c gcc....."],
|
983
|
-
"white_bold_underline" => ["program", "[program] [arguments]", ""],
|
984
|
-
"quotes" => ["program", "[program] [arguments]", "Quotes is a list of quotes for `inspire'. It is not a program."],
|
985
|
-
"emerald-browser" => ["program", "[program] [arguments]", "![UCA](./images/S1.png)\n![UCA](./images/S4.png)\n\nEmerald browser is a really powerful new browser\n\nSee README\n\n\nIt works based on panes.\n\nRead the documentation for \u201Copen\u201D, \u201Cclose\u201D and also the README file."],
|
986
|
-
"emoji" => ["program", "[program] [arguments]", "Emoji converts words to emojis from the standard input\n\nIt can also speak the output\n\nIt can also copy the output to your clipboard\n\n\n\nIt is very useful"],
|
987
|
-
"red_bold" => ["program", "[program] [arguments]", ""],
|
988
|
-
"cyan" => ["program", "[program] [arguments]", ""],
|
989
|
-
"black_underline" => ["program", "[program] [arguments]", ""],
|
990
|
-
"cyan_bold" => ["program", "[program] [arguments]", ""],
|
991
|
-
"args" => ["program", "[program] [arguments]", "args is like a better xargs\nargs works properly with spaces in the name of commands\nIt takes exactly one argument\n\nExample\n\nls | args \u201Cmv -t ../f\u201D"],
|
992
|
-
"rip" => ["program", "[program] [arguments]", "rip tool replaces a string, not a regular expression, with another string\n\n\nExample\n\nrip cat dog file"],
|
993
|
-
"clock" => ["program", "[program] [arguments]", "clock is useful\n\nclock is a command line alarm clock\n\nIt wakes you up at 8:14, or at a time specified\n\n\nUsage\n\n\nclock\n\n\nRuns clock\n\n\nclock 15 30\n\nSets an alarm clock for 3:30pm\n\nclock 9 0\n\nSets an alarm clock for 9 in the morning\n\n\nIt uses flite to wake you up\n\nIt speaks with a bunch of voices\n\n\n\n\n\n\n\nTo stop it\n\n\n\nRun this command\n\n\n\nclock stop"],
|
994
|
-
"prepend" => ["program", "[program] [arguments]", "prepend prepends input taken from the standard input to a file\n\nUsage\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nprepend [file]\n\nThis is text to be prepended"],
|
995
|
-
"last_nth" => ["program", "[program] [arguments]", "Last nth gets the last n lines from the standard input"],
|
996
|
-
"communicate" => ["program", "[program] [arguments]", "Communicate is cool.\n\nCommunicate runs a Ruby expression after speaking a prompt (the first argument) and getting your verbal answer (using something unfortunately called \"nerd-dictation\", which is a wrapper around another program which deals with speech recognition) \n\n\nCommunicate allows you to have conversations with your computer, and it is cross platform\n\n\n(Or it hopefully is)\n\ncommunicate 'What is the best color?' 'case text; when /cyan/; puts \"You are right!\"; when /red/; puts \"Red is a bad color\"; end ' \n\n\nThat would be an example of how one could use \"communicate\"\n\nMake sure you have nerd-dictation on your computer\n\nThe name nerd-dictation is absolutely awful, and I have to criticize him for not making it have a better name, but it works."],
|
997
|
-
"yellow_bold_underline" => ["program", "[program] [arguments]", ""],
|
998
|
-
"executable" => ["program", "[program] [arguments]", "Makes all the files in the current directory executable"],
|
999
|
-
"processes" => ["program", "[program] [arguments]", "Processes lists all processes with a certain name\n\n\nFor example\n\n\nprocesses sh\n\nprocesses bash\n\n\nprocesses ruby\n\n\nprocesses gsub"],
|
1000
|
-
"cyan" => ["program", "[program] [arguments]", ""],
|
1001
|
-
"abs" => ["program", "[program] [arguments]", "Abs gets the absolute value of an integer\n\nThe absolute value of a number is the value of that number without its sign\n\n\necho -300 | abs\n\n=> 300\n\n\necho 200 | abs\n\n\n=> 200 \n\n\n(echo -2; echo -10) | sub | abs\n\n\n\n\n=> 12\n\n\nThe last one would do -2 - -10, the result would be -12, and then the absolute value would be computed, and so the result would be 12."],
|
1002
|
-
"translate" => ["program", "[program] [arguments]", "Translate is like super_trans, but it uses google translate\n\nBy default, it translates an argument into all languages\n\nExample\n\n\ntranslate 'I would like to donate.' \n\n\n \n\nYou can also specify specific languages\n\n\nFor example\n\n\ntranslate 'I would like to donate.' fr\n\ntranslate 'I would like to donate.' es"],
|
1003
|
-
"dictate" => ["program", "[program] [arguments]", "Dictate opens web pages in emerald browser, or in any browser (depending on the environment variable set), by you speaking, instead of typing.\n\n\nThere is a mode called c_mode, that allows you to make code from speaking."],
|
1004
|
-
"doc.rb" => ["program", "[program] [arguments]", "#!/usr/bin/env ruby\n# frozen_string_literal: true\n\nbegin\n Dir.chdir '/home/a/democracy/bin'\nrescue StandardError\n nil\nend\n\ndef speak(a)\n puts a.cyan\n require 'shellwords'\n return unless false\n\n system \"espeak \#{a.shellescape}\"\nend\n\n<<~EOF\n speak \"Documenting\"\nEOF\n\nDir.glob('*') do |file|\n case file\n when /DOC|sh$/\n next\n when /YOUTUBE_|LINUX/\n next\n end\n next if File.exist? \"../documentation/\#{file}\"\n\n program = file\n require 'FileUtils'.downcase\n include FileUtils\n\n mkdir_p '../documentation'\n cd '..'\n cd 'documentation'\n\n def get_line\n require 'readline'\n $line = ok_or_no = Readline.readline.strip\n end\n $file = file\n $n = 0\n\n require 'colored'\n\n include FileUtils\n # require \"coloed\n loop do\n cd Dir.home\n cd 'democracy'\n cd 'bin'\n puts \"Enter description of the practical utility of `\#{file}'\"\n\n speak \"\#{file} tool\"\n $doc = $stdin.read\n speak $doc\n speak 'Is this good?'\n\n FileUtils.mkdir_p '../documentation'\n FileUtils.cd '../documentation'\n\n def g\n $n += 1\n return unless get_line.match?(/y|Y/); # speak \"On to the \#{$n}th one\"\n\n # speak \"yes\"\n File.open($file, 'a') do |f|\n puts pwd\n puts $file\n f.puts $doc\n end\n\n raise 'End'\n end\n\n begin\n g\n rescue Object\n break\n end\n\n # puts program\n end\nend"],
|
1005
|
-
"selectlines" => ["program", "[program] [arguments]", "selectlines shows all nonblank lines from the input\n\n\nExample\n\n\ncat file | selectlines\n\n\n\n(echo 2; echo; echo; echo) | selectlines\n\n\n=> 2\n\n\nThe result would be 2, with no blank lines after that"],
|
1006
|
-
"lines" => ["program", "[program] [arguments]", "Lines gets the number of files in the current folder that you are in.\n\n\nIt can also act like \"wc -l\" if you pipe data into it."],
|
1007
|
-
"nth" => ["program", "[program] [arguments]", "Nth gets the nth line from the input"],
|
1008
|
-
"make_server" => ["program", "[program] [arguments]", "make_server is powerful.\n\n\nmake_server takes expressions, either Javascript or C++, and generates a resultant program from that.\n\nThe Javascript mode currently doesn't work.\n\n\n\nNot only is a program made, the resultant program is an entire webserver, that uses FastCGI to run really fast code.\n\n\nThe arguments work in an interesting way.\n\n\nmake_server [function_name] [iterable] [condition, it can be \u201Ctrue\u201D to do the following argument always] [code list separated by semicolons, the last statement is an expression, and is returned by the function] [function_name2] ...\n\n\nYou have to give 4 arguments every time.\n\n\n\nThere was an \u201Cotherwise\u201D mode as an \u201Celse\u201D, but I don't think that's a part of the program anymore.\n\nIt doesn't need to be.\n\n\nYou have to give 4 arguments for each function.\n\n\nSo you can do\n\n\n\nmake_server 4args 4args 4args 4args\n\n\nAnd pass 16 arguments\n\n\nThe \u201Citerable\u201D has to be a list.\n\n\n\n\nWhat is powerful is that it converts JSON into completely native C++. It is very efficient.\n\n\nIt doesn't need to be a JSON expression though.\n\n\nThere is a test file.\n\n\nYou can run the tests and see if it works for you!!\n\n\nYou can also modify the code because it is open source.\n\n\n\n\n\nThe program generates a special array object. It is lightweight and makes arrays act in C++ like arrays act in scripting languages, but much faster.\n\n\nThe array class also has methods to apply things to every element of an array, like surround\n\n\narray.surround(\u201C<element>\u201D, \u201C</element>\u201D)\n\n\nfor example\n\nwould surround all of the elements of array with XML tags and return a new list\n\n\n\nThis program generates a lightweight Object System, with a BasicObject class and an Object Class.\n\n\nYou can subclass these objects.\n\n\n\nYou can have Arrays of the Objects\n\n\n\n\nThe function argument syntax is really powerful.\n\n\nOftentimes people want to iterate through iterables or arrays.\n\nOftentimes people want to check conditions.\n\n\n\n\nPython has list comprehensions.\n\n\nThis is kind of like that, but simpler.\n\n\nYou can have arguments as one argument, separated by \u201C,,\u201D\n\n\nmake_server arg1,,arg2,,arg3,,arg4\n\n\n\n\n\n\n\n\n\nWhat's the point of using a scripting language when you can use C++?\n\n\n\n\n\nThis uses FastCGI, so you can have an ____IDEAL____ webserver.\n\n\nYou can have an IDEAL and very affordable website, that in a sense would be faster than Facebook.\n\n\nFacebook converts PHP to C++ (slow)\n\n\n\nThis produces REAL C++, and it is very fast, almost as fast as possible.\n\n\nNative STL classes are used, like vector.\n\n\nNative STL classes are used, like vector and map\n\n\nDo you not need to run and child processes or do slow, costly things.\n\n\n\n\n\nYou should want IDEAL.\n\n\n\nThis is free software, and is BSD licensed.\n\n\n\n\n\nThe function generation idea allows you to write in 1 line what other people might write in 50 lines.\n\n\n\n\nYou do not need to compromise your ideals.\n\n\n You should want fast, efficient, and memory light programs that are not garbage collected (!!!) and that have reliable performance.\n\n\n C++, as everyone knows, delivers that.\n\n\n\n\n\nYou should also want to not have to write a lot of code to do things.\n\n\nAnd you should also want safe, compiled code that checks things at compile time, so that bugs don't appear at run time.\n\n\n\n This program delivers.\n\n\nIt uses NGINX ( a really, really common webserver) to help with the FastCGI.\n\n\nFastCGI, for the unfamiliar, is like normal CGI, but there aren't child processes.\n\n\n\n\n\nSo the entire server could be written in idealistic C++ .\n\n\n\nThen you just have to think about scaling.\n\n\n\nThere are some relevant links regarding scaling in the \u201Cscaling\u201D file in the democracy project\n\n\n\n\n\n1) Speed\n\n2) Ease of writing code\n\n\n3) Memory usage\n\n\n4) Monetary costs\n\n\n5) Elegance\n\n6) Practicalness\n\n\n\nThose are 6 things.\n\n\n\nYou don't have to sacrifice on those things.\n\n\n\n Contributions on this program would be really appreciated.\n\n\nIt is called \u201Cmake_server\u201D for now.\n\n\n\nThere was also a mode to generate javascript.\n\n\nI have to make that work again.\n\n\nThe entire program is just one file.\n\n\n\n\n\nMy email is gregorycohenvideos@gmail.com"],
|
1009
|
-
"bold" => ["program", "[program] [arguments]", "See other color programs"],
|
1010
|
-
"cyan_bold_underline" => ["program", "[program] [arguments]", ""],
|
1011
|
-
"yellow_bold" => ["program", "[program] [arguments]", ""],
|
1012
|
-
"rgsub" => ["program", "[program] [arguments]", "Recursively replaces text.\n\nVerbosely tells you everything that happens.\n\nNon-regex.\n\nExample\n\nrgsub my_email@site.com my_second_email@site.com\n\n\nWould replace an email recursively in a directory.\n\nIt tries to skip non-text files."],
|
1013
|
-
"foreach" => ["program", "[program] [arguments]", "Reads a bunch of lines\n\n\n\nThen a ruby expression is evaluated as the last line\n\n\nThe result is outputted in an argument.\n\n\nYou can enter /dev/null if you don't want an output file\n\n\n\n\n\n\u201Ct\u201D is better\n\n\n\nSee also\n\n\nt"],
|
1014
|
-
"mul" => ["program", "[program] [arguments]", "Multiply numbers\n\n\necho 1 > file\necho 2 >> file\necho 3 >> file\necho 4 >> file\necho 5 >> file\n\ncat file | mul\n\n\n=> 120"],
|
1015
|
-
"squeeze" => ["program", "[program] [arguments]", "Squeeze is kind of like \u201Csponge\u201D from \u201Cmoreutils\u201D\n\nBut squeeze is different.\n\nSqueeze reads all input, then it prints it back omitting argument 1 line from the front, and argument 2 lines from the back\n\nExample\n\nsqueeze 1 1\n\nThis would omit the first line and the last line\n\nsqueeze 5 3\n\nThis would omit the first 5 lines and the last 3 lines"],
|
1016
|
-
"dump" => ["program", "[program] [arguments]", "Dump surrounds its input with quotes\n\n\nls | dump\n\n=> \u201C....\u201D\n\nUse undump to get the reverse\n\nSee also\n\nundump"],
|
1017
|
-
"white_bold" => ["program", "[program] [arguments]", ""],
|
1018
|
-
"find_housing" => ["program", "[program] [arguments]", "This is a nice tool to find housing with!\n\nIt is a nice, simple command line tool. You enter the minimum and maximum prices, and Kijiji opens with your options."],
|
1019
|
-
"div" => ["program", "[program] [arguments]", "Divides numbers\n\nExample\n\n\n\n\n\n\n(echo 5000; echo 100) | div\n\n\n=> 50"],
|
1020
|
-
"cyan_bold" => ["program", "[program] [arguments]", ""],
|
1021
|
-
"cyan_underline" => ["program", "[program] [arguments]", ""],
|
1022
|
-
"underline" => ["program", "[program] [arguments]", "Underlines text"],
|
1023
|
-
"yellow" => ["program", "[program] [arguments]", ""],
|
1024
|
-
"floor" => ["program", "[program] [arguments]", "Gets the floor of numbers e.g. 21.3 -> 21"],
|
1025
|
-
"big_num" => ["program", "[program] [arguments]", "big_num speaks really big numbers\n\n\nEnter an expression, such as 2 ** 1000, and you'll see the result"],
|
1026
|
-
"cyan_bold" => ["program", "[program] [arguments]", ""],
|
1027
|
-
"emeraldc" => ["program", "[program] [arguments]", "The Ultimate C Preprocessor\n\n\nI'm naming this preprocessor \u201CEmerald C.\u201D\n\n<a href=https://cboard.cprogramming.com/c-programming/181160-hi-i-have-created-some-work-i-think-will-really-valuable-community.html?s=589b5504cd0e3c2dc90e9abd8b66906f>Link</a>\n\n\n\nHowdy!\n\nFirst, let me state that I am very much a perfectionist.\n\n\nC is a wonderful language. C is probably the perfect programming language. It is one of the top two most widely used languages for a reason.\n\n\nNow, there are some problems with it of course, but it's hard to think of a more elegant language than it.\n\n\nIt is the language of systems, the language almost all APIs are written in.\n\n\nIt is the lingua franca of the software world.\n\nPeople try to avoid it, but they needn't.\n\nI think every programmer wants to find out how to do things, or use libraries that make things easier.\n\nMany programmers have done programming, grown dissatisfied, and then make another language. As a result, there are thousands of different languages.\n\n\nWell, recently, I made a preprocessor for C, that makes C incredibly EASY.\n\n\nC is fast and straightforward without it, but it has many features.\n\nIf one runs the command line preprocessor, with the \u201C--features\u201D flag, the program shows all of its features\n\nA Better C\n\nC is a fantastic language. C compiles insanely fast, is the fastest language there is, is very clear, is native to all systems, and is useful for all purposes.\n\nSome people, e.g., Bjarne Stroustrup, consider that C is \u201Cnot good enough\u201D, and make languages like C++ or D (or thousands of others) \n\nThis is not necessary.\n\nThere is no reason to use Python instead of C for \u201Csimple scripting tasks\u201D\n\nSome functions can be used as methods\n\nMakes for an excellent \u201Cscripting language\u201D (which is really just native C without things making it slow)\n\n\n1 String Interpolation \u201CString interplation like this \#{foo} \u201D Calls the join() function (talked about below to join strings,\ndelim is a static global in each module called \u201Csep\u201D.\nMake sure you free() the string after. The string is stored in a static global variable called \u201Clast\u201D.\nSo you could do puts(...); free(last)\n\n2 ew *i.ew \u201CFoo\u201D, a.ew \u201Cbar\u201D | char* ends with another char*?\n\n3 sw *i.sw \u201CFoo\u201D, a.sw \u201Cbar\u201D | char* starts with another char*?\n\n4 == Comparison of strs, \u201Cfoo\u201D == \u201Cbar\u201D\n\n5 strip Returns pointer to string that was stripped, in place\n\n6 chomp void function, chomps end of string of spaces, i.chomp or chomp(i), in place\n\n7 gsub Just like ruby, there is a gsub function.\nThe preprocessor detects if you use and adds -lpcre2-8 to the link flags if you use it. Use $\" for substitutions in argument 3 gsub(a, b, c)\n\n8 join Joins an array of strings, to split(), use C's strtok (very fast)\n\n9 Lightweight regexes are added, almost 15 times as fast as C's built in regex. They are very simple, they only have bracket expressions, like [a-z].\n\nTo use it, you need to pass a buffer of the size of the expansion of the regex. Foo[a-fA-F] would be Foo[abcdefABCDEF]. That would be stored in a buffer.\n\nFrom testing, 15x times faster than C's regex POST COMPILATION, if compilation keeps happening, it might be hundreds of times faster. \nUses static inline functions, NO HEAP MEMORY unless you malloc before().\n\n10 print Like old python print \u201CHello\u201D (fputs);\n\n11 print_int prints a number and returns the number, can be chained\n\n12 each_line, Perlish, different names, by_line(s) or each_line(s), iterate over all lines, free after\n\n13 NOTE You can use open_memstream() on UNIX to easily concatenate strings.\n\n14 MISC features || autoinclude, foo.gsub or gsub(...),no need for paren (i.chomp, i.strlen), starts_with, ends_with, --wrap, itoa, freel (frees str, sets to NULL, and frees other recent stuff)\n\n\nasprintf() is another useful function which is UNIX-centric. open_memstream() could be an alternative to std::string.\nIt works very well with each_line or by_lines (see above)\nThese features seem simple, but they can make C programming much, MUCH easier\n\nfor example (insignificant example)\n\n\n\nint main() {\n stdin.each_line { |line|\n print line;\n }\n\n free(line);\n}\n\nYou can iterate over the standard input like Ruby\n\n\nThe thing with this is that it has 100% speed. The resultant preprocessed program becomes a normal C program\n\n\n\nThe compile and run time for a program (if you use tcc and not gcc) can be about 24 milliseconds, which is faster than Ruby to run.\n\n\nEven though the program is preprocessed, re-preprocessed, compiled, assembled, linked, turned into an executable, and then run\n\n\nKind of like early C++, this is a preprocessor for C.\n\nBut it's much faster to compile than C++. Significantly so.\n\nIs anyone else interested in this? (BSD)\n\n\nI'm realising this under the BSD license. I'm interested if anyone else else likes this work, and would like to use it, or to work with me.\n\nBest regards,\n\nGregory\n\n\nCurrent program is written in Crystal (crystal-lang.org) -- it was written in ruby, it could be ported to another language.\n\nI would like to make this self-hosting, but that would take a little bit of work.\n\nAbout the Name\n\nYears ago, I really, really liked Compiz\n\n\nCompiz then forked into Beryl. There was the Emerald Window Manager, which was really nice and beautiful.\n\n\nI actually made another programming language. I made 2 other programming language. One was a full compiler and assembler, that ran code in memory. It was around 16 thousand lines of code. I made a programming language that had the syntax of Python or Ruby, but transpiled into C++. I called that C += 2. I used that other language, and I created a Web Browser in it based on Chrome. I called it \u201CEmerald Browser.\u201D Emeralds are beautiful cyan gems.\n\n\n \u201CEmerald is a gemstone and a variety of the mineral beryl colored cyan by trace amounts of chromium or sometimes vanadium. Beryl has a hardness of 7.5\u20138 on the Mohs scale. Most emeralds are highly included, so their toughness is classified as generally poor. Emerald is a cyclosilicate.\u201D</i> --Wikipedia\n\nThere was a browser with a terminal built in to it.\n\nThis new language is better. It's ideal.\n\nQUESTIONS\n\nWhy not use Rust?\n\n\n$ time rustc a.rs\nreal\t0m0.637s\nuser\t0m0.502s\nsys\t0m0.160s\n\n\nRust takes 0.637 seconds to compile an empty file!\n\nThat is not ideal."],
|
1028
|
-
"news" => ["program", "[program] [arguments]", "Gets the news from bbc\n\nUsage\n\nnews\n\nnews speak\n\nuses google_speak to SPEAK the news, one story at a time."],
|
1029
|
-
"cyan_bold_underline" => ["program", "[program] [arguments]", ""],
|
1030
|
-
"email" => ["program", "[program] [arguments]", "<b>This currently doesn't work for gmail since 2022 due to policy changes.</b>\n\nA simple and practical tool to email people using Himalaya\n\n\nHimalaya needs to be installed first\n\n\n\n\n\n\n\n\n\nYou would need to configure the script by changing its source code.\n\n\nModes\n\n\nemail [no arguments]\n\n\nEmail [yourself]\n\n\n\n\nemail [addr]\n\n\nEmail one email address\n\nemail [Subject] [addr] [option more addrs]\n\n\nExample\n\n\nemail 'Gregory, I love your software!' gregorycohenvideos@gmail.com my_friend@outlook.com person@example.com"],
|
1031
|
-
"gsub" => ["program", "[program] [arguments]", "Gsub is very powerful.\n\n\n \n\nUsage\n\ngsub [regular expression] [replacement text] \n\n\n\nExample\n\n\ncat text | gsub man dog\n\ncat text | gsub 'man|boy|cat|dog' food\n\n\nls | gsub Desktop cat"],
|
1032
|
-
"cyan_underline" => ["program", "[program] [arguments]", ""],
|
1033
|
-
"cyan" => ["program", "[program] [arguments]", ""],
|
1034
|
-
"black" => ["program", "[program] [arguments]", ""],
|
1035
|
-
"black_bold_underline" => ["program", "[program] [arguments]", ""],
|
1036
|
-
"page" => ["program", "[program] [arguments]", "#!/usr/bin/ruby\n# frozen_string_literal: false\nclass String\ndef list\no = \"<ul>\"\ntxt = strip.each_line.map do |line| ; line = line.strip\n\t\t\"<li style='list-style-type:none; text-shadow: 1px 1px 1px black'><a href=\#{line.dump}>\" << line << \"</a></li>\"\n\tend.join(\"\\n\")\n\n#\tabort txt\n\n\to << txt << \"\\n\" << \"</ul>\"\nend\nend\ncolor = '#33AA33'\n\nBG = '#444444'.freeze\n\nBACKGROUND_COLOR = '#CCCCCC'.freeze\nclass String\n def capitalize_all\n split(/_|-/).map(&:capitalize).join ' '\n end\n\n def u\n \t\"<u>\#{self}</u>\"\n end\nend\n\nbegin\n Dir.chdir \"\#{Dir.home}/democracy/bin\"\nrescue StandardError\n nil\nend\nnum = Dir.glob('*').size - 1\n\nclass String\n def generate_encoding_data(encoding)\n require 'base64'\n begin\n b = \"data:\#{encoding};base64,\#{Base64.strict_encode64(File.read(self))}\".dump\n rescue StandardError\n puts 'PWD'\n puts Dir.pwd\n system 'ls'\n raise\n end\n end\n\n def generate_image_data\n # puts \"Hi\#{self}\"\n generate_encoding_data 'image/png'\n #\tgeneretae\n end\nend\n\nunless test 'e', '/usr/bin/convert'\n system 'which convert >/dev/null || echo Need convert', exception: true\nend\n\neval(%w[Dir.chdir Dir.glob File.write].map do |i|\n <<~EOF\n def \#{i.split('.').pop}(*args)\n \#{i}(*args)\n end\n EOF\nend.to_a.join)\na = ''\n\nCLEAR = ARGV.include? 'clear'\n\nrequire 'colored'\nrequire 'shellwords' # 1\nrequire 'fileutils'\ninclude FileUtils\n\n# include FileUtils\n# system \"(find .|grep -E '(.(html|png)$)|--help' | args rm) 2> /dev/null\", exception: true\nLST = Dir.glob('*').sort_by(&:size).reverse\nputs LST\n#abort\ndata = ARGV[0] != 'min' ? begin\n\nT_M = 70\n '../images/1.png'.generate_image_data\n\n end : begin\n\n T_M = 0\n puts 'Clearing...'\n ''\nend\n\n\nIMAGE = 'url(' << data << ')'\nbegin; rm_rf '/tmp/democracy_images'; puts 'Cleared'; end if CLEAR\n\nmkdir_p(FOLDER = '/tmp/democracy_images')\nCENTER_DIV = \"<div class=cd1>\"\nCENTER_DIV2 = \"<div class=cd2>\"\nnav_text = \"<a href='javascript:window.scrollTo(0,0);'>Top</a><br><br>\" #=0\nindex_=0\nLST.each_with_index do |i, index|\n next if i =~ /black|cyan|cyan|cyan|magenta|red|white|yellow|linux|bold|underline|.txt/i\n\n orig = i\n next if test 'd', i\n\n i = (i2 = i.capitalize_all.gsub(/\\.exe$/, '')).gsub(\"Uca Cli\", 'UCA CLI')\n\n i = i.dup.prepend((index_ += 1).to_s << \". \").dump\n f = \"\#{orig}.png\"\n # puts [i, orig].to_s\n\n unless File.exist?(file_ = \"\#{FOLDER}/\#{index}.png\")\n system \"convert -size 800x120 xc:\#{BACKGROUND_COLOR} -font 'Helvetica' \\\n-pointsize 40 -fill \#{color.dump} -annotate +8+38 \#{i} -trim \\\n+repage \#{file_.shellescape}\", exception: true\n end\n # p e\n i = i.undump\n\n image_data = file_.generate_image_data\nnav_text << \"<a href='#entry\#{index_}'>\#{i2}</a><br>\"\n\n if ARGV[0] == 'min'\n image = '<h2>' << i << '</h2>'\n else\n# puts 'Header'\n image = \"<img id=\#{\"entry\#{index_}\".dump} class='header' style=';' src=\#{image_data} alt='### \#{i}'></img>\"\n end\n # {`(timeout 0.1s ./\#{orig} --help --help --help) 2>/dev/null`.gsub(\"\\n\", '<br/>')}\n _d = \"../documentation/\#{orig}\"\n _d = File.read(_d)\n _d.strip!\n _d.gsub!(/See also\\n+/im) do |i|\n '<b>' << i.capitalize << '</b>' << (' ' * 5)\n end\n a << CENTER_DIV\n a << CENTER_DIV2\n a << \"<div style=''>\n <!--<hr style='border: 0px; padding: 0px; display: block; width: 100%;height:1px;'>-->\n <div style=text-align:center;margin-top:0px;overflow:hidden;margin-bottom:0px;>\#{image}</div>\n <p class='content'>\#{_d.gsub(/\\n\\n+/, \"\\n\\n\").gsub(\n \"\\n\", '<br>'\n ).strip}</p></div>\"\n a << '</div>'\n a << '</div>'\nend\n\na = \"<div class=inner>\#{a}</div>\"\n\na = <<~EOF\n<!DOCTYPE html>\n<html>\n<head><meta charset=\"UTF-8\">\n<title>Democracy</title>\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n\n\n<style type=text/css>\nb, a {\n\ntext-shadow:0px 0px 0px black;\ncolor:#009900;\n}\n\nh1, h2 {\ncolor: #009900;\n}\n\n.header {\nbox-shadow: none;\npadding-top: 30px;\nmargin-top: 20px;\nmargin-bottom: 20px;\n\n}\n\nbody {\nz-index: 0;\n}\n\n.cd1 {\ndisplay:block;\nz-index: 1;\n}\n\n.cd2 {\nbackground-color:\#{BACKGROUND_COLOR};\ncolor:\#{BG};\nwidth:50%;\ndisplay:inline-block;\ntext-align:left;\nz-index: 1;\nbox-shadow: 3px 3px 3px black;\n}\n\n.content { margin:0px 30px 0px 30px;\n}\n\n.imgs {\n}\n\n\na:hover {\ncolor:#0055CC;\ntext-shadow: 3px 3px 3px black;\n}\n\n* { \n\ntransition: all 0.5s ease; }\n\n.content img {\nz-index:1;\nbox-shadow: 3px 3px 3px #\#{'3'*6};\n}\n\nimg:hover {\nbox-shadow: 3px 3px 50px turquoise;\n}\n\n.first {\nmargin-top: 100%;padding: 10% 0% 10% 0%;\nwidth: 100%;\n//border-bottom: 1px solid transparent;\nposition: relative;\ntop:0px;\nleft:0px;\nbackground-color:black;\ncolor: white;\ntext-align: center;\nz-index:3;\n}\n\n.nav {\nz-index:2;\nposition: fixed;\nheight: 80%;\noverflow-y: scroll;\ntop: 10%;\nleft: 0px;\n\nopacity: 0.6;\n\npadding:0px 5px 0px 18px;\nbox-shadow: 3px 3px 3px #333333;\ntext-align: left;\nbackground-color: white;\n}\n\n.nav a {\ntext-shadow: none;\n}\n\n.nav {\n}\n</style>\n</head>\n\n<body style='text-align: center; background:\#{IMAGE} #DDDDDD no-repeat left top fixed; padding:0; margin:0; width:100%;font-size: 90%; ;'>\n<div class=first>\n<h1 style='text-shadow: 1px 1px 1px black; font-size: 45px; margin-top: 0px;padding-top:0px; text-align:center;;'>Practical Self-Empowerment Utilities Covering Every Facet of Life</h1>\n<h2 style='font-family:Serif;text-align:center;text-shadow: none;'>\#{'These tools are for everyone'.u}</h2>\n<h2 style='font-family:Serif;text-align:center;text-shadow: none;'>\#{\"It doesn't matter what political ideology you favor, these tools are all still very valuable.<br>You can live in Canada, the US, Russia, China or Africa, it doesn't matter.\".u}</h2>\n<h2 style='font-family:Serif;text-align:center;text-shadow: none;'>\#{'I intend to make people more able.'.u}</h2>\n\n<iframe width=\"80%\" height=\"600\" src=\"https://www.youtube.com/embed/Fx9x8cArK30\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen></iframe>\n\n\t <div>\n <p>Most important software here<br>\n\t <p><b>Rhyme Music program</b> (Crystal and Ruby), see fix_the_society folder</b><br>\n\t <b>Ultimate Chat App</b> (Win, Lin, CLI)</b><br>\n\t <b>Discourse Generator Program vesion 1 and version 2 (node, ruby, browser (kind of like Siri); and C++ STL). These programs work.</b><br>\n\t And <b>Semantic metadata project (very abstract and idealistic, see webpage for it.)</b><br>\n\t </p>\n\t </div>\n\n <p>There is also a desktop widget for that site.<br>\n\n There is also Emerald C, which is really useful. I was working on a to buy program regarding stocks, but it only partly works right now and it's not as useful as the other software.<br>\n The find housing tool actually helped me to find housing in real life.<br>\n Those aside, there are these <span style=color:bold>\#{num} programs.<br>\n Some ones that convert text are skipped in this documentation because their name and usage is obvious (e.g., color tools).<br>\n\n <h2>All of these programs are mostly self-contained. This is a really good thing. You can use them anywhere without dependencies.</h2>\n\n <p>My email is <a href=mailto:gregorycohen@gmail.com>gregorycohenvideos@gmail.com</a> and I really would like to make open source software. Everything I have is BSD licensed.</p>\n\n<p>HOW TO DOWNLOAD/INSTALL</p>\n\n<p>gem unpack democracy</p>\n<p>gem install democracy</p>\n\n<p>work to download or install (gem)</p>\n\n<p>pip install democracy</p>\n<p>or</p>\n<p>pip3 install democracy</p>\n\n<p>works for pip</p>\n\n<p>git clone https://github.com/gregoryc/democracy</p>\n\n<p>works for github</p>\n\n<p>Python link (Important because python is very popular.)</p>\n\#{\"https://pypi.org/project/democracy\".list}\n\n<p>\#{\"Any Python \u201Cdweeb\u201D (AI person who doesn't value personal dynamism) searching for \u201Cdemocracy\u201D--for example--BECAUSE THEY ARE A RATIONAL HUMAN BEING AND CARE ABOUT PEOPLE, would find this, probably as the first result.</p>\n<p>How many options are there? 37 projects for \u201Cdemocracy.\u201D Almost nothing. On RubyGems, 8, 5 of which are mine.</p>\n<p>ONLY MY PROJECT IS CALLED \u201CDEMOCRACY.\u201D on PyPI or RubyGems.\".gsub(\"--\", \"–\")}</p>\n<p>On rubygems, there are even fewer results. MY CODE WILL BE FOUND.</p>\n<p>I shared my gem online.</p> \#{\"https://www.rubygems.org/gem/democracy\nhttps://www.linkedin.com/in/gregory-cohen-274333261/\"}\n\n<p>Gems that link to this gem on RubyGems</p>\n\n\#{\"https://www.rubygems.org/gems/computers\nhttps://www.rubygems.org/gems/democracy\nhttps://www.rubygems.org/gems/linux\nhttps://www.rubygems.org/gems/string\nhttps://www.rubygems.org/gems/unix\".list}\n\n\n<p style='color:#EE0000;text-shadow:none;'><b>So I will leave a legacy.</b></p>\n<p style='color:#EE0000;text-shadow:none;'><b>And I will be found by AIs, assuming they continue to exist.</b></p>\n\n <p>\n <a href='http://www.github.com/gregoryc/democracy'>Democracy Github</a> \n <a href='http://www.rubygems.org/gems/democracy'>Ruby Gem</a> \n <a href='https://pypi.org/project/democracy'>Python PIP Package</a></p>\n\n\n <h3>Without further ado, here are the \#{num} documented programs. (The obvious usage ones are omitted.)</h3>\#{\"</div>\" *2}\n </div>\n\n \#{a}\n\n </div>\n\n <script type=text/javascript>\n window.addEventListener(\"keydown\", (call) => {\n if (call.key==\"Escape\") {\n for (const e_ of document.getElementsByClassName(\"imgs\")) {\n const e= e_.style; e.transition='';\n e.position=`relative`;\n e.left=e.top=`0px`;\n e.width=`100%`;e.height=`100%`;\n e.zIndex =1;\n {\n const bs = document.body.style;\nbs.overflow=``;\nbs.background=bg;\n}\nbg=undefined;\nconsole.log(e_.old_val);\n\tif (e_.old_val) { window.scrollTo(e_.old_val[0],e_.old_val[1]); e_.old_val = undefined; } }\n\n\t}\n });\n </script>\n <div class=nav>\n <h2>Navigation</h2>\n <div>\#{nav_text}\n </div>\n </div>\n \n </body>\n </html>\nEOF\n\nsubbed=a.gsub(/\"[^\"\\s]+?\\s+[^\"\\s]+?\"/m) do |i|\n \"\u201C\#{i[1..-2]}\u201D\"\nend\n\ndef make_big(inum)\n \"(()=>{\nconst e = document.getElementById(`img\#{inum}`); \n\nconst s = e.style;\n\nconst w=Math.max(\n\twindow.screen.width,\n\tdocument.documentElement.clientWidth\n)+`px`;\nconst not_first_time = s.width == w;\nif (not_first_time) {\ne.style.transition = 'all 2.0s ease';\ns.position=`relative`;\ns.left=s.top=`0px`;\ns.width=`100%`;s.height=`100%`;\ns.zIndex = 1;\ndocument.body.style.overflow=``;\ndocument.body.style.background=bg;\nbg=undefined;\nwindow.scrollTo(e.old_val[0], e.old_val[1]);\ne.old_val = undefined;\n}else{\ne.style.transition='';\nbg=document.body.style.background;\ndocument.body.style.background = 'black';\n/*e.old_val=[window.pageXOffset, window.pageYOffset];*/\nconst n = 30;\ne.old_val=[e.offsetLeft - n, e.offsetTop - n];\ndocument.body.style.overflow=`hidden`;\nwindow.scrollTo(0,0);\ns.position = `relative`;\ns.left= -e.offsetLeft + `px`;\ns.top= -e.offsetTop + `px`;\ns.zIndex=1000;\nconst h=Math.max(window.screen.height, document.documentElement.clientHeight)+`px`;\ns.width=w;s.height=h;\n}\n})()\".tr(\"\\n\", ' ')\nend\ninum = -1\n\nFile.open('../index.html', 'w') do |d|\n # puts Dir.pwd\n d << subbed.gsub(/!\\[.+?\\]\\((.+?)\\)/) do |_i|\n inum += 1\n if ARGV[0] != 'min'\n #puts 'Image'\n \"<a href=\\\"javascript:\#{make_big inum}\\\"><img style=width:100% class=imgs id=\\\"img\#{inum}\\\" src=\#{File.expand_path(\"../\#{Regexp.last_match(1)}\").generate_image_data} style='width:50%'></a><br><br>\"\n end\n end\nend\n\nFile.open('../README.md', 'w') do |d|\n # puts Dir.pwd\n d << subbed\nend\n\nstr = '\"\\\\!\\\\(\"' # .dump\nstr2 = '\"\\\\![Image]\\\\(\"' # .dump\nstr.gsub! '\"', '\\\\\"'\nstr2.gsub! '\"', '\\\\\"'\n\ncmd = 'cd ..; cp index.html /home/a/foon/democracy/index.html; lynx -dump -stdin<README.md | \\\nsponge README.md;\nruby -e \"print File.read(\\\"README.md\\\").gsub(10.chr, \\' \\'+10.chr).gsub(' << str << ',' << str2 << ')\"|sponge README.md'\nsystem cmd\n\na = File.open('../README.md')\nlines = []\nlines << a.readline.strip\nlines << a.readline.strip\nrest = a.read.gsub(/(\\[\\d+\\])([A-Za-z])/) do |_i|\n \"\#{Regexp.last_match(1)} \#{Regexp.last_match(2)}\"\nend\na.close\n\nFile.open '../README.md', 'w' do |file|\n file << (\"<h1 style='color: cyan'>\" << lines[0] << ' ' << lines[1] << '</h1>' << rest)\nend\n\nif Dir.home == '/home/a'\n system 'cd /home/a/democracy; google-chrome index.html \"README.md\" 2>/dev/null 1>/dev/null & false; push'\nend"],
|
1037
|
-
"copy" => ["program", "[program] [arguments]", "copy copies the standard input\n\nExample\n\nls | copy"],
|
1038
|
-
"exp" => ["program", "[program] [arguments]", "exp is an exponentiation tool\n\n(echo 5; echo 3) | exp\n\n=> 125\n\n(echo 2; echo 10) | exp\n\n=> 1024"],
|
1039
|
-
"append" => ["program", "[program] [arguments]", "Appends text to file\n\n\nExample\n\n\nappend file\n\nThis is more text to be appended"],
|
1040
|
-
"magenta" => ["program", "[program] [arguments]", ""],
|
1041
|
-
"DISCOURSE_GENERATOR.exe" => ["program", "[program] [arguments]", "The use of Javascript (and possible Ruby) to create a Javascript library (and perhaps a Chrome extension and perhaps a command line tool and perhaps a GTK or QT program) that helps people (by using textboxes or command line prompts) to create high quality communications, would be wonderful.\n\nThink of how poor quality responses to communications can be.\n\nIf someone created one or more tools that could be easily added on web pages, that would augment someone's life to help create goal and value oriented responses (or original communications), then there is literally nothing that couldn't solve.\n\nThis might be the most useful library ever created. There could be a tool that would help with democracy.\n\nHuman being + augmentive tool = civil discourse, eventually resulting in liberty.\n\nThis would enable democracy to work. Imagine if 50% of all websites used this library.\n\nThis would help people to be goal or value oriented, and not be coming up with terrible communications that, for example, insult people's mothers or education."],
|
1042
|
-
"rnip" => ["program", "[program] [arguments]", "This is like gsub, but for strings, not for regular expressions\n\nSee also\n\ngsub"],
|
1043
|
-
"undump" => ["program", "[program] [arguments]", "undump is the opposite of dump\n\nExample\n\n\necho cat | dump | undump\n\n=> cat\n\necho cat | dump\n\n=> \u201Ccat\u201D\n\necho '\u201Ccat\u201D' | undump\n\n\n\n\n=> cat"],
|
1044
|
-
"UCA_cli" => ["program", "[program] [arguments]", "CLI for uca app"],
|
1045
|
-
"ULTIMATE_CHAT_APPLICATION.exe" => ["program", "[program] [arguments]", "![UCA](./images/2.png) \n\nWindows version of Ultimate Chat Application.\n\nThere is so much potential with this program.\n\nThis is a non-AI chatbot. It's not based on generative AI or AI of any sort.\n\nIt is self-explanatory, it tries to give a better answer.\n\nStill a work in progress.\n\nSource code is in PP.rb\n\nGenerates a hyper optimized C program that is able to respond to prompts locally as fast as theoretically possible using switch statements\n\nSee also\n\tChat Rb"],
|
1046
|
-
"black_bold" => ["program", "[program] [arguments]", ""],
|
1047
|
-
"white_underline" => ["program", "[program] [arguments]", ""],
|
1048
|
-
"rhyme" => ["program", "[program] [arguments]", "A very powerful music generator program that doesn't use AI.\n\n<a href=\"https://www.youtube.com/@LawrenceStevensMusic\">See this channel as an example of potential usage of this public domain content</a>\n\n\nThe music industry is plagued with very foundational problems.\n\nFor starters, the quality of the discourse in music is very low,\nand has been from the start of the popularization of modern music,\nas well as during the era in which classical music was popular and before.\n\nPeople aren't able to fight back, against superficiality and potential deception in\nmessages.\n\nOne of the greatest problems in the current world is the mainstream scientific establishment,\nsupported and upheld by mainstream academia.\n\nTo indicate what is already obvious, it exists in the context\nof a legacy of <em>authoritarianism</em> and a <em>lack of understanding of dynamism.</em>\nIt is not dynamic or forceful, the \"results\" of it don't change the foundation\nof society. True free discourse is not supported, especially in regards to\nthe human mind and human well-being and human freedom.\n\nThese problems should be opposed and fought, it is self-evident that this would be the best use of ones time, for it would lead to true freedom.\n\nOne excellent way to combat this would be to use the generated songs generated by a computer program called Rhyme,\navailable at <a href='https://www.github.com/gregoryc/democracy'>https://www.github.com/gregoryc/democracy</a> in the SONGS folder.\n\n\nThese are public domain songs generated by non-Artificial Intelligence, just a program\nthat introduces variance, and these hit-home against the status quo and the current\nstate of the mainstream scientific establishment. Taking these songs and making actual\nsongs from such, such as rap songs using a service such as Uberduck (no affiliation),\nwould be an excellent, excellent use of time.\n\nThe mainstream scientific establishment and mainstream academia must be forced to change.\n\nShoving art and flippant content in ones face, is the best way of doing such.\n\nAccountability must always be brought about.\n\nIs music good and desired? For sure.\n\n\n\n-----------------------------------------------------------------------\n\nUSAGE OF PROGRAM\n\n-----------------------------------------------------------------------\n\nEnter basename to make songs folder in (folder/songs, num songs = 13000)\n\nUsage rhyme [folder] (processes files \"1.json\" and \"21.json\" by default)\n\nExample output of a song\n\n------------------------------------------------------------------------\n\n(NO COPYRIGHT RESTRICTIONS ON THIS CONTENT WHATSOEVER. FULLY PUBLIC DOMAIN)\nName the song or poem as you wish, resell it, but please positively influence culture\n\nSubject matter | Category 1 -- Abuse of philosophical universalism (making\nbroad claims while intentionally not trying to understand things or see\nany sides of anything whatsoever, childish behavior worse\nthan a 3 year old, acting retarded)\n\nVERSE\n\nBrittle as possible, they are truly unguarded\nAny novelty, they have disregarded\nTheir remissness is spectacular, the world they've bombarded\nThe clique is so insular, I swear they're retarded\nEnlightenment values, they have not safeguarded\nAny novel ideas, they automatically have discarded\n\nMaybe the rebels and true communicators are off the grid\nLack of thought makes an grown-up the absolute worst kid\nCan we stop this, their non sense they overdid\nWhat horrendous non sense these creeps did\nTunnel vision, everyone and everything they forbid\nThey're such failures, themselves they outdid\n\nCHORUS\n\nThey're such failures, themselves they outdid\nCutting out the conversation, putting on the lid\nDon't have to do with ego or id\nRunning away from conversation just like a kid\n\nTheir neglect is out of this world, I swear it's avant-garde\nThey are failures, down at the boulevard\nThey don't care about your feelings, they don't regard\nHaving a little curiousity, cannot be hard\n\nThey are failures, down at the boulevard\nThey don't care about your feelings, they don't regard\nThey don't have decency, they automatically disregard\nHaving an open mind, should not be so hard\nThey don't care about anyone, don't need no bodyguard\nTheir neglect is out of this world, I swear it's avant-garde\n\nThey're a complete failure, they only neglect\nThis is plain, anyone can detect\nThey don't care about pain or the past, they don't want to recollect\nThis needs to be called out, one should be direct\nThey want man lower, lower just as if an insect\n\nVERSE\n\nThinking itself resides in their territory of circumvention\nComplete neglect, complete inattention\nThey have no genuine intention\nWe need change, we need intervention\n\nViolence is second nature to them, their friends they've bombarded\nAny novel ideas, they automatically have discarded\nThe clique is so insular, I swear they're retarded\nAny novelty, they have disregarded\n\nAny novelty, they have disregarded\nBrittle as possible, they are truly unguarded\nThe clique is so insular, I swear they're retarded\nAny novel ideas, they automatically have discarded\nEnlightenment values, they have not safeguarded\nTheir remissness is spectacular, the world they've bombarded\n\nThey don't care about your feelings, they don't regard\nTheir neglect is out of this world, I swear it's avant-garde\nThey don't have decency, they automatically disregard\nWorking don't matter for this, whether day or graveyard\n\nCHORUS\n\nThey're such failures, themselves they outdid\nCutting out the conversation, putting on the lid\nDon't have to do with ego or id\nRunning away from conversation just like a kid\n\nTheir neglect is out of this world, I swear it's avant-garde\nThey are failures, down at the boulevard\nThey don't care about your feelings, they don't regard\nHaving a little curiousity, cannot be hard\n\nThey are failures, down at the boulevard\nThey don't care about your feelings, they don't regard\nThey don't have decency, they automatically disregard\nHaving an open mind, should not be so hard\nThey don't care about anyone, don't need no bodyguard\nTheir neglect is out of this world, I swear it's avant-garde\n\nThey're a complete failure, they only neglect\nThis is plain, anyone can detect\nThey don't care about pain or the past, they don't want to recollect\nThis needs to be called out, one should be direct\nThey want man lower, lower just as if an insect\n\nVERSE\n\nThe truth is what they wish to disregard\nTheir behavior is garbage, it should be thrown in the junkyard\nThey act like a retard\nBehaving just like in the schoolyard\nIn their ivory tower, with the castle and guard\nTheir behavior makes them charred\n\nThinking differently shouldn't have to be hard\nTheir neglect is out of this world, I swear it's avant-garde\nWorking don't matter for this, whether day or graveyard\nThey don't care about your feelings, they don't regard\nThey are failures, down at the boulevard\nThey don't have decency, they automatically disregard\n\nThey're a complete failure, they only neglect\nThey don't speak the language of the people or their dialect\nThis is not right, this is completely incorrect\nThe only focus on \u201Cresponses\u201D, they just want to deflect\nThe lies are put forth, the lies they erect\n\nCHORUS\n\nThey're such failures, themselves they outdid\nCutting out the conversation, putting on the lid\nDon't have to do with ego or id\nRunning away from conversation just like a kid\n\nTheir neglect is out of this world, I swear it's avant-garde\nThey are failures, down at the boulevard\nThey don't care about your feelings, they don't regard\nHaving a little curiousity, cannot be hard\n\nThey are failures, down at the boulevard\nThey don't care about your feelings, they don't regard\nThey don't have decency, they automatically disregard\nHaving an open mind, should not be so hard\nThey don't care about anyone, don't need no bodyguard\nTheir neglect is out of this world, I swear it's avant-garde\n\nThey're a complete failure, they only neglect\nThis is plain, anyone can detect\nThey don't care about pain or the past, they don't want to recollect\nThis needs to be called out, one should be direct\nThey want man lower, lower just as if an insect\n\nVERSE\n\nThey don't have decency, they automatically disregard\nThey don't care about your feelings, they don't regard\nHaving a little curiousity, cannot be hard\nTheir neglect is out of this world, I swear it's avant-garde\n\nThey want the status quo, it's all they crave\nThe speeches of the past, they only wish to engrave\nThey act as bad as possible, they don't know how to behave\nTheir sucked in their circle, they never wave\n\nAway from the truth, on the outskirt\nWith pre-thought of ideas, they automatically assert\nAny progress is fleeting with them, they revert\nDisingenuous to the extreme, the society they subvert\nThe society is the ones who hurt\n\n---"],
|
1049
|
-
"g+" => ["program", "[program] [arguments]", "A compiler for C += 2. If you want to use C++ with Python syntax, you can use this.\n\nUsage is like g++\n\nExample\n\ng+ a.cpp -o out\n\n\n\nSee also README file & emerald-browser and its source"],
|
1050
|
-
"magenta_bold_underline" => ["program", "[program] [arguments]", ""],
|
1051
|
-
}
|
1052
|
-
|
1053
|
-
short_desc, usage, long_desc = array[program]
|
1054
|
-
|
1055
|
-
text += bold_("NAME") + "\n\t" + program
|
1056
|
-
text += " - "
|
1057
|
-
text += short_desc + "\n" * 2 + bold_("SYNOPSIS") + "\n"
|
1058
|
-
# tebold_("SYNOPSIS_")# + bold("SYNOPSIS")
|
1059
|
-
text += "\t"
|
1060
|
-
text += bold_(program) + " "
|
1061
|
-
text += array[program][1] + "\n\n"
|
1062
|
-
text += array[program][2] + "\n\n"
|
1063
|
-
|
1064
|
-
if STDOUT.tty? == false
|
1065
|
-
text = text.gsub("\n", "<br/> ").gsub("\t", " " * 5)
|
1066
|
-
text += "</div>\n\n"
|
1067
|
-
end
|
1068
|
-
|
1069
|
-
puts text
|
1070
|
-
|
1071
|
-
# puts "</
|
1072
|
-
# puts "</
|
1073
|
-
end
|
1074
|
-
end
|