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
class SendmailViaSES(object): | |
def sendmail(self, from_addr, to_addrs, msg, **kwargs): | |
return ses.send_email( | |
Source=from_addr, | |
Destination={ | |
'ToAddresses': to_addrs, | |
}, | |
Message={ | |
'Subject': { |
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
/*jslint plusplus: true */ | |
/*global define: false, require: false, module: false, exports: false */ | |
(function (root, name, deps, factory) { | |
"use strict"; | |
if (typeof exports === 'object') { | |
// Node. Does not work with strict CommonJS, but | |
// only CommonJS-like enviroments that support module.exports, | |
// like Node. | |
module.exports = factory.apply(root, deps.map(require)); | |
} else if (typeof define === 'function' && define.amd) { |
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
[alias] | |
st = status | |
br = branch | |
co = checkout | |
unstage = reset HEAD | |
# http://www.jukie.net/bart/blog/git-amend | |
amend = commit --amend -C HEAD | |
[color] | |
ui = auto |
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
#!/bin/bash | |
# Credits: http://stackoverflow.com/a/1995186/213903 | |
DBUSER=user | |
DBPASSWORD=pass | |
DBSNAME=sourceDb | |
DBNAME=destinationDb | |
DBSERVER=servername | |
fCreateTable="" |
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 | |
use ActiveRecord\Config; | |
require_once 'vendor/autoload.php'; | |
$cfg = Config::instance(); | |
echo 'ok'; |
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 | |
$reader = new ExampleDataSource("posts.xml"); | |
foreach ($reader as $post) { | |
// $post e' un array con chiavi 'title' e 'body' | |
} |
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
$conf = array( | |
'cache' => 0, | |
// 'preprocess_css' => 1, | |
// 'preprocess_js' => 0, | |
); |
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
[17:22] Stof: flevour: no, that means that the code using equals will be refactored to move the logic out of the User class | |
[17:22] drak: hi Fabien :) | |
[17:22] Stof: so no method in UserInterface | |
[17:22] fabpot: sorry for being late, I totally forgot about the meeting | |
[17:22] drak: you were just in time, they were about to cancel :) | |
[17:23] fabpot: have you started yet? | |
[17:23] flevour: fabpot: lukas won't be here as per https://twitter.com/lsmith/status/147348424755396609 , but we can go through the topics he indicated anyway, what do you think? | |
[17:24] fabpot: yep, lzt's start | |
[17:24] flevour: ok, first topic is [FrameworkBundle] added ability to have async/sync render tags http://goo.gl/7bAk8 |
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 doctrineClearDbTask extends sfBaseTask | |
{ | |
protected function configure() | |
{ | |
$this->addOptions(array( | |
new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'frontend'), | |
new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), | |
new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'), |
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 | |
/** | |
* This class has been auto-generated by the Doctrine ORM Framework | |
*/ | |
class InstallSearchData | |
{ | |
protected $connection = NULL; | |
public function __construct(Doctrine_Connection $connection) | |
{ |
NewerOlder