This is what happens when I try to pick a language.
Note: If I didn't think it was possible to create a development environment without any of these issues (which I consider "major" for the most part), I would not have written this list.
- NOTHNX.
require 'tire' | |
# Tire.configure { logger STDERR, level: 'debug' } | |
Tire.index('movie-titles') do | |
delete | |
create \ | |
settings: { | |
index: { | |
analysis: { |
This is what happens when I try to pick a language.
Note: If I didn't think it was possible to create a development environment without any of these issues (which I consider "major" for the most part), I would not have written this list.
F# | C# | Scala | Clojure | Python | Ruby | Haskell | SQL | OCaml | Common Lisp | Erlang | Smalltalk | Scheme | Ecmascript 5 | Perl 5 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
map | Select | map | map | map | collect | map | Select | map | mapcar | map | collect: | map | map | map |
filter | Where | filter | filter | filter | select | filter | Where | filter | remove-if-not | filter | select: | filter | filter | grep |
fold | Aggregate | foldLeft | reduce | reduce | inject | foldl |
parameters: | |
auth.adapter.entityName: Application_Model_User | |
auth.adapter.identityField: email | |
auth.adapter.credentialField: password | |
services: | |
auth.adapter: | |
class: LoSo_Zend_Auth_Adapter_Doctrine2 | |
arguments: [@em, %auth.adapter.entityName%, %auth.adapter.identityField%, %auth.adapter.credentialField%] | |
auth: |
Just for everyone's information, if you want to run purely utf8, don't forget the following: | |
httpd.conf: | |
AddCharset UTF-8 .utf8 | |
AddDefaultCharset UTF-8 | |
php.ini | |
default_charset = "utf-8" | |
my.cnf |
<?php | |
error_reporting(E_STRICT | E_ALL); | |
class ImmutableValueObject extends \ArrayObject | |
{ | |
public function __construct(array $data = array(), $flags = \ArrayObject::ARRAY_AS_PROPS) | |
{ | |
parent::__construct($data, $flags); | |
} |
// HOWTO: load LABjs itself dynamically! | |
// inline this code in your page to load LABjs itself dynamically, if you're so inclined. | |
(function (global, oDOC, handler) { | |
var head = oDOC.head || oDOC.getElementsByTagName("head"); | |
function LABjsLoaded() { | |
// do cool stuff with $LAB here | |
} |
require_once 'Zend/Application/Resource/ResourceAbstract.php'; | |
/** | |
* TODO: short description. | |
* | |
* TODO: long description. | |
* | |
*/ | |
class My_Resource_Database extends Zend_Application_Resource_ResourceAbstract | |
{ | |
// Requires node v0.1.100 or a browser with console | |
function newShape(x, y) { | |
return { | |
toString: function () { | |
return 'Shape at ' + x + ', ' + y; | |
} | |
}; | |
} |
<createTable tableName="contact"> | |
<column name="id" type="bigint"> | |
<constraints primaryKey="true" | |
nullable="false" | |
autoIncrement="true"/> | |
</column> | |
<column name="first_name" type="varchar(50)" /> | |
<column name="middle_initial" type="varchar(5)" /> | |
<column name="last_name" type="varchar(50)" /> | |
<column name="gender" type="varchar(50)" /> |