BBRuby
What
BBRuby is a BBCode implementation for Ruby. It will convert strings with BBCode markup to their HTML equivalent.
Installing
To install as a gem:
sudo gem install bb-ruby
To install as a plugin:
script/plugin install git://github.com/cpjolicoeur/bb-ruby.git
Demonstration of usage
BBRuby has been included directly into the String class for use on any string object:
require 'bb-ruby' # (only needed if installed as a gem) text = "[b]Here is some bold text[/b] followed by some [u]underlined text[/u]." output = text.bbcode_to_html text.bbcode_to_html! # (direct in-place conversion)
BBRuby will auto-escape HTML tags, which can be prevented by passing false as the second param. BBRuby can also enable or disable certain tags based on input
output = text.bbcode_to_html({}, false)
You can also choose to only allow certain BBCode tags to be processed. The following will only process image, bold and quote tags.
output = text.bbcode_to_html({}, true, :enable, :image, :bold, :quote)
You can also disable certain tags from being processed.
output = text.bbcode_to_html({}, true, :disable, :image, :bold, :quote)
Alternately you can access BBRuby directly and not via a string:
output = BBRuby.to_html(bbcode_markup)
BBRuby will also allow you to define your own custom BBCode markup translations or override the built-in translations to be more flexible with your application. The first parameter is a hash that accepts your custom markup translations:
custom_blockquote = { 'Quote' => [ /\[quote(:.*)?=(.*?)\](.*?)\[\/quote\1?\]/mi, '

\2

\3

', 'Quote with citation', '[quote=mike]please quote me[/quote]', :quote ], } text.bbcode_to_html(custom_blockquote)
Tags Processed
The following is the list of BBCode tags processed by BBRuby and their associated symbol for enabling/disabling them
- [b] :bold
- [i] :italics
- [u] :underline
- [s] :strikeout
- [del] :delete
- [ins] :insert
- [code] :code
- [size] :size
- [color] :color
- [ol] :orderedlist
- [ul] :unorderedlist
- [li] :listitem
- [*] :listitem
- [list] :listitem
- [list=1] :listitem
- [list=a] :listitem
- [dl] :definelist
- [dt] :defineterm
- [dd] :definition
- [quote] :quote
- [quote=source] :quote
- [url=link] :link
- [url] :link
- [img size=] :image
- [img=] :image
- [img] :image
- [youtube] :video
- [gvideo] :video
- [vimeo] :video
- [email] :email
Forum
http://groups.google.com/group/bb-ruby
How to submit patches
First read the 8 steps for fixing other people’s code
Then fork your own copy of the repository on github, make your patch and then submit a pull request via github.
git clone git://github.com/cpjolicoeur/bb-ruby.git
Build and test instructions
cd bb-ruby rake test rake install_gem
Documentation
http://bb-ruby.rubyforge.org/rdoc
License
Copyright © 2008 Craig P Jolicoeur, Fernando Blat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
 IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Contact
Comments are welcome. Send an email to Craig P Jolicoeur or email via the Google Group
Craig P Jolicoeur, 20th November 2009
Theme extended from Paul Battley


JavaScript is a cross-platform, object-oriented scripting language. It is a small and lightweight language. Inside a host environment (for example, a web browser), JavaScript can be connected to the objects of its environment to provide programmatic control over them.
JavaScript contains a standard library of objects, such as Array, Date, and Math, and a core set of language elements such as operators, control structures, and statements.
- Client-side JavaScript extends the core language by supplying objects to control a browser and its Document Object Model (DOM).
- Server-side JavaScript extends the core language by supplying objects relevant to running JavaScript on a server.
This guide assumes you have the following basic background:
- A general understanding of the Internet and the World Wide Web (WWW).
- Good working knowledge of HyperText Markup Language (HTML).
- Some programming experience. If you are new to programming, try one of the tutorials linked on the main page about JavaScript.
JavaScript and Java are similar in some ways but fundamentally different in some others. The JavaScript language resembles Java but does not have Java's static typing and strong type checking.
In contrast to Java's compile-time system of classes built by declarations, JavaScript supports a runtime system based on a small number of data types representing numeric, Boolean, and string values
JavaScript is a very free-form language compared to Java. You do not have to declare all variables, classes, and methods.
To get started with writing JavaScript, open the Scratchpad and write your first "Hello world" JavaScript code:
function greetMe(yourName) { alert("Hello " + yourName); }
greetMe("World");
Select the code in the pad and hit Ctrl+R to watch it unfold in your browser!
You can declare a variable in three ways:
var x = 42
By simply assigning it a value. For example,
x = 42
With the keyword let. For example,
let y = 13
You can also have constant "variables"
const z = 42


Decimal to Roman Numeral Conversion
This is a converter that will convert all your decimal numbers up to 4000 to Roman numerals.
Try it yourself!
Decimal:
Roman:


Accelerometers are usually made of piezoelectric materials (quartz crystals).
The acceleration loads the piezoelectric element according to Newton's second law of motion (F=ma).>
That force can be observed in the change in the electrostatic force or voltage generated by the crystal.
source: wikipedia


About me
Full Stack Developer with Engineering background to think more logically and process more efficiently in creating code. Recently earned a certificate in Full Stack Development from Georgia institute of Technology. I have honed my skills in HTML5, CSS, Bootstrap, jQuery, JavaScript, React.js, and responsive Web design to develop clear and impactive client-side applications and MySQL, MoingoDB, Node.js and Express.js to develop effective server-side applications. Known as an outstanding problem solver with analyzing skills and able to work with a team while solving problems in high-stress environments. My motivation is to make great collaboration by giving respect and support to my teammates and this motivation leads our project and team to success. Looking to bring my passion and technical skills to the company to grow and become a valuable asset.
SKILL SET
WorkPlace Strength


{% extends "saas/base.html" %} {% load currency %} {% block content %} Pay Balance for {{ organization.name }} {% if balance_credits %} You already have a credit of {{balance_credits|usd}} in your account. Are you sure you want to pay more now? {% else %} Your balance due is {{balance_dues|usd}}. {% endif %} {{ form.as_ul }} Pay Now {% csrf_token %} {% endblock %}
{% if balance_credits %} You already have a credit of {{balance_credits|usd}} in your account. Are you sure you want to pay more now? {% else %} Your balance due is {{balance_dues|usd}}. {% endif %}


あし
あ
~
ぁ
ムダ
足
だっ
た
かしら
ねぇ
。
Ah~ I guess I came here for nothing. Well, well, before saying that take a look at this, please.