#####(1) Instantiate a hash in two ways.
# your code here
#####(2)
<?xml version="1.0" ?> | |
<project default="default" basedir="."> | |
<target name="default" depends="init, less" /> | |
<target name="init"> | |
<echo>-- Initialize Variables</echo> | |
<property name="less.path" value="httpdocs/assets/less" /> | |
<echo message="less.path: ${less.path}" /> |
<?PHP | |
// Generates a strong password of N length containing at least one lower case letter, | |
// one uppercase letter, one digit, and one special character. The remaining characters | |
// in the password are chosen at random from those four sets. | |
// | |
// The available characters in each set are user friendly - there are no ambiguous | |
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option, | |
// makes it much easier for users to manually type or speak their passwords. | |
// | |
// Note: the $add_dashes option will increase the length of the password by |
git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all |
<?php | |
// put into fuel/app/classes/elasticsearch | |
namespace Elasticsearch; | |
class Index_MyProduct extends Index_Product | |
{ | |
protected static function _get_products_full_fields() { | |
$fields = parent::_get_products_full_fields(); |
<IfModule mod_rewrite.c> | |
Options -MultiViews | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !\.(gif|jpg|jpeg|png|bmp|mov|mp4|mp3)$ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [L] | |
</IfModule> |
#####(1)
Given the following array, use each
to enumerate over it, using puts
to print this sentence to the console for each element: [THE_NAME] is Mario Batali's fancy [THE_CUISINE] joint
.
arr = [
{name: 'Babbo', cuisine: 'high-priced italian'},
{name: 'Del Posto', cuisine: 'higher-priced italian'},
{name: 'Eataly', cuisine: 'disney world of an italian market'},
(1) Create a hash with the following key value pairs
key | value |
---|---|
red | green |
yellow | purple |
blue | orange |