This file contains 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 funsets | |
import common._ | |
/** | |
* 2. Purely Functional Sets. | |
*/ | |
object FunSets { | |
/** |
This file contains 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 objsets | |
import common._ | |
import TweetReader._ | |
/** | |
* A class to represent tweets. | |
*/ | |
class Tweet(val user: String, val text: String, val retweets: Int) { | |
override def toString: String = text + "[" + retweets + "]" |
This file contains 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
<html> | |
<head> | |
<script type="text/javascript" src="http://timeout.pluck.com/ver1.0/Content/ua/scripts/pluckApps.js"></script> | |
<link rel="stylesheet" type="text/css" href="http://timeout.pluck.com/ver1.0/Content/ua/css/pluckAll.css" /> | |
<script type="text/javascript"> | |
pluckAppProxy.embedApp("pluck_login_withFacebook", { | |
plckLogoutUrl: "/Security/Logout" | |
}, {}); | |
</script> | |
</head> |
This file contains 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
/** | |
* Configuracion en archivo config.yml | |
* | |
* mi_bundle: | |
* config_file: "path/to/file.ini" | |
* | |
*/ | |
class Configuration implements ConfigurationInterface | |
{ |
This file contains 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
<?php | |
class IPC_Form extends sfForm { | |
/** | |
* Binds the form with input values. | |
* | |
* It triggers the validator schema validation. | |
* | |
* @param array $taintedValues An array of input values |
This file contains 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
imports: | |
- { resource: parameters.yml } | |
- { resource: security.yml } | |
framework: | |
#esi: ~ | |
#translator: { fallback: %locale% } | |
secret: %secret% | |
router: | |
resource: "%kernel.root_dir%/config/routing.yml" |
This file contains 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
Doctrine_Query::create() | |
->select('m.*, t.field as translated_field') | |
->from('Model m') | |
->leftJoin('m.Translation t) | |
->where('t.field = ?', $value) | |
This file contains 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"?> | |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body> | |
<getPreciosResponse xmlns="http://xml.innovac.es"> | |
<getPreciosResult> | |
<resultado xmlns=""> | |
<PRECIO> | |
<NumPoliza>550441944</NumPoliza> | |
<Franja>2</Franja> | |
<TotalEspanya>1.05</TotalEspanya> | |
<TotalAndorra>1.05</TotalAndorra> |