Require uncached module with mocks
Help command for node, partner of minimist and commist
Let your JS API users either give you a callback or receive a promise
A module that parses a string as regular expression and returns the parsed value.
Check if an input value is a ssh url or not.
A low level git url parser.
A replacement for process.exit that ensures stdio are fully drained before exiting.
tiny util for getting and setting deep object props safely
Recursively iterates over specified directory, require()'ing each file, and returning a nested hash structure containing those modules.
<img src="https://react-virtualized-auto-sizer.vercel.app/og.png" alt="react-virtualized-auto-sizer logo" width="400" height="210" />
SWC node register
A convenient way to iterate objects.
A small module to write JSON files.
Intuitive, type safe and flexible Store for Vue
A small module to read JSON files.
Types and related utilities for TypeScript
A low level parser for ANSI sequences.
Edit a json file with ease.
Remove the trailing spaces from a string.
Find object values by passing the path as string.
Infer the content-type of a request.
Parse paths (local paths, urls: ssh/git/etc)
Get the protocols of an input url.
Require a file without adding it into the require cache
Lets you easily define how to include hierarchies of ruby files, and also apply inclusion/exclusion filters for what to include
Modeling require object in MES system
When required, HTTPAutorec enables VCR (with WebMock) and all HTTP requests are cached in ./http_autorec_cache by default. You can temporarily enable it without modifying your code, like this: `ruby -rhttp_autorec your_script.rb`.
Craft generic breadcrumbs from the controller path
== FEATURES/PROBLEMS: * No known issues, let me know if you find any. == SYNOPSIS: require 'sfh' text1 = "The quick brown fox" puts "Text '#{text1}': #{Sfh.hash(text1, text1.length)}" == REQUIREMENTS: RubyInline
CodeRay is a Ruby library for syntax highlighting. I try to make CodeRay easy to use and intuitive, but at the same time fully featured, complete, fast and efficient. Usage is simple: require 'coderay' code = 'some %q(weird (Ruby) can't shock) me!' puts CodeRay.scan(code, :ruby).html
Plugin for the omnifocus gem to provide synchronization with Redmine Issues. This plugin uses the Redmine REST API. It must be enabled by an administrator for the plugin to work. The first time this runs it creates a yaml file in your home directory for the configuration data. * redmine_url is required. This is the base url for the redmine repository. * user_id is required. To find your user id login and go to the my account page. Your user_id is the number at the end of the url for my account. * username is optional. It is used if the redmine server requires authentication. * password is optional. It is used if the redmine server requires authentication. * queries is optional. It is used for custom queries or multiple queries. The queries config is an array of strings. The strings will be appended to a query of the form: "http://redmine_url/issues.xml?assigned_to_id=user_id" * just_project is optional. It is used to configure how to name the omnifocus projects used for issues. If just_project is true each redmine project will correspond to an omnifocus project. If it is false the omnifocus projects will be name with redmine_project-redmine_component. Example: --- user_id: 20 redmine_url: http://redmine/ username: me password: 1234 queries: ["status_id=1", "status_id=2"] just_project: false
Nele translates ruby string to the other language. It uses external public translators like Microsoft Translator or Yahoo's Babelfish. ### Installation: git install nele ### Usage: require 'nele' String.translators => [:babelfish, :ms] ### Microsoft Translator: String.translator = :ms String.translator.config[:from] = "en" String.translator.config[:to] = "pl" String.translator.config[:appId] = YOUR_APP_ID "nice girl".translate => "mila dziewczyna" ### Yahoo's Babelfish: String.translator = :babelfish String.translator.config[:lp] = "en_es" "hello".translate => "hola" If you know any other (free) public translators just let me know, or write your own adapter for nele.
BlueCloth is a Ruby implementation of John Gruber's Markdown[http://daringfireball.net/projects/markdown/], a text-to-HTML conversion tool for web writers. To quote from the project page: Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). It borrows a naming convention and several helpings of interface from {Redcloth}[http://redcloth.org/], Why the Lucky Stiff's processor for a similar text-to-HTML conversion syntax called Textile[http://www.textism.com/tools/textile/]. BlueCloth 2 is a complete rewrite using David Parsons' Discount[http://www.pell.portland.or.us/~orc/Code/discount/] library, a C implementation of Markdown. I rewrote it using the extension for speed and accuracy; the original BlueCloth was a straight port from the Perl version that I wrote in a few days for my own use just to avoid having to shell out to Markdown.pl, and it was quite buggy and slow. I apologize to all the good people that sent me patches for it that were never released. Note that the new gem is called 'bluecloth' and the old one 'BlueCloth'. If you have both installed, you can ensure you're loading the new one with the 'gem' directive: # Load the 2.0 version gem 'bluecloth', '>= 2.0.0' # Load the 1.0 version gem 'BlueCloth' require 'bluecloth'
= sinatra-mongo Extends Sinatra with an extension method for dealing with monogodb using the ruby driver. Install it with gem: $ gem install sinatra-mongo Now we can use it an example application. require 'sinatra' require 'sinatra/mongo' # Specify the database to use. Defaults to mongo://localhost:27017/default, # so you will almost definitely want to change this. # # Alternatively, you can specify the MONGO_URL as an environment variable set :mongo, 'mongo://localhost:27017/sinatra-mongo-example' # At this point, you can access the Mongo::Database object using the 'mongo' helper: puts mongo["testCollection"].insert {"name" => "MongoDB", "type" => "database", "count" => 1, "info" => {"x" => 203, "y" => '102'}} get '/' do mongo["testCollection"].find_one end If you need to use authentication, you can specify this in the mongo uri: set :mongo, 'mongo://myuser:mypass@localhost:27017/sinatra-mongo-example' == Mongo Reference * http://www.mongodb.org/display/DOCS/Ruby+Tutorial == Note on Patches/Pull Requests * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) * Send me a pull request. Bonus points for topic branches. == Copyright Copyright (c) 2009 Joshua Nichols. See LICENSE for details.
= sinatra-mongo Extends Sinatra with an extension method for dealing with monogodb using the ruby driver. Install it with gem: $ gem install sinatra-mongo Now we can use it an example application. require 'sinatra' require 'sinatra/mongo' # Specify the database to use. Defaults to mongo://localhost:27017/default, # so you will almost definitely want to change this. # # Alternatively, you can specify the MONGO_URL as an environment variable set :mongo, 'mongo://localhost:27017/sinatra-mongo-example' # At this point, you can access the Mongo::Database object using the 'mongo' helper: puts mongo["testCollection"].insert {"name" => "MongoDB", "type" => "database", "count" => 1, "info" => {"x" => 203, "y" => '102'}} get '/' do mongo["testCollection"].find_one end If you need to use authentication, you can specify this in the mongo uri: set :mongo, 'mongo://myuser:mypass@localhost:27017/sinatra-mongo-example' == Mongo Reference * http://www.mongodb.org/display/DOCS/Ruby+Tutorial == Note on Patches/Pull Requests * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) * Send me a pull request. Bonus points for topic branches. == Copyright Copyright (c) 2009 Joshua Nichols. See LICENSE for details.
Treste is a great tool for rapid prototyping projects. I use it in loads of my projects. There are a couple of things that kind of tick me off though; Trestle resources tend to become large files in the app/admin folder due to the way they are written. I find it hard to read/maintain them as a big file, so I split them up into smaller files and created a generator to ensure that they always follow a standard. Another pet peeve is the menu handling. Handling menu itmes in each resource quickly becomes a nightmare. Ordering them requires a lot of manual work. To keep things simpler, inspired by the work from the crowd at WinterCMS, I created a menu.yml file that is used to manage the menu. I also created a helper that simplifies the placing of the menu.
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.
No description provided.
No description provided.
No description provided.