### Setup and Run TestChat Server (Python) Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/SocketRocket/README.md This sequence of commands sets up the Python virtual environment, installs the necessary Tornado library, and then starts the TestChat server. Ensure you have run 'make test' previously to set up the virtualenv. This server broadcasts messages to connected clients. ```bash source .env/bin/activate pip install git+https://github.com/tornadoweb/tornado.git python TestChatServer/py/chatroom.py ``` -------------------------------- ### Ruby Logger Development Setup Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/logger-1.7.0/README.md Commands for setting up the development environment for the Ruby Logger gem, including installing dependencies and running tests. ```bash $ bin/setup $ rake test $ rake install $ rake release ``` -------------------------------- ### Setup and Console for Four-Flusher Development Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/fourflusher-2.3.1/README.md These commands are used during the development phase of the Four-Flusher gem. `bin/setup` installs dependencies, and `bin/console` provides an interactive Ruby prompt for experimentation. ```shell bin/setup bin/console ``` -------------------------------- ### Basic libffi Build and Installation Commands Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/ffi-1.17.2/ext/ffi_c/libffi/README.md These are the standard commands for building and installing the libffi library after configuration. 'make' compiles the library, 'make check' runs tests (requires DejaGNU), and 'make install' installs the library and header files. ```bash # After running configure: make make check make install ``` -------------------------------- ### Install cocoapods-downloader Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/cocoapods-downloader-2.1/README.markdown This command installs the cocoapods-downloader gem. It can be installed with or without sudo privileges depending on your system's Ruby environment setup. ```bash [sudo] gem install cocoapods-downloader ``` -------------------------------- ### Start Metro Server for React Native Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/README.md Starts the Metro bundler, which is essential for serving your React Native application during development. It supports both npm and Yarn package managers. ```sh # Using npm npm start # OR using Yarn yarn start ``` -------------------------------- ### Install CFPropertyList Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/CFPropertyList-3.0.7/README.md Instructions for installing the CFPropertyList gem using RubyGems or by cloning the repository. ```bash gem install CFPropertyList ``` -------------------------------- ### Convenience Methods for HTTP Requests with Typhoeus (Ruby) Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.5.0/README.md Provides examples of Typhoeus's shortcut methods for common HTTP verbs like GET, HEAD, PUT, PATCH, POST, DELETE, and OPTIONS. ```ruby Typhoeus.get("www.example.com") ``` ```ruby Typhoeus.head("www.example.com") ``` ```ruby Typhoeus.put("www.example.com/posts/1", body: "whoo, a body") ``` ```ruby Typhoeus.patch("www.example.com/posts/1", body: "a new body") ``` ```ruby Typhoeus.post("www.example.com/posts", body: { title: "test post", content: "this is my test"}) ``` ```ruby Typhoeus.delete("www.example.com/posts/1") ``` ```ruby Typhoeus.options("www.example.com") ``` -------------------------------- ### Install Ruby Logger Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/logger-1.7.0/README.md Instructions for installing the 'logger' gem using Bundler or directly via the 'gem install' command. ```ruby gem 'logger' ``` -------------------------------- ### Install iOS Dependencies with CocoaPods Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/README.md Installs the necessary CocoaPods dependencies for iOS development. This is a prerequisite before running the iOS app and should be run after cloning or updating native dependencies. It requires Ruby and Bundler to be installed. ```sh # Install CocoaPods itself (if not already installed) bundle install # Install project-specific dependencies bundle exec pod install ``` -------------------------------- ### Install Ruby-FFI Gem from GitHub Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/ffi-1.17.2/README.md This snippet illustrates how to install the Ruby-FFI gem directly from its GitHub repository, including submodules. This is useful for using the latest development version or when contributing to the project. It involves cloning the repository, updating submodules, and then installing using Bundler. ```bash git clone git://github.com/ffi/ffi.git cd ffi git submodule update --init --recursive bundle install rake install ``` -------------------------------- ### Install and Run Tests Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/netrc-0.11.0/Readme.md Installs project dependencies using Bundler and executes all test files within the 'test' directory. ```bash $ bundle install $ bundle exec ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' ``` -------------------------------- ### Install Molinillo Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/molinillo-0.8.0/README.md Instructions for adding Molinillo to your project's Gemfile and executing the bundle install command, or installing it directly via the gem install command. ```ruby gem 'molinillo', :git => 'https://github.com/CocoaPods/Molinillo' ``` ```bash $ bundle install ``` ```bash $ gem install molinillo ``` -------------------------------- ### Ruby FuzzyMatch Quickstart Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/fuzzy_match-2.0.4/README.markdown Demonstrates the basic usage of the FuzzyMatch gem in Ruby, including initialization and finding a match. ```ruby require 'fuzzy_match' # Initialize FuzzyMatch with a list of possible matches matcher = FuzzyMatch.new(['seamus', 'andy', 'ben']) # Find the best match for a given string result = matcher.find('Shamus') # The result will be the closest match from the list puts result # Output: seamus ``` -------------------------------- ### Minitest Hooks for Setup and Teardown (Ruby) Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/minitest-5.25.5/README.rdoc Implements 'around', 'before_all', 'after_all', and 'around_all' hooks for Minitest. These provide more flexible control over test setup and teardown procedures. ```ruby minitest-hooks :: Around and before_all/after_all/around_all hooks ``` -------------------------------- ### Installing httpclient Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/httpclient-2.9.0/README.md Provides the command to install the httpclient gem using RubyGems. This is the standard method for adding the library to a Ruby project. ```bash gem install httpclient ``` -------------------------------- ### Install Concurrent Ruby Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/concurrent-ruby-1.3.3/README.md Provides instructions for installing the concurrent-ruby gem using the RubyGems package manager. This is the standard way to add the library to your project. ```shell gem install concurrent-ruby ``` -------------------------------- ### Install CocoaPods Trunk Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/cocoapods-trunk-1.6.0/README.md Instructions for installing the cocoa-pods-trunk gem using Bundler or directly via the gem command. This is a prerequisite for using the plugin. ```ruby gem 'cocoapods-trunk' ``` ```bash $ bundle ``` ```bash $ gem install cocoapods-trunk ``` -------------------------------- ### Run Typhoeus Specs Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.5.0/README.md Instructions for running the project's specifications. This involves installing dependencies with `bundle install` and then executing the tests using `bundle exec rake`. ```shell bundle install bundle exec rake ``` -------------------------------- ### Build and Run React Native App on iOS Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/README.md Builds and runs the React Native application on an iOS simulator or device. This command is executed after installing the necessary CocoaPods dependencies and can be used with either npm or Yarn. ```sh # Using npm npm run ios # OR using Yarn yarn ios ``` -------------------------------- ### Install NKF Gem for Ruby Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/nkf-0.2.0/README.md Instructions to add the NKF gem to your Ruby project's Gemfile and install it using Bundler, or install it globally using the gem command. ```ruby gem 'nkf' ``` -------------------------------- ### Install Public Suffix Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/public_suffix-4.0.7/README.md Instructions for installing the Public Suffix gem using either the command line or Bundler. ```shell gem install public_suffix ``` ```ruby gem 'public_suffix' ``` -------------------------------- ### Install and Release Four-Flusher Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/fourflusher-2.3.1/README.md Instructions for installing the Four-Flusher gem locally using `bundle exec rake install` and for releasing a new version by updating `version.rb` and running `bundle exec rake release`. ```shell bundle exec rake install bundle exec rake release ``` -------------------------------- ### Dry Run Dependency Installation with getdeps.py Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/RCT-Folly/README.md This command allows you to preview the system dependencies that `getdeps.py` would install without actually performing the installation. It's useful for understanding what packages will be added to your system. ```bash ./build/fbcode_builder/getdeps.py install-system-deps --dry-run --recursive ``` -------------------------------- ### HTTPClient CLI Usage Example Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/httpclient-2.9.0/README.md Demonstrates how to use the httpclient command-line interface to perform an HTTP GET request and interact with an IRB shell. The CLI can issue requests to specified URIs or launch an interactive Ruby shell with an HTTPClient instance. ```bash httpclient get https://www.google.co.jp/?q=ruby ``` ```ruby get "https://www.google.co.jp/", :q => :ruby ``` -------------------------------- ### Install Concurrent Ruby C Extensions Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/concurrent-ruby-1.3.3/README.md Installs the optional C extensions for Concurrent Ruby on MRI for potential performance improvements. This is done by installing the `concurrent-ruby-ext` gem. ```ruby gem install concurrent-ruby-ext ``` ```ruby gem 'concurrent-ruby-ext' ``` -------------------------------- ### Install Folly via Vcpkg on Windows Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/RCT-Folly/README.md Install Folly for x64 Windows architecture using the Vcpkg package manager. This command fetches and builds the Folly library and its dependencies. ```shell vcpkg install folly:x64-windows vcpkg install folly:x64-windows --head ``` -------------------------------- ### Install Algolia Ruby API Client Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/algoliasearch-1.27.5/README.md Install the Algolia Ruby API Client using the RubyGems package manager. This is the first step to integrate Algolia services into your Ruby application. ```bash gem install algoliasearch ``` -------------------------------- ### Install Minitest Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/minitest-5.25.5/README.rdoc Installs the Minitest gem using the system's package manager. This is the recommended way to install Minitest to ensure you are using the latest version and avoid conflicts with the built-in Minitest in older Ruby versions. ```bash sudo gem install minitest ``` -------------------------------- ### Install Addressable Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/addressable-2.8.7/README.md Shows the command to install the Addressable gem using RubyGems. It also provides optional steps for enabling native IDN support by installing libidn and the 'idn-ruby' gem. ```bash $ gem install addressable ``` ```bash $ sudo apt-get install libidn11-dev # Debian/Ubuntu $ brew install libidn # OS X $ gem install idn-ruby ``` -------------------------------- ### Install CLAide Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/claide-1.1.0/README.md This command installs the CLAide gem using RubyGems. It may require sudo privileges depending on your Ruby installation. ```bash #!/bin/bash $ [sudo] gem install claide ``` -------------------------------- ### Install Base64 Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/base64-0.3.0/README.md Instructions for installing the Base64 gem using Bundler or directly via the gem command. This is a prerequisite for using the Base64 module in a Ruby project. ```ruby gem 'base64' ``` -------------------------------- ### Print to stdout using fmt::print Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/fmt/README.md This example demonstrates the basic usage of fmt::print to output a simple string to the standard output. It requires the fmt/core.h header. ```c++ #include int main() { fmt::print("Hello, world!\n"); } ``` -------------------------------- ### Install mutex_m Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/mutex_m-0.3.0/README.md Instructions for installing the mutex_m gem using Bundler or directly via the gem command. This is the first step to using the library in a Ruby project. ```ruby gem 'mutex_m' ``` ```bash $ bundle ``` ```bash $ gem install mutex_m ``` -------------------------------- ### Install ruby-macho Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/ruby-macho-2.5.1/README.md Installs the ruby-macho library using RubyGems. This is the primary method for including the library in your Ruby project. ```bash gem install ruby-macho ``` -------------------------------- ### Install Concurrent Ruby Edge Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/concurrent-ruby-1.3.3/README.md Installs the Concurrent Ruby Edge gem using the RubyGems package manager. This can be done directly via the command line or by adding the gem to a Gemfile. ```shell gem install concurrent-ruby-edge ``` ```ruby gem 'concurrent-ruby-edge', require: 'concurrent-edge' ``` -------------------------------- ### Install System Dependencies with getdeps.py (Linux/macOS) Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/RCT-Folly/README.md This command clones the Folly repository and uses the `getdeps.py` script to install system-wide dependencies required for building Folly on Linux or macOS systems with Homebrew. It ensures that necessary libraries and tools are available before the build process. ```bash git clone https://github.com/facebook/folly cd folly sudo ./build/fbcode_builder/getdeps.py install-system-deps --recursive ``` -------------------------------- ### C printf Formatting Example Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/fmt/README.md Shows the concise syntax of the C printf function for formatting floating-point numbers with precision. It is presented as a more compact alternative to C++ iostreams. ```c printf("%.2f\n", 1.23456); ``` -------------------------------- ### Write to a file using fmt::output_file Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/fmt/README.md This example shows how to efficiently write formatted output to a file using fmt::output_file. It is noted to be significantly faster than fprintf. Requires the fmt/os.h header. ```c++ #include int main() { auto out = fmt::output_file("guide.txt"); out.print("Don't {}", "Panic"); } ``` -------------------------------- ### Manual Caching Example with Aircraft and Flight Segments Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/fuzzy_match-2.0.4/README.markdown Provides a reference to a manual implementation of caching matches between aircraft and flight segments. This example is for users who need to implement custom caching strategies before the gem's built-in caching is fully documented. ```ruby # TODO write documentation. For now, please see how [we manually cache matches between aircraft and flight segments](https://github.com/brighterplanet/earth/blob/master/lib/earth/air/aircraft.rb). ``` -------------------------------- ### C++ iostreams Formatting Example Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/fmt/README.md Demonstrates the verbosity of C++ iostreams for formatting floating-point numbers with precision. It contrasts with the conciseness of printf. ```c++ std::cout << std::setprecision(2) << std::fixed << 1.23456 << "\n"; ``` -------------------------------- ### Install Folly via Homebrew on macOS Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/RCT-Folly/README.md Install the Folly Formula using the Homebrew package manager on macOS. This is a straightforward command to get the latest release of Folly. ```shell brew install folly ``` -------------------------------- ### Configure libffi with Debugging and Documentation Options Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/ffi-1.17.2/ext/ffi_c/libffi/README.md This demonstrates using configure switches to customize the libffi build. '--enable-debug' enables extra run-time debugging checks, and '--disable-docs' skips the build of documentation. The '--prefix' switch is used to specify an installation directory. ```bash ./configure --prefix=/path/to/install --enable-debug --disable-docs ``` -------------------------------- ### Warn to install ostruct if needed Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/json-2.15.0/CHANGES.md Provides a helpful warning to the user if `json` attempts to load `ostruct` support but fails, guiding them to install the necessary dependency. ```ruby # This is an internal warning mechanism, not direct user code. # If JSON::GenericObject is used and ostruct is not loaded, a warning might appear: # "Warning: ostruct not found. Consider 'gem install ostruct'." ``` -------------------------------- ### Running Ruby Tests via Command Line Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/minitest-5.25.5/README.rdoc This command shows how to execute Ruby tests directly using the `ruby` interpreter. It specifies the load path (`-Ilib:test`) and the test file to run. It also demonstrates how to pass runtime options like `--help` to minitest for more configuration details. ```bash % ruby -Ilib:test test/minitest/test_minitest_test.rb % ruby -Ilib:test test/minitest/test_minitest_test.rb --help ``` -------------------------------- ### Start a Reaper Thread for Idle Connections (Ruby) Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.5.4/README.md Provides an example of starting a separate thread to periodically reap idle connections from a ConnectionPool. This automates the process of cleaning up unused connections based on an idle time threshold. ```ruby cp = ConnectionPool.new { Redis.new } Thread.new do loop do cp.reap(300) { |conn| conn.close } sleep 300 end end ``` -------------------------------- ### Run Benchmark Tests with CMake and Make Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/fmt/README.md Instructions for cloning the format-benchmark repository, generating Makefiles with CMake, and running speed or bloat tests. This process is crucial for evaluating compile time and executable size. ```bash git clone --recursive https://github.com/fmtlib/format-benchmark.git cd format-benchmark cmake . make speed-test # or make bloat-test ``` -------------------------------- ### Get Specific Time Zone Object with TZInfo in Ruby Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/tzinfo-2.0.6/README.md This example demonstrates how to get a TZInfo::Timezone object for a specific time zone identifier. You provide a string representing the time zone (e.g., 'America/New_York'), and it returns a TZInfo::DataTimezone object. This object is then used for time conversions. ```ruby tz = TZInfo::Timezone.get('America/New_York') # => # ``` -------------------------------- ### Get REXML Element Child at Index Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/rexml-3.4.4/doc/rexml/tasks/rdoc/element.rdoc Retrieves a child element or text node from an REXML Element at a specified index using the `[]` method. Indexes start from 0. ```Ruby d = REXML::Document.new '>textmore' e = d.root e[0] # => e[1] # => "text" e[2] # => ``` -------------------------------- ### Update Typhoeus Option Names (Ruby) Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.5.0/UPGRADE.md Fixes renamed option names in Typhoeus requests. The example shows the error for an invalid option and the correct usage with 'followlocation'. ```ruby Typhoeus.get("www.example.com", follow_location: true) # Ethon::Errors::InvalidOption: The option: follow_location is invalid. # Please try followlocation instead of follow_location. # ... [Backtrace] Typhoeus.get("www.example.com", followlocation: true).code #=> 200 ``` -------------------------------- ### Build Folly Directly with CMake and Custom Paths Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/RCT-Folly/README.md This example shows how to invoke CMake directly to build Folly, specifying custom include and library paths for dependencies like Boost and googletest. This is useful when dependencies are not installed in standard system locations. ```bash cmake \ -DCMAKE_INCLUDE_PATH=/alt/include/path1:/alt/include/path2 \ -DCMAKE_LIBRARY_PATH=/alt/lib/path1:/alt/lib/path2 ... ``` -------------------------------- ### Basic Usage of cocoapods-downloader Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/cocoapods-downloader-2.1/README.markdown Demonstrates how to use the cocoapods-downloader gem to download files. It involves specifying a target path, download options (like git repository URL), and then initiating the download. The 'checkout_options' method returns details about the downloaded commit. ```ruby require 'cocoapods-downloader' target_path = './Downloads/MyDownload' options = { :git => 'example.com' } options = Pod::Downloader.preprocess_options(options) downloader = Pod::Downloader.for_target(target_path, options) downloader.cache_root = '~/Library/Caches/APPNAME' downloader.max_cache_size = 500 downloader.download downloader.checkout_options #=> { :git => 'example.com', :commit => 'd7f410490dabf7a6bde665ba22da102c3acf1bd9' } ``` -------------------------------- ### Implement Custom Caching with Typhoeus Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.5.0/README.md Provides a mechanism for custom caching by defining a Cache class with get and set methods. Typhoeus uses this to store and retrieve responses, reducing redundant network requests. The example demonstrates a simple in-memory cache. ```ruby class Cache def initialize @memory = {} end def get(request) @memory[request] end def set(request, response) @memory[request] = response end end Typhoeus::Config.cache = Cache.new Typhoeus.get("www.example.com").cached? #=> false Typhoeus.get("www.example.com").cached? #=> true ``` -------------------------------- ### Configure libffi for Windows with clang-cl Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/ffi-1.17.2/ext/ffi_c/libffi/README.md This configuration command enables building libffi on Windows using the LLVM project's clang-cl compiler. It specifies the compiler and linker, leveraging the msvcc.sh wrapper script for clang-cl integration. ```bash path/to/configure CC="path/to/msvcc.sh -clang-cl" CXX="path/to/msvcc.sh -clang-cl" LD=link CPP="clang-cl -EP" ``` -------------------------------- ### Build and Install Folly with MacPorts on macOS Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/RCT-Folly/README.md Clone, build, and install the Folly library from source after installing dependencies via MacPorts. This process involves creating a build directory, configuring with CMake, and then compiling and installing. ```shell git clone https://github.com/facebook/folly.git cd folly mkdir _build cd _build cmake .. make sudo make install ``` -------------------------------- ### Get Timezone Period Information with period_for Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/tzinfo-2.0.6/README.md The period_for method retrieves information about the observed timezone at a specific time, returning a TZInfo::TimezonePeriod object. This object provides details like base UTC offset, standard offset, observed offset, abbreviation, and DST status. It also provides the start and end times of the local period. ```ruby period = tz.period_for(Time.utc(2018, 7, 1, 12, 30, 0)) period.base_utc_offset # => -18000 period.std_offset # => 3600 period.observed_utc_offset # => -14400 period.abbreviation # => "EDT" period.dst? # => true period.local_starts_at.to_time # => 2018-03-11 03:00:00 -0400 period.local_ends_at.to_time # => 2018-11-04 02:00:00 -0400 ``` -------------------------------- ### Configure libffi for Windows with MSVC Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/ffi-1.17.2/ext/ffi_c/libffi/README.md This configuration command sets up libffi for building on Windows using Microsoft's Visual C++ compiler. It specifies the compiler, linker, and preprocessor definitions required for DLL builds. Adjustments for 64-bit builds and MingW environments are also noted. ```bash path/to/configure CC=path/to/msvcc.sh CXX=path/to/msvcc.sh LD=link CPP="cl -nologo -EP" CXXCPP="cl -nologo -EP" CPPFLAGS="-DFFI_BUILDING_DLL" ``` ```bash # For 64-bit Windows builds: path/to/configure CC="path/to/msvcc.sh -m64" CXX="path/to/msvcc.sh -m64" LD=link CPP="cl -nologo -EP" CXXCPP="cl -nologo -EP" CPPFLAGS="-DFFI_BUILDING_DLL" ``` -------------------------------- ### Print with colors and text styles using fmt/color Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/fmt/README.md Demonstrates advanced text formatting with colors and styles (bold, underline, italic) using the fmt/color header. This example shows how to apply different foreground and background colors, and emphasis to text output. Requires a modern terminal with Unicode support. ```c++ #include int main() { fmt::print(fg(fmt::color::crimson) | fmt::emphasis::bold, "Hello, {}!\n", "world"); fmt::print(fg(fmt::color::floral_white) | bg(fmt::color::slate_gray) | fmt::emphasis::underline, "Olá, {}!\n", "Mundo"); fmt::print(fg(fmt::color::steel_blue) | fmt::emphasis::italic, "你好{}!\n", "世界"); } ``` -------------------------------- ### Install Nanaimo Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/nanaimo-0.3.0/README.md Instructions for adding the Nanaimo gem to a Ruby project's Gemfile and installing it using Bundler, or installing it directly using the gem command. ```ruby gem 'nanaimo' ``` -------------------------------- ### Running Code Before a Group of Minitest Tests with Constants Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/minitest-5.25.5/README.rdoc Explains how to execute setup code once before a group of tests using a Ruby constant initialized with a `begin...end` block. This is useful for expensive initializations or sharing state, but requires careful management to avoid test interference. ```ruby describe Blah do SETUP = begin # ... this runs once when describe Blah starts end # ... end ``` -------------------------------- ### Build Folly with System Dependencies using getdeps.py Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/RCT-Folly/README.md This command initiates the build process for Folly after cloning the repository. It utilizes the `getdeps.py` script to download and build necessary dependencies, incorporating any available system dependencies. The build output, including the static library, is placed in a scratch area. ```bash git clone https://github.com/facebook/folly cd folly python3 ./build/fbcode_builder/getdeps.py --allow-system-packages build ``` -------------------------------- ### Install SocketRocket with CocoaPods Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/SocketRocket/README.md This code snippet shows how to add the SocketRocket library to your iOS/macOS project using CocoaPods. Ensure you have CocoaPods installed and a Podfile in your project's root directory. After adding the line, run 'pod install'. ```ruby pod 'SocketRocket' ``` -------------------------------- ### Autogen Script for Git Sources Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/ffi-1.17.2/ext/ffi_c/libffi/README.md When building libffi from git sources, the 'configure' script may not be present. Running './autogen.sh' first generates the necessary build scripts, which requires autoconf, automake, and libtool to be installed. ```bash ./autogen.sh ``` -------------------------------- ### Enforce System libffi during Gem Installation Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/ffi-1.17.2/README.md These commands show how to configure the FFI gem installation to use the system's libffi library instead of the built-in version. This can be done during manual gem installation or when using Bundler. The effect is to link against the system-provided libffi. ```bash # Manual gem installation gem install ffi -- --enable-system-libffi # Using Bundler bundle config build.ffi --enable-system-libffi ``` -------------------------------- ### Run SocketRocket Tests Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/SocketRocket/README.md These bash commands are used to run the test suite for SocketRocket. 'make test' runs the short tests, while 'make test_all' includes performance tests. The first run may take time to install dependencies via virtualenv. ```bash make test ``` ```bash make test_all ``` -------------------------------- ### Install gh_inspector Gem Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/gh_inspector-1.1.3/README.md Instructions for adding the gh_inspector gem to your Ruby project's Gemfile and installing it using Bundler. ```ruby gem 'gh_inspector' # Then execute: # $ bundle ``` -------------------------------- ### Specifications with Minitest::Spec Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/minitest-5.25.5/README.rdoc Illustrates how to write specifications using Minitest's spec syntax. It utilizes `describe` blocks for grouping and `it` blocks for individual test cases, with methods like `must_equal` and `wont_match` for expectations. The `before` block is used for setup. ```ruby require "minitest/autorun" describe Meme do before do @meme = Meme.new end describe "when asked about cheeseburgers" do it "must respond positively" do _(@meme.i_can_has_cheezburger?).must_equal "OHAI!" end end describe "when asked about blending possibilities" do it "won't say no" do _(@meme.will_it_blend?).wont_match /^no/i end end end ``` -------------------------------- ### Run Tests for Ruby i18n Library Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/i18n-1.14.7/README.md Provides commands to run the test suite for the i18n library. It includes options for running all tests or specific test files, and how to run tests against different configurations. ```shell rake test # or ruby -Ilib:test test/api/simple_test.rb # or to run all tests against all Gemfiles ruby test/run_all.rb ``` -------------------------------- ### Install SocketRocket with Carthage Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/SocketRocket/README.md This snippet demonstrates how to integrate SocketRocket into your project using Carthage. Add the specified line to your Cartfile, then run 'carthage update'. The library will be available in your Carthage folder. ```bash github "facebook/SocketRocket" ``` -------------------------------- ### Run TestChat Server (Go) Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/SocketRocket/README.md This Go command compiles and runs the TestChat server implementation. Navigate to the 'go' directory within TestChatServer first. This server also broadcasts messages to connected clients. ```bash cd TestChatServer/go go run chatroom.go ``` -------------------------------- ### Minitest Plugin: Define Custom Options and Initialization Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/minitest-5.25.5/README.rdoc This Ruby code defines how to create a Minitest plugin. It shows how to register custom command-line options using OptionParser and how to initialize the plugin by adding a custom reporter to the Minitest reporter composite. ```ruby module Minitest def self.plugin_bogus_options(opts, options) opts.on "--myci", "Report results to my CI" do options[:myci] = true options[:myci_addr] = get_myci_addr options[:myci_port] = get_myci_port end end def self.plugin_bogus_init(options) self.reporter << MyCI.new(options) if options[:myci] end end ``` -------------------------------- ### Build and Install Double-Conversion with MacPorts on macOS Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/ios/Pods/RCT-Folly/README.md Clone, build, and install the double-conversion library from source. This is a prerequisite for building Folly when using MacPorts. It uses CMake for configuration and Make for building. ```shell git clone https://github.com/google/double-conversion.git cd double-conversion cmake -DBUILD_SHARED_LIBS=ON . make sudo make install ``` -------------------------------- ### Open an Xcode Project Source: https://github.com/azranazwer/react-native-live-tracking/blob/main/example/vendor/bundle/ruby/3.2.0/gems/xcodeproj-1.25.1/README.md Opens an existing Xcode project file for modification. This is the initial step before performing any operations on the project. It requires the path to the .xcodeproj file. ```ruby require 'xcodeproj' project_path = '/your_path/your_project.xcodeproj' project = Xcodeproj::Project.open(project_path) ```