Maps lines and columns to character offsets and back.
Remove spaces and tabs around line-breaks
No description provided.
Super-fast alternative to Babel for when you can target modern JS runtimes
256 colors, keys and mouse, input field, progress bars, screen buffer (including 32-bit composition and image loading), text buffer, and many more... Whether you just need colors and styles, build a simple interactive command line tool or a complexe termi
Remove final line feeds from a string
Strip leading whitespace from each line in a string
Fill a polygon with lines
Provides helper functions to create GeoJSON features, like points, lines, or areas on a map.
rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers
A collection of credential providers, without requiring service clients like STS, Cognito
Check if stdout or stderr is interactive
Frontegg Javascript Library for backend node servers
TypeScript package which smartly trims and strips indentation from multi-line strings
Super-minimalist version of `concat-stream`. Less than 15 lines!
Runs prettier as an eslint rule
Generic JSDoc-like comment parser
Datadog APM tracing client for JavaScript
JavaScript DXF file viewer
Split lines into an array of lines
Simple multiline ellipsis component for React.JS
A simple library containing all known terminal ansi escape codes and sequences.
User replays for Sentry
Language service for JSON
Command-line tool to sample lines from a file or stdin without replacement. It runs in one pass without reading the whole input into memory using reservoir sampling.
A tool to convert JSON to CSV
Simple command line utility to pick a random sample of lines out of the given file(s)
Command line utility (CLI) to generate test projects and sample tests for web services using RESTAssured.
A simple gem to view ruby classes, their methods and sample code within the command line.
mini_readline: A compact, little gem for console command entry with line edit and history, inspired by the standard readline gem. Also included are four sample auto-complete agents and the irbm utility, which is irb + mini_readline and not an Intermediate Range Ballistic Missile.
How many times your deploys were failed, because you forgot to update .yml files on server... No more! Tamplier gem checks, that all keys from any sample files are actually exist in real .yml files. That allows to detect configuration problems earlier and spend less time on deployment problems investigations. Gem also provides command line utility to quickly setup fresh development environment by copying or symlinking sample files.
== FEATURES/PROBLEMS: * can load rbml partials using +include+ method * sample support for command line interfaces * document processing: xml, xhtml * XML support is totally untested (we don't need it right now...) == SYNOPSIS: <tt>rbml path/to/file.rbml</tt>
ontomde-uml2-java is a full-featured UML2 to Java5 code generator library. This library is meant to be used trough a command line wrapper available in ontomde-uml2-javaFrontEnd gem. A sample raw UML2 source model is available here: http://ontomde.rubyforge.org/website/demo/java5/index.html. This model is included in a running demonstration available from this page: http://ontomde.rubyforge.org/website/demonstration.html == FEATURES/PROBLEMS: Managed class modifiers * interface implements * single class inheritance * attribute * association * method * inner class
Sometimes when you hear about a new library/gem you just wat to kick the kick_the_tires to see what it can do. Sometimes you start with some REPL example from the authors or some sample code or tests that the author has provided. This little gem allowed_push_host you to load up a few basic asserts/refutes/shows to explore the library's objects and method results. When you have finished kicking the tires you may want to take the library out for a spin with some functional, application-line code and you don't want any of the tire kicking out to STDOUT.
Graphviz wrapper for Ruby. This can be used as a common library, a rails plugin and a command line tool. == FEATURES/PROBLEMS: GraphvizR is graphviz adapter for Ruby, and it can: * generate a graphviz dot file, * generate an image file by means of utilizing graphviz, * interprete rdot file and generate an image file, * and, generate a graph image file in rails application as a rails plugin. == SYNOPSYS: === Command Line: bin/graphviz_r sample/record.rdot === In Your Code: This ruby code: gvr = GraphvizR.new 'sample' gvr.graph [:label => 'example', :size => '1.5, 2.5'] gvr.beta [:shape => :box] gvr.alpha >> gvr.beta (gvr.beta >> gvr.delta) [:label => 'label1'] gvr.delta >> gvr.gamma gvr.to_dot replies the dot code: digraph sample { graph [label = "example", size = "1.5, 2.5"]; beta [shape = box]; alpha -> beta; beta -> delta [label = "label1"]; delta -> gamma; } To know more detail, please see test/test_graphviz_r.rb === On Rails : <b>use _render :rdot_ in controller</b> def show_graph render :rdot do graph [:size => '1.5, 2.5'] node [:shape => :record] node1 [:label => "<p_left> left|<p_center>center|<p_right> right"] node2 [:label => "left|center|right"] node1 >> node2 node1(:p_left) >> node2 node2 >> node1(:p_center) (node2 >> node1(:p_right)) [:label => 'record'] end end <b>use rdot view template</b> class RdotGenController < ApplicationController def index @label1 = "<p_left> left|<p_center>center|<p_right> right" @label2 = "left|center|right" end end # view/rdot_gen/index.rdot graph [:size => '1.5, 2.5'] node [:shape => :record] node1 [:label => @label1] node2 [:label => @label2] node1 >> node2 node1(:p_left) >> node2 node2 >> node1(:p_center) (node2 >> node1(:p_right)) [:label => 'record'] == DEPENDENCIES: * Graphviz (http://www.graphviz.org) == TODO: == INSTALL: * sudo gem install graphviz_r * if you want to use this in ruby on rails * script/plugin install http://technohippy.net/svn/repos/graphviz_r/trunk/vendor/plugins/rdot == LICENSE: (The MIT License)
== Develop, Decorate and manage Dependencies for C (GNU) Makefiles easily with a Ruby script. Install using the Ruby Gem: > gem install demake To create an example with multiple sample applications: > demake example This will create a directory named example containing the example. To create an example with a single sample application: > demake oreo This will create a directory named oreo containing the example. It requires a demake directory and application file containing the application names followed by depencencies separated by spaces and with a new line to indicate a different application. Something like (from the example): > mkdir demake > echo "hello string" > demake/applications > echo "goodbye string" >> demake/applications > demake For customization, optionally include (see example): demake/settings.rb, demake/test-target.rb, demake/install-target.rb, demake/license The output of the command by itself is a (GNU style) file named Makefile: > demake You can also clone from git: > git clone https://github.com/MinaswanNakamoto/demake.git > chmod +x demake/bin/demake > cd demake > bin/demake example > cd example ; make ; make build ; make test If you have an existing C application and you want to generate a Makefile for it, you might try the gen_application shell script. > ./gen_application myapp
CreepCheck is a Ruby library that provides an API for checking romantic age compatibility based on the popular half-plus-seven formula for determining when it is socially (in)appropriate for people to date based on their relative ages. It comes with a sample command line interface utility. Opinions vary on appropriate age differences in romantic relationships, but the half-plus-seven formula seems to approximate United States cultural biases about appropriate age differences pretty well. This library and utility package was originally created as a joke related to assessing the ap propriateness of relationships between characters in fictional contexts, such as in fantasy/sci-fi prose and roleplaying games. It is not intended to be treated as a substitute for moral fiber or individual judgement, and no guarantees are made about the likelihood one's family or local courts of law will approve of a given relationship on the basis of the age of one's partner even if "approved" by the half-plus-seven formula. This tool's major release version is published on April Fool's Day under the terms of the DPL, or Detachable Public License. It is intended for entertainment purposes only. It is not even particularly well-written.
Welcome to the "Knuckleheads" game, a (slightly enhanced version of the) fully functional text driven game written in Ruby 1.9 and used as a teaching aid for the excellent web-based Ruby course administered by Pragmatic Studios. W00t! W00t! Before playing, fill the default csv file "players.csv" with any number of players by putting the name of each followed by their initial health (an integer separated from the name by a comma). Each player must be on a new line. You may also create an alternate file formatted the same way with a different name. (A sample alternate player file called "more_nuts.csv" is provided as an example.) Invoke an alternate file simply by entering the file name when prompted. How fun is that!! To start the game, start the Ruby file "studio_game.rb" in Ruby 1.9 (or later should work as well) and follow the directions. By the way, there are two players added in hard code with modified behavior. One is "sandro" a LOSER or "clumsy" player who damages his treasure upon collecting it, resulting in the value of each treasure being worth only half of it's original value. What a klutz! The other is a wild-ass player, "bright_eyes." He's a serious partyier! After every other player is spent, he "finds the last beer in the fridge" and can't help but w00t. Bright_eyes starts off just like everyone else. But after being w00ted six times he goes freak'n w00t-crazy and w00ts EVERY TIME! You better think long and hard before committing to joining Mr. bright_eyes. Legend has it that he eats the livers of his prey after he parties them to death, and in this way remains an immortal player! Now fire up that command line for some outrageous fun! CAUTION: It is addictive. My cousin, Schneebo (the Schneebo on my Dad's side, NOT Schneebo Salifronski) once sat down and played Knuckleheads non-stop for 176.39 hours. It's the truth - you've been warned. Oh, and by the way: Three w00ts for Pragmatic Studios - woot, woot, h00ray! - woot, woot, h00ray! - woot, woot, h00ray!
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.