Navigation

Home
Search
Submit A Resource
Contact Us
About Functionn

Subscription Options


Subscribe By Email (265+)


Lists


Archives

Showing posts with label String. Show all posts
Showing posts with label String. Show all posts

Nov 30, 2012

jQuery.smarttruncation - A Responsive Text Trucation Plugin

jQuery.smarttruncation truncates the text within the assigned element to fit and updates the string length while resizing the window.

The used technique is very responsive, since it calculates the width for each character in a pre-define set ahead of time. The generated sizes dictionary is cached and re-used if the plugin is called on an element with identical font properties.

Sometimes (in about 3-5% of all cases), due to characteristics of certain fonts, a string will still not fit. In this case the plugin will go the "common" way of chopping off on character at a time until the string fits.

Requirements: None
Demo: http://polarblau.github.com/smarttruncation/
License: MIT License or GPL

Nov 16, 2012

Author: Hirvesh Posted At: 11/16/2012 Tags: , , , , , , , , ,

URI.js - A JavaScript Library For Working With URLs

URI.js is a JavaScript library for working with URLs. It offers a "jQuery-style" API (Fluent Interface, Method Chaining) to read and write all regular components and a number of convenience methods like .directory() and .authority().

URI.js offers simple, yet powerful ways of working with query string, has a number of URI-normalization functions and converts relative/absolute paths.

While URI.js provides a jQuery plugin. URI.js itself does not rely on jQuery. You don't need jQuery to use URI.js

Requirements: None
Demo: http://medialize.github.com/URI.js/
License: MIT License or GPLv3

Nov 15, 2012

Author: Hirvesh Posted At: 11/15/2012 Tags: , , , , , , , , , , , , ,

jQuery Terminal Emulator - A Plugin For Creating Command Line Interpreters In Your Applications

jQuery Terminal Emulator is a plugin for creating command line interpreters in your applications. It can automatically call JSON-RPC service when user type commands or you can provide an object with methods, each method will be invoke on user command. Object can have nested objects which will create nested interpreter.

You can also use a function in which you can parse user command by your own. It′s ideal if you want to provide additional functionality for power users. It can also be used as debugging tool.


Features

  • You can create interpreter for your JSON-RPC service with one line of code.
  • Support for authentication (you can provide function when user enter login and password or if you use JSON-RPC it can automatically call login function on the server and pass token to all functions).
  • Stack of interpreters - you can create commands that trigger additional interpreters (e.g.. you can use couple of JSON-RPC service and run them when user type command).
  • Command Tree - you can use nested objects each command will invoke a function if the value is an object it will create new interpreter and use function from that object as commands. You can use as much nested commands as you like. if the value is a string it will create JSON-RPC service.
  • Tab completion - if you use object instead of a function you can have tab completion with TAB key.
  • Support for command line history (it use Local Storage if possible or cookies).
  • Include keyboard shortcut from bash like CTRL+A, CTRL+D, CTRL+E etc..
  • Multiply terminals on one page (every terminal can have different command, it′s own authentication function and it′s own command history) - you can switch between them with CTRL+TAB.
  • It catch all exceptions and display error messages in terminal (you can see errors in your JavaScript and PHP code in terminal if they are in interpreter function).
  • Support for basic text formatting (color, background, underline, bold, italic) inside echo function.
  • You can create and overwrite existing keyboard shortcuts.

Requirements: jQuery
Demo: http://terminal.jcubic.pl/#demo
License: LPGLv3

Nov 12, 2012

Author: Hirvesh Posted At: 11/12/2012 Tags: , , , , , , , , , , , , , ,

Mocha - A Feature-Rich JavaScript Test Framework For Node.js And The Browser

Mocha is a feature-rich JavaScript test framework running on Node.js and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.


Features

  • Browser support
  • Simple async support
  • Test coverage reporting
  • String diff support
  • Javascript API for running tests
  • Proper exit status for CI support etc
  • Auto-detects and disables coloring for non-ttys
  • Maps uncaught exceptions to the correct test case
  • Async test timeout support
  • Test-specific timeouts
  • Growl notification support
  • Reports test durations
  • Highlights slow tests
  • File watcher support
  • Global variable leak detection
  • Optionally run tests that match a regexp
  • Auto-exit to prevent “hanging” with an active loop
  • Easily meta-generate suites & test-cases
  • Mocha.opts file support
  • Clickable suite titles to filter test execution
  • Node debugger support
  • Detects multiple calls to done()
  • Use any assertion library you want
  • Extensible reporting, bundled with 9+ reporters
  • Extensible test dsls or “interfaces”
  • Before, after, before each, after each hooks
  • Arbitrary transpiler support (coffee-script etc)
  • Textmate bundle

Requirements: None
Demo: http://visionmedia.github.com/mocha/
License: MIT License

Oct 29, 2012

Author: Hirvesh Posted At: 10/29/2012 Tags: , , , , , , , , , , ,

Craft.js - A Small But Powerful JavaScript Framework That Helps You To BUIld Web Applications

Craft.js is a lightweight but powerful JavaScript framework that helps you to build web applications.  Craft is a tiny framework (only 3.69KB gzipped), that makes it really fast to load and to initialize. Nevertheless, it is still powerful and helps you to build web apps with only what you need.

The main part of Craft is about extending native JavaScript objects : Array, Function & String. Because of the problems raised by the extension of Element & Object, two new contructors have been deployed : Hash (dedicated to Objects as associative arrays) and DOM, to manipulate the DOM easily without breaking it or be forced to simulate Element on Internet Explorer.

Also, a global Craft object has been created to contain an improved typeOf function, a Browserobject, an AJAX constructor, and a toArray function.

Craft.js has been rewritten in CoffeeScript to make custom builds easier, and to improve the readability of the source.

Requirements: None
Demo: http://mlbli.github.com/craft/
License: MIT License

Oct 28, 2012

Author: Hirvesh Posted At: 10/28/2012 Tags: , , , , , , , ,

Bootstrap Date Range Picker - A Date Range Picker Component For Twitter Bootstrap

Bootstrap Date Range Picker is a pre-styled date range picker component for Twitter Bootstrap.  This date range picker component for Twitter Bootstrap creates a dropdown menu from which a user can select a range of dates. It was created for the reporting UI at Improvely.

For basic use cases like collecting event or reservation dates, you can attach it to a text input to pop up two clickable calendars to choose dates from. For more advanced use cases, you can attach a date range picker to any element, pre-define your own date ranges for the user to choose from, and set a custom callback function to receive the chosen dates.

The date range picker relies on jQuery, Datejs for parsing strings into dates and defining custom ranges, and the Twitter Bootstrap CSS.

Requirements: Date.js, jQuery
Demo: http://www.dangrossman.info/…a-date-for…bootstrap/
License: Apache License v2.0

Oct 11, 2012

Author: Hirvesh Posted At: 10/11/2012 Tags: , , , , , , , , , , , , ,

JSONiq - The JSON Query Language

JSOniq is an expressive and highly optimizable language to query and update NoSQL stores. It enables developers to leverage the same productive high-level language across a variety of NoSQL products.

JSONiq extends XQuery, a mature W3C standard, with native JSON support. Like XQuery and SQL, JSONiq is declarative: Expressions can nest with full composability.

Project, Filter, Join, Group... Like SQL, JSONiq can do all that. And it has many more features inherited from XQuery. JSONiq also inherits all XQuery builtin functions: date times, string manipulation, regular expressions, and more.

The JSONiq syntax enables to dynamically construct objects and arrays using a syntax close to JSON. Nesting of expressions inside these constructors are allowed. JSONiq also provides a syntax for updating JSON objects and array.

From there, developers can benefit from expressive power inherited by XQuery.

JSON is now being used in many of the same environments as XML, and a variety of JSON query languages are emerging, including MongoDB's BSON, IBM's jaql, and CouchDB and Sqlite's UnQL. JSONiq is a query language based on XQuery, which makes it easy for an XQuery processor to support JSON in the same environments that currently use XQuery.

For environments that do not need XML, JSONiq defines a profile that uses only JSON. This profile is much simpler than XQuery, and easier to optimize. For environments that need to process both XML and JSON, JSONiq defines a profile that can produce or consume any combination of JSON, XML, or HTML.

JSON is a good lightweight data structure that is very useful in places where XML is more complex and less efficient. Adding JSON to XQuery simplifies complex queries for programmers, and provides query writers with simple, efficient intermediate data structures.

Requirements: None
Demo: http://www.zorba-xquery.com/html/demo
License: Creative Commons 3.0

Mar 1, 2012

Author: Hirvesh Posted At: 3/01/2012 Tags: , , , , , ,

String.Js - A Simple Javascript Library That Provides Extra String Methods

String.Js, is simply a lightweight (< 2KB gzipped) JavaScript library for the browser or for Node.js that provides extra String methods.

Requirements: None
Demo: http://stringjs.com
License: MIT License or LGPL or Apache v2 License

Feb 14, 2012

Author: Hirvesh Posted At: 2/14/2012 Tags: , , ,

Typesequence - A jQuery Plugin Which Lets You Fire A Callback Following A Typed Sequence Of Characters

TypeSequence is a jQuery Plugin which lets you fire a callback following a typed sequence of characters.

Requirements: jQuery
Demo: https://github.com/arjaneising/TypeSequence/blob/master/demo.html
License: MIT License
 


Recent Posts

Popular Categories



Popular Components



Popular Licenses