a:4:{s:8:"template";s:17344:"<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<link href="http://gmpg.org/xfn/11" rel="profile"/>

<title>{{ keyword }}</title>

<style id="scribbles-css" media="all" rel="stylesheet" type="text/css">

@charset "UTF-8";

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%; }

body {
  margin: 0; }

aside,
footer,
header,
nav {
  display: block; }

a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects; }

a:active,
a:hover {
  outline-width: 0; }

input {
  font: inherit;
  margin: 0; }

input {
  overflow: visible; }

[type="submit"] {
  -webkit-appearance: button; }

[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0; }

[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText; }

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px; }

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none; }

::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54; }

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit; }


body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; }

body,
input {
  color: #252525;
  font-family: "Raleway", sans-serif;
  font-weight: normal;
  font-size: 20px;
  font-size: 1.25rem;
  line-height: 1.8; }
  @media only screen and (max-width: 40.063em) {
    body,
    input {
      font-size: 14.4px;
      font-size: 0.9rem; } }

h4 {
  clear: both;
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  font-weight: normal;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  color: #353535; }

h4 {
  font-size: 1.5rem;
  font-weight: bold; }

html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit; }

body {
  background: #ffffff;
  word-wrap: break-word; }


ul {
  margin: 0 0 1.5em 0; }

ul {
  list-style: disc; }



input[type="search"] {
  color: rgba(37, 37, 37, 0.5);
  border: 1px solid rgba(37, 37, 37, 0.1);
  -webkit-border-radius: 3px;
  border-radius: 3px;
  padding: 0.75rem;
  resize: none;
  background-color: rgba(255, 255, 255, 0.5); }
  input[type="search"]:focus {
    color: #252525;
    background-color: rgba(255, 255, 255, 0.75); }

form label {
  font-weight: bold; }

input[type="submit"] {
  display: inline-block;
  border: none;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  background-color: #b5345f;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5em;
  padding: 0.75em 1em;
  white-space: nowrap; }
  input[type="submit"]:hover, input[type="submit"]:active, input[type="submit"]:focus {
    cursor: pointer;
    background-color: rgba(181, 52, 95, 0.8);
    color: #ffffff; }


a {
  color: #54ccbe;
  text-decoration: none; }
  a:visited {
    color: #54ccbe; }
  a:hover, a:focus, a:active {
    color: rgba(84, 204, 190, 0.8); }
  a:hover, a:active, a:focus {
    outline: 0; }


.main-navigation-container {
  background-color: #b5345f; }

.main-navigation {
  font-size: 1rem;
  font-weight: 500;
  display: none; }
  @media only screen and (min-width: 40.063em) {
    .main-navigation {
      display: block;
      float: left; } }
  .main-navigation ul {
    list-style: none;
    margin: 0;
    padding-left: 0; }
    .main-navigation ul a {
      color: #ffffff;
      display: block;
      padding: 1.2em .75em;
      border-bottom: 2px solid rgba(0, 0, 0, 0.05); }
      @media only screen and (min-width: 40.063em) {
        .main-navigation ul a {
          padding-top: 1.5em;
          padding-bottom: 1.5em;
          border-bottom: none; } }
  @media only screen and (min-width: 40.063em) {
    .main-navigation li {
      position: relative;
      display: inline-block; }
    .main-navigation a {
      text-decoration: none;
      padding: .25em .75em;
      color: #ffffff;
      text-transform: uppercase; }
      .main-navigation a:hover, .main-navigation a:visited:hover {
        background-color: rgba(0, 0, 0, 0.1);
        color: #ffffff; } }
  .main-navigation .current_page_parent > a {
    font-weight: 700; }

.menu-toggle {
  display: inline-block;
  margin: 0 auto;
  width: 3.9rem;
  padding: 0.55rem;
  cursor: pointer;
  position: relative;
  z-index: 9999;
  margin-top: 10px;
  margin-left: 10px; }
  @media only screen and (min-width: 40.063em) {
    .menu-toggle {
      display: none; } }
  .menu-toggle div {
    background-color: #ffffff;
    height: 0.25rem;
    margin: 0.43rem;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .15s ease-in-out;
    transition: .15s ease-in-out;
    -webkit-transform-origin: left center;
    -ms-transform-origin: left center;
    transform-origin: left center; }

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden; }
  .screen-reader-text:focus {
    background-color: #fff;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    /* Above WP toolbar. */ }


.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
  content: "";
  display: table;
  table-layout: fixed; }

.site-header:after,
.site-content:after,
.site-footer:after {
  clear: both; }


@font-face {
  font-family: 'Genericons';
  src: url(); }

@font-face {
  font-family: 'Genericons';
  font-weight: normal;
  font-style: normal;
  src: url(), url(), url(); }


.site-content {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2em; }
  .site-content:after {
    content: " ";
    display: block;
    clear: both; }
  @media only screen and (max-width: 61.063em) {
    .site-content {
      margin-top: 1.38889%; } }


.site-header {
  position: relative; }

.hero {
  -webkit-background-size: cover;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: 0; }
  .hero .hero-inner {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 5% 0; }
    .hero .hero-inner:after {
      content: " ";
      display: block;
      clear: both; }

.site-header-wrapper {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 3% 0; }
  .site-header-wrapper:after {
    content: " ";
    display: block;
    clear: both; }

.site-title-wrapper {
  width: 47.22222%;
  float: left;
  margin-left: 1.38889%;
  margin-right: 1.38889%;
  position: relative;
  z-index: 1; }
  @media only screen and (max-width: 40.063em) {
    .site-title-wrapper {
      padding-left: 0.75rem;
      padding-right: 0.75rem; } }
  @media only screen and (max-width: 61.063em) {
    .site-title-wrapper {
      width: 97.22222%;
      float: left;
      margin-left: 1.38889%;
      margin-right: 1.38889%;
      text-align: center; } }

.site-title {
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 3.25rem;
  line-height: 1; }
  .site-title a {
    color: #fca903; }
    .site-title a:hover, .site-title a:visited:hover {
      color: rgba(252, 169, 3, 0.8); }

.site-search-wrapper {
  width: 47.22222%;
  float: left;
  margin-left: 1.38889%;
  margin-right: 1.38889%; }
  @media only screen and (max-width: 61.063em) {
    .site-search-wrapper {
      width: 97.22222%;
      float: left;
      margin-left: 1.38889%;
      margin-right: 1.38889%;
      text-align: center; } }
  .site-search-wrapper .widget {
    float: right;
    position: relative;
    margin-bottom: 0; }
    @media only screen and (max-width: 61.063em) {
      .site-search-wrapper .widget {
        float: none; } }
    .site-search-wrapper .widget .search-field {
      min-width: 250px;
      border-color: rgba(104, 104, 104, 0.25); }

body.custom-header-image .hero {
  text-shadow: 1px 1px 30px rgba(0, 0, 0, 0.5); }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
  clear: both;
  background-color: #3f3244; }

.footer-widget-area {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 2em 0; }
  .footer-widget-area:after {
    content: " ";
    display: block;
    clear: both; }
  .footer-widget-area .footer-widget {
    width: 97.22222%;
    float: left;
    margin-left: 1.38889%;
    margin-right: 1.38889%; }
    @media only screen and (max-width: 61.063em) {
      .footer-widget-area .footer-widget {
        margin-bottom: 1em; } }

.site-info-wrapper {
  padding: 1.5em 0;
  background-color: #ffffff; }
  .site-info-wrapper .site-info {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto; }
    .site-info-wrapper .site-info:after {
      content: " ";
      display: block;
      clear: both; }
  .site-info-wrapper .site-info-text {
    width: 97.22222%;
    float: left;
    margin-left: 1.38889%;
    margin-right: 1.38889%;
    padding: 3em 0 1em;
    text-align: center;
    font-size: 75%;
    line-height: 1.2; }
  .site-info-wrapper .social-menu {
    width: 30.55556%;
    float: right;
    margin-left: 1.38889%;
    margin-right: 1.38889%; }
  @media only screen and (max-width: 40.063em) {
    .site-info-wrapper .social-menu {
      width: 97.22222%;
      float: left;
      margin-left: 1.38889%;
      margin-right: 1.38889%;
      text-align: center; } }

.social-menu {
  text-align: right; }

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
  margin: 0 0 1.5rem;
  padding: 1rem; }
  .widget input[type="search"] {
    width: 100%; }
  .widget ul {
    list-style: none;
    margin: 0;
    padding: 0; }
  .widget li {
    padding: 0.25rem 0; }

.widget-title {
  text-transform: uppercase; }

.footer-widget .widget {
  padding: 1em;
  background-color: #ffffff;
  -webkit-border-radius: 8px;
  border-radius: 8px; }
  .footer-widget .widget:last-child {
    margin-bottom: 0; }

.footer-widget .widget-title {
  border-bottom: 3px solid #3f3244;
  color: #3f3244; }

.widget_search form {
  position: relative; }

.widget_search .search-field {
  padding: 0.125rem 2.75rem 0.125rem 0.5rem;
  font-size: 1.25rem;
  line-height: 1.25rem;
  border: none;
  border-bottom: 3px solid rgba(37, 37, 37, 0.25);
  -webkit-border-radius: 0;
  border-radius: 0;
  appearance: textfield;
  background: none; }
  @media only screen and (max-width: 40.063em) {
    .widget_search .search-field {
      width: 100%; } }

.widget_search .search-submit {
  background: url() no-repeat center center;
  -webkit-background-size: 1.5rem 1.5rem;
  background-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0;
  position: absolute;
  bottom: 5px;
  right: 0px;
  text-indent: -9999em; }
  .widget_search .search-submit:active, .widget_search .search-submit:focus, .widget_search .search-submit:hover {
    background-color: transparent; }


</style>

<style id="scribbles-inline-css" type="text/css">

.hero{
    background-image:url();
}
 .site-title a,.site-title a:visited{
    color:#ffffff;
}
.site-title a:hover,.site-title a:visited:hover{
    color:rgba(255, 255, 255, 0.8);
}
.site-search-wrapper .widget .search-field{
    border-color:rgba(153, 153, 153, 0.25);
}
 .hero{
    color:#ffffff;
}
 .main-navigation ul li a,.main-navigation ul li a:visited,.main-navigation ul li a:hover,.main-navigation ul li a:visited:hover{
    color:#ffffff;
}
.menu-toggle div{
    background-color:#ffffff;
}
.main-navigation ul li a,.main-navigation ul li a:visited,.main-navigation ul li a:hover,.main-navigation ul li a:visited:hover{
    color:#ffffff;
}
.main-navigation ul li a:hover{
    color:rgba(255, 255, 255, 0.8);
}
.main-navigation ul li a:hover{
    color:rgba(255, 255, 255, 0.8);
}
 h4,label,.widget-title{
    color:#ffffff;
}
.footer-widget .widget-title{
    color:#ffffff;
    border-color:#ffffff;
}
 body,input,input[type="search"]:focus{
    color:#e5e5e5;
}
input[type="search"]{
    color:rgba(229, 229, 229, 0.5);
    border-color:rgba(229, 229, 229, 0.1);
}
 .site-footer .widget-title,.site-footer h4{
    color:#ffffff;
}
.footer-widget .widget-title{
    border-color:#ffffff;
}
 .site-footer .widget{
    color:#ffffff;
}
 .site-info-wrapper .site-info-text{
    color:#686868;
}
 a,a:visited{
    color:#54ccbe;
}
a:hover,a:visited:hover,a:focus,a:visited:focus,a:active,a:visited:active{
    color:rgba(84, 204, 190, 0.8);
}
 input[type="submit"]{
    background-color:#54ccbe;
    border-color:#54ccbe;
}
input[type="submit"]:hover,input[type="submit"]:active,input[type="submit"]:focus{
    background-color:rgba(84, 204, 190, 0.8);
    border-color:rgba(84, 204, 190, 0.8);
}
 input[type="submit"],input[type="submit"]:hover,input[type="submit"]:active,input[type="submit"]:focus{
    color:#ffffff;
}
 body{
    background-color:#222222;
}
 .hero{
    background-color:#282828;
}
.hero{
    -webkit-box-shadow:inset 0 0 0 9999em;
    -moz-box-shadow:inset 0 0 0 9999em;
    box-shadow:inset 0 0 0 9999em;
    color:rgba(40, 40, 40, 0.50);
}
 .main-navigation-container{
    background-color:#333333;
}
.main-navigation-container,.main-navigation-container:before,.main-navigation-container:after{
    background-color:#333333;
}
 .site-footer{
    background-color:#282828;
}
 .site-footer .widget{
    background-color:#333333;
}
 .site-info-wrapper{
    background-color:#222222;
}
 

</style>

<style type="text/css">
.site-title a,.site-title a:visited{color:#ffffff;}
</style><style id="custom-background-css" type="text/css">
body.custom-background { background-color: ##222222; }
</style>
</head>
<body class="custom-background custom-header-image layout-two-column-default">
<div class="hfeed site" id="page">
<a class="skip-link screen-reader-text" href="#">Skip to content</a>
<header class="site-header" id="masthead" role="banner">
<div class="site-header-wrapper">
<div class="site-title-wrapper">
<div class="site-title"><a href="#" rel="home">{{ keyword }}</a></div>
</div>
<div class="hero">
<div class="hero-inner">
</div>
</div>
<div class="site-search-wrapper">
<div class="widget widget_search"><form action="#" class="search-form" method="get" role="search">
<label>
<span class="screen-reader-text">Search for:</span>
<input class="search-field" name="s" placeholder="Search " type="search" value=""/>
</label>
<input class="search-submit" type="submit" value="Search"/>
</form></div>
</div>
</div>
</header>
<div class="main-navigation-container">
<div class="menu-toggle" id="menu-toggle">
<div></div>
<div></div>
<div></div>
</div>
<nav class="main-navigation" id="site-navigation">
<div class="menu-primary-menu-container"><ul class="menu" id="menu-primary-menu"><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home menu-item-170" id="menu-item-170"><a href="#">Home</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-172" id="menu-item-172"><a href="#">About Us</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-169" id="menu-item-169"><a href="#">Make A Difference</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page current_page_parent menu-item-166" id="menu-item-166"><a href="#">Blog</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-171" id="menu-item-171"><a href="#">Contact Us</a></li>
</ul></div>
</nav>
</div>
<div class="page-title-container">
</div>
<div class="site-content" id="content">

{{ text }}

		</div>
<footer class="site-footer" id="colophon">
<div class="site-footer-inner">
<div class="footer-widget-area columns-1">
<div class="footer-widget">
<aside class="widget wpcw-widgets wpcw-widget-social" id="wpcw_social-3"><h4 class="widget-title">Social Media</h4><ul><li class="no-label"><a href="#" target="_blank" title="Visit {{ keyword }} on Google+"><span class="fa fa-2x fa-google-plus"></span></a></li><li class="no-label"><a href="#" target="_blank" title="Visit {{ keyword }} on Twitter"><span class="fa fa-2x fa-twitter"></span></a></li><li class="no-label"><a href="#" target="_blank" title="Visit {{ keyword }} on LinkedIn"><span class="fa fa-2x fa-linkedin-square"></span></a></li><li class="no-label"><a href="#" target="_blank" title="Visit {{ keyword }} on Facebook"><span class="fa fa-2x fa-facebook-official"></span></a></li></ul></aside>
</div>
</div>
</div>
</footer>
<div class="site-info-wrapper">
<div class="site-info">
<div class="site-info-inner">
<nav class="social-menu">
</nav>
<div class="site-info-text">

	Copyright  2017 {{ keyword }}
</div>
</div>
</div>
</div>
</div>

</body>
</html>";s:4:"text";s:5850:"Hash literals use the curly braces instead of square brackets and the key value pairs are joined by =>. The method should put nil values at the end. How do I sort an array of hashes by a value in the hash? The relationships themselves are not elements of data in themselves. Ruby-Forum.com. However, while you Accessing keys and values in a nested hash works the same way. Working with Hashes. (Reference :- 'Ruby Cookbook' book.) Awesome Job See All Jobs Because hashes have a key-value relationship, there are other To access information in a standard hash, we could check the hash [key] to get the value at that key. Ruby. ruby. Ruby Hashes - Learn Ruby in simple and easy steps starting from basic ... hash.each_key { |key_value_array ... hash.sort. Sort an array of hashes by given key. Additional key/value pairs can be added to the hash literal by separating them with  names = Hash.new A hash object is created. Working with Hashes. However unlike Array#each, when you iterate over a Hash using each, it passes two values to the block: the key and the value of each element. ... each word in the array it iterates through the hash and replaces any word in the tweet array if the word matches a hash key. [2] : [1, v] end end end Here I added columns with values 1 or 2 to the left for higher priority -- could add to the right or even in between for more complex sorting. I have an array of hashes. In performing a sort on a hash, Ruby converts the ... we add the value to the existing array of items associated with that key. The numbers 1, 2 are the keys to the hash. We also cover how to iterate over a hash and how to compare Array vs Hash in Ruby I wrote a method which sorts an array of hashes by given hash keys. We can, however, build other data structures that represent sorted versions of the data within a hash. ... Sell through rate 4% So i need to at least sort the array of def sort records, *attrs records.sort_by do |h| h.values_at(*attrs).map do |v| v.nil? ... One of the key features of Ruby's hashes is their ability to be enumerated. Working with hashes in Ruby is critical when it comes to performing tasks such as working with database queries or any type of work specific to key value based data. The keys I have an array of hashes. Solution. names[1] = "Jane" names[2] = "Thomas" We add two pairs of values to the hash. Whereas arrays use numeric indexes, from 0 to array.length - 1, hashes Can be found on the solutions branch on github. The sort method differs from the arrays sort method in that it sorts the elements in the hash by key (hashes can be sorted by value, but doing so requires special syntax not yet covered). The method should put nil values at the end. argonistas.sort_by { |argonite| argonite[:full_name] } Great. Ruby-Forum.com. Creating a Hash A hash is like an array in many ways, except a hash uses associated keys (in some languages these are called associative arrays). Just like arrays, hashes can be created with hash literals. Understand Ruby Hashes and common Ruby Hash methods. Accessing Keys and Values in Nested Hashes. In performing a sort on a hash, Ruby converts the hash to an ... we add the value to the existing array of items associated with that key. Hashes are not meant to be in a certain order (though they are in Ruby 1.9) as they're a data structure where one thing merely relates to another thing. A Ruby programming tutorial for journalists, researchers, investigators, scientists, analysts and anyone else in the business of finding information and making it useful and visible. I wrote a method which sorts an array of hashes by given hash keys. This ppt is an introduction to Ruby's Data structures - Arrays and Hashes with examples. Hi there, I have been creating an array of hashes and I tried to sort it by key, but it does not work out. It returns the value deleted in the process. We have the ability to quickly sort the array of hashes. ... Sell through rate 4% So i need to at least sort the array of products in (Reference :- 'Ruby Cookbook' book.) To do this, we can use #sort_by which comes with the Enumberable module. I'm attempting to work with Vagrant to perform some automation in spinning up Docker containers. Let's throw that array into a block Let's take one step further and iterate #!/usr/bin/ruby names = Hash.new names[1] = "Jane" names[2] = "Thomas" puts names The first script creates a hash and adds two key-value pairs into the hash object. I wrote a method which sorts an array of hashes by given hash keys. ? For example, a hash with a single key/value pair of Bob/84 would look like this: { "Bob" => 84 }. sorted = array.sort {|a, b| a[key] <=> b ... Ruby Development Tips. The method should put nil values at the end. Programming experience not required, but provided. If a key in the initial hash is a non-empty array then each element in that array is made a key of the new MultikeyHash. Okay, let's sort this array of hashes by the value of full_name in each hash. This ppt is an introduction to Ruby's Data structures - Arrays and Hashes with examples. I'm looking to sort the array of hashes by the key "value", ... Ruby's sort doesn't sort in-place. An array, for example. Hash Literals. would simply use an array and our key would be the integer. Just like arrays, hashes can be created with hash literals. You can use the each method to iterate over all the elements in a Hash. The method should put nil values at the end. In the dictionary example, if we entered dictionary [: hello] we would get the value "greeting". Ruby. I wrote a method which sorts an array of hashes by given hash keys. Ruby Hashes <Symbols | TOC | Random Numbers> Hashes (sometimes known as associative arrays, maps, or dictionaries) are similar to arrays in that they are indexed collection of object references. Nested Arrays, Hashes & Loops in Ruby. ";s:7:"keyword";s:32:"ruby sort array of hashes by key";s:7:"expired";i:-1;}