This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ************************************************************ | |
| # Sequel Pro SQL dump | |
| # Version 3408 | |
| # | |
| # http://www.sequelpro.com/ | |
| # http://code.google.com/p/sequel-pro/ | |
| # | |
| # Host: 127.0.0.1 (MySQL 5.1.44) | |
| # Database: blog_tests | |
| # Generation Time: 2011-10-08 18:00:24 +0200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql> SELECT jaro_winkler_similarity("Danny", "Daniel") AS similarity; | |
| +-------------------+ | |
| | similarity | | |
| +-------------------+ | |
| | 0.789999961853027 | | |
| +-------------------+ | |
| 1 row in set (0.00 sec) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql> SELECT *, jaro_winkler_similarity(`name`, "mr whiskers") AS score | |
| -> FROM CatName | |
| -> ORDER BY score DESC | |
| -> LIMIT 10; | |
| +-------+----------------+----------+ | |
| | id | name | score | | |
| +-------+----------------+----------+ | |
| | 10105 | Mr. Whiskers | 0.977778 | | |
| | 10108 | Mr. Wiskers | 0.951515 | | |
| | 16204 | Whiskers | 0.909091 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql> SELECT *, jaro_winkler_similarity(`name`, "mr whiskers") AS score | |
| -> FROM (SELECT id, `name` FROM CatName WHERE `name` LIKE "%mr%" OR `name` LIKE "%whiskers%") AS likeMatches | |
| -> ORDER BY score DESC | |
| -> LIMIT 10; | |
| +-------+----------------+------------------+ | |
| | id | name | score | | |
| +-------+----------------+------------------+ | |
| | 10105 | Mr. Whiskers | 97.7777779102325 | | |
| | 10108 | Mr. Wiskers | 95.1515138149261 | | |
| | 16204 | Whiskers | 90.9090936183929 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $output = iconv('UTF-8', 'ASCII//TRANSLIT', $input); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.dannykopping.controls | |
| { | |
| import flash.events.MouseEvent; | |
| import spark.components.TextArea; | |
| public class NonScrollingTextArea extends TextArea | |
| { | |
| public function NonScrollingTextArea() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bash-3.2# git submodule status | |
| f97bbf008aaa0741ca6996cc167ad61e1f5b0179 neo4jphp (0.0.6-beta-9-gf97bbf0) | |
| dd42c4d26cb35fd128793494b9a6e952994e5fd0 slim (1.5.1.2-117-gdd42c4d) | |
| d77b9e85c1b4ca868a267a0805703ef33ca5753b slim-plugins (1.0.0-17-gd77b9e8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Feature: Testing the REST functionality of Aerial Framework | |
| with Slim Framework and Guzzle | |
| Scenario: Fetching a simple JSON response # features/rest.feature:4 | |
| Given that I pass no parameters # FeatureContext::thatIPassNoParameters() | |
| When I call "/internal/test/simple" # FeatureContext::iCall() | |
| Then the response is JSON # FeatureContext::theResponseIsJson() | |
| Then the response status code should be 200 # FeatureContext::theResponseStatusCodeShouldBe() | |
| 1 scenario (1 passed) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="ci-phing-behat-test" default="dev"> | |
| <!-- load variable definitions --> | |
| <property file="build.properties"/> | |
| <property name="behat.basedir" value="${project.basedir}/../test"/> | |
| <!-- define custom tasks and types --> | |
| <typedef name="args" classname="phing.behat.types.BehatArguments"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo pear channel-discover pear.phpunit.de | |
| sudo pear install -f -a pear.phpunit.de/PHPUnit |